Skip to content
Snippets Groups Projects
Commit 1dd8daa6 authored by René Paris's avatar René Paris
Browse files

fix(FollowRouteControlStrategy): Add RouteStrategy


Till now it was is open how a simulator should plan a route for given
waypoints. This behavior is fixed by introducing a RouteStrategy,
following the specification of OpenSCENARIO 1.2.

Closes #14

Signed-off-by: René Paris's avatarRene Paris <rene.paris@in-tech.com>
parent ce217e85
No related branches found
No related tags found
1 merge request!52fix(FollowRouteControlStrategy): Add RouteStrategy
......@@ -49,6 +49,15 @@ enum class ControlStrategyType
kPerformLaneChange
};
/// @brief Defines how a route should be calculated
enum class RouteStrategy
{
kUndefined = 0,
kFastest,
kLeastIntersections,
kShortest
};
struct ControlStrategy
{
virtual ~ControlStrategy() = default;
......@@ -145,6 +154,7 @@ struct FollowRouteControlStrategy : public ControlStrategy
}
std::vector<mantle_api::Vec3<units::length::meter_t>> waypoints;
RouteStrategy route_strategy{RouteStrategy::kUndefined};
};
enum class Dimension
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment