Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mantle-api
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Eclipse Projects
Eclipse openpass
mantle-api
Commits
cc1f60c2
Commit
cc1f60c2
authored
3 years ago
by
Christoph Kochendoerfer
Browse files
Options
Downloads
Patches
Plain Diff
update after review
parent
79ac383b
No related branches found
No related tags found
1 merge request
!14
Trajectories
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
MantleAPI/include/MantleAPI/Traffic/control_strategy.h
+13
-7
13 additions, 7 deletions
MantleAPI/include/MantleAPI/Traffic/control_strategy.h
with
13 additions
and
7 deletions
MantleAPI/include/MantleAPI/Traffic/control_strategy.h
+
13
−
7
View file @
cc1f60c2
...
@@ -132,8 +132,6 @@ struct FollowLateralOffsetSplineControlStrategy : public ControlStrategy
...
@@ -132,8 +132,6 @@ struct FollowLateralOffsetSplineControlStrategy : public ControlStrategy
std
::
vector
<
mantle_api
::
SplineSection
>
lateral_offset_splines
;
std
::
vector
<
mantle_api
::
SplineSection
>
lateral_offset_splines
;
};
};
// TODO: Create new control strategy for following 3D trajectories with shapes NURBS, polyline, clothoid
struct
FollowRouteControlStrategy
:
public
ControlStrategy
struct
FollowRouteControlStrategy
:
public
ControlStrategy
{
{
FollowRouteControlStrategy
()
FollowRouteControlStrategy
()
...
@@ -166,7 +164,7 @@ struct TransitionDynamics
...
@@ -166,7 +164,7 @@ struct TransitionDynamics
{
{
Dimension
dimension
{
Dimension
::
kUndefined
};
Dimension
dimension
{
Dimension
::
kUndefined
};
Shape
shape
{
Shape
::
kUndefined
};
Shape
shape
{
Shape
::
kUndefined
};
double
value
{
0
};
double
value
{
0
.0
};
};
};
struct
AcquireLaneOffsetControlStrategy
:
public
ControlStrategy
struct
AcquireLaneOffsetControlStrategy
:
public
ControlStrategy
...
@@ -183,19 +181,27 @@ struct AcquireLaneOffsetControlStrategy : public ControlStrategy
...
@@ -183,19 +181,27 @@ struct AcquireLaneOffsetControlStrategy : public ControlStrategy
TransitionDynamics
transition_dynamics
;
TransitionDynamics
transition_dynamics
;
};
};
enum
class
ReferenceContext
{
kAbsolute
=
0
,
kRelative
};
struct
FollowTrajectoryControlStrategy
:
public
ControlStrategy
struct
FollowTrajectoryControlStrategy
:
public
ControlStrategy
{
{
// TODO: Extend the FollowTrajectoryControlStrategy to support shapes like NURBS and clothoid
struct
TrajectoryTimeReference
struct
TrajectoryTimeReference
{
{
std
::
string
domainAbsoluteRelative
;
ReferenceContext
domainAbsoluteRelative
;
double
scale
;
double
scale
{
0.0
}
;
double
offset
;
double
offset
{
0.0
}
;
};
};
FollowTrajectoryControlStrategy
()
FollowTrajectoryControlStrategy
()
{
{
movement_domain
=
MovementDomain
::
kBoth
;
movement_domain
=
MovementDomain
::
kBoth
;
type
=
ControlStrategyType
::
k
AcquireLaneOffset
;
type
=
ControlStrategyType
::
k
FollowTrajectory
;
}
}
Trajectory
trajectory
;
Trajectory
trajectory
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment