Brick
Loading...
Searching...
No Matches
TrajectoryParameterizer Class Reference

#include <trajectory_parameterizer.h>

Description

Algorithms for time-parameterizing spatial path points into constrained trajectories.

Implements forward-pass and backward-pass velocity profile integration under physical acceleration and user-defined constraints.

Static Public Member Functions

static Trajectory time_parameterize_trajectory (const std::vector< PoseWithCurvature > &points, const std::vector< std::unique_ptr< TrajectoryConstraint > > &constraints, units::Velocity start_velocity, units::Velocity end_velocity, units::Velocity max_velocity, units::Acceleration max_acceleration, bool reversed, std::function< void(const char *)> error_handler=[](const char *message) { std::fprintf(stderr, "%s\n", message);})
 units::Time-parameterizes a list of discrete path points into a Trajectory under physical constraints.

Member Function Documentation

◆ time_parameterize_trajectory()

Trajectory TrajectoryParameterizer::time_parameterize_trajectory ( const std::vector< PoseWithCurvature > & points,
const std::vector< std::unique_ptr< TrajectoryConstraint > > & constraints,
units::Velocity start_velocity,
units::Velocity end_velocity,
units::Velocity max_velocity,
units::Acceleration max_acceleration,
bool reversed,
std::function< void(const char *)> error_handler = [](const char *message) { std::fprintf(stderr, "%s\n", message);} )
static

units::Time-parameterizes a list of discrete path points into a Trajectory under physical constraints.

Parameters
pointsVector of poses with curvature along path.
constraintsVector of physical trajectory constraints.
start_velocityBoundary velocity at path start.
end_velocityBoundary velocity at path end.
max_velocityMaximum chassis velocity limit.
max_accelerationMaximum chassis acceleration limit.
reversedDirection flag (true for driving backward).
Returns
units::Time-parameterized Trajectory object.

The documentation for this class was generated from the following file: