|
Brick
|
#include <trajectory_generator.h>
Helper utility class for generating time-parameterized constrained trajectories from waypoints.
Static Public Member Functions | |
| static Trajectory | generate_trajectory (const std::vector< HermitePoint > &waypoints, const TrajectoryConfig &config) |
| Generates a time-parameterized Trajectory from Hermite waypoints and a TrajectoryConfig. | |
| static Trajectory | generate_trajectory (const std::vector< Pose2d > &waypoints, const TrajectoryConfig &config, double tangent_scale=1.2) |
| Generates a time-parameterized Trajectory from simple Pose2d waypoints. Internal heuristics are used to compute optimal spline tangency (speed). | |
| static Trajectory | generate_trajectory (const Pose2d ¤t_pose, units::Velocity current_velocity, const std::vector< Pose2d > &target_waypoints, TrajectoryConfig config, double tangent_scale=1.2) |
| Splicing helper for On-The-Fly Replanning. Generates a new path starting precisely at current_pose, maintaining the units::momentum of current_velocity, and routing to the target_waypoints. | |
Static Public Attributes | |
| static const Trajectory | kDoNothingTrajectory |
|
static |
Splicing helper for On-The-Fly Replanning. Generates a new path starting precisely at current_pose, maintaining the units::momentum of current_velocity, and routing to the target_waypoints.
| current_pose | The robot's current instantaneous position and heading. |
| current_velocity | The robot's current forward speed. |
| target_waypoints | The remaining destinations. |
| config | The base config. start_velocity will be overwritten to match current_velocity. |
| tangent_scale | Fudge factor applied to tangent magnitudes. |
|
static |
Generates a time-parameterized Trajectory from Hermite waypoints and a TrajectoryConfig.
| waypoints | Vector of Hermite boundary waypoints (positions, tangents, second derivatives). |
| config | Trajectory configuration containing velocity limits, accelerations, direction, and constraints. |
|
static |
Generates a time-parameterized Trajectory from simple Pose2d waypoints. Internal heuristics are used to compute optimal spline tangency (speed).
| tangent_scale | Scale factor applied to heuristic tangent magnitudes. |