|
controls
3.0.0
|
Factory that builds polynomial waypoint-following trajectories. More...
#include <PolyTrajectoryFactory.h>
Public Types | |
| using | Request = bb_controls_msgs::srv::SplineTraj::Request |
| using | Locomotion = bb_controls_msgs::action::Locomotion |
Public Member Functions | |
| PolyTrajectoryFactory (const Request &req, const State &origin, std::shared_ptr< Trajectory6DOFLimits > limits) | |
| Constructs the factory from a SplineTraj service request. More... | |
| PolyTrajectoryFactory (const Locomotion::Goal &goal, const State &origin, std::shared_ptr< Trajectory6DOFLimits > limits) | |
| Constructs the factory from a Locomotion action goal. More... | |
| PolyTrajectoryFactory & | with_origin_twist_threshold (double max_norm) |
| Sets the origin twist norm threshold below which the initial twist is zeroed. More... | |
| PolyTrajectoryFactory & | with_frame_id (const std::string &frame_id) |
| Sets the TF world frame ID embedded in visualisation messages. More... | |
| PolyTrajectoryFactory & | with_angle_unwrapping (bool needs_angle_unwrapping=true) |
| Controls whether yaw angles are unwrapped across consecutive waypoints. More... | |
| std::unique_ptr< TrajectoryBase > | build () override |
| Builds and returns the configured trajectory. More... | |
Public Member Functions inherited from TrajectoryFactoryInterface | |
| virtual | ~TrajectoryFactoryInterface ()=default |
Factory that builds polynomial waypoint-following trajectories.
Parses goal waypoints from either a SplineTraj service request or a Locomotion action goal, converts relative goals to absolute world-frame coordinates, optionally inserts intermediate heading-interpolation waypoints, and constructs a PolyTrajectory. Uses a builder pattern to allow optional configuration after construction.
| using PolyTrajectoryFactory::Locomotion = bb_controls_msgs::action::Locomotion |
| using PolyTrajectoryFactory::Request = bb_controls_msgs::srv::SplineTraj::Request |
| PolyTrajectoryFactory::PolyTrajectoryFactory | ( | const Request & | req, |
| const State & | origin, | ||
| std::shared_ptr< Trajectory6DOFLimits > | limits | ||
| ) |
Constructs the factory from a SplineTraj service request.
| req | [in] Service request containing goal poses and relative-coordinate flags |
| origin | [in] Starting vehicle state used for relative-to-absolute conversion |
| limits | [in] Per-axis velocity and acceleration limits |
| PolyTrajectoryFactory::PolyTrajectoryFactory | ( | const Locomotion::Goal & | goal, |
| const State & | origin, | ||
| std::shared_ptr< Trajectory6DOFLimits > | limits | ||
| ) |
Constructs the factory from a Locomotion action goal.
| goal | [in] Action goal containing per-axis setpoint arrays and flags |
| origin | [in] Starting vehicle state used for relative-to-absolute conversion |
| limits | [in] Per-axis velocity and acceleration limits |
|
overridevirtual |
Builds and returns the configured trajectory.
Implements TrajectoryFactoryInterface.
| PolyTrajectoryFactory & PolyTrajectoryFactory::with_angle_unwrapping | ( | bool | needs_angle_unwrapping = true | ) |
Controls whether yaw angles are unwrapped across consecutive waypoints.
| needs_angle_unwrapping | [in] True to enable yaw unwrapping (default) |
| PolyTrajectoryFactory & PolyTrajectoryFactory::with_frame_id | ( | const std::string & | frame_id | ) |
Sets the TF world frame ID embedded in visualisation messages.
| frame_id | [in] TF frame ID string |
| PolyTrajectoryFactory & PolyTrajectoryFactory::with_origin_twist_threshold | ( | double | max_norm | ) |
Sets the origin twist norm threshold below which the initial twist is zeroed.
| max_norm | [in] Threshold on the L2 norm of the origin twist |