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

Merge constructors for FollowTrajectoryControlStrategy

parent 0550f599
No related branches found
No related tags found
1 merge request!150Draft: Allow to directly set MovementDomain of FollowTrajectoryControlStrategy
Pipeline #48994 passed with stage
in 0 seconds
......@@ -257,13 +257,9 @@ struct FollowTrajectoryControlStrategy : public ControlStrategy
units::time::second_t offset{0.0};
};
FollowTrajectoryControlStrategy()
{
movement_domain = MovementDomain::kBoth;
type = ControlStrategyType::kFollowTrajectory;
}
FollowTrajectoryControlStrategy(MovementDomain movement_domain)
/// Creates a FollowTrajectoryControlStrategy with a given movement domain (defaults to both).
/// @param movement_domain Movement domain of the controlstrategy. Defaults to MovementDomain::kBoth
explicit FollowTrajectoryControlStrategy(MovementDomain movement_domain = MovementDomain::kBoth) noexcept
{
this->movement_domain = movement_domain;
type = ControlStrategyType::kFollowTrajectory;
......
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