Go to the documentation of this file.
34 #ifndef TRAJECTORY_ROLLOUT_TRAJECTORY_H_
35 #define TRAJECTORY_ROLLOUT_TRAJECTORY_H_
58 Trajectory(
double xv,
double yv,
double thetav,
double time_delta,
unsigned int num_pts);
73 void getPoint(
unsigned int index,
double& x,
double& y,
double& th)
const;
82 void setPoint(
unsigned int index,
double x,
double y,
double th);
90 void addPoint(
double x,
double y,
double th);
98 void getEndpoint(
double& x,
double& y,
double& th)
const;
112 std::vector<double>
x_pts_;
113 std::vector<double>
y_pts_;
void resetPoints()
Clear the trajectory's points.
double time_delta_
The time gap between points.
void addPoint(double x, double y, double th)
Add a point to the end of a trajectory.
void setPoint(unsigned int index, double x, double y, double th)
Set a point within the trajectory.
double cost_
The cost/score of the trajectory.
std::vector< double > x_pts_
The x points in the trajectory.
void getEndpoint(double &x, double &y, double &th) const
Get the last point of the trajectory.
void getPoint(unsigned int index, double &x, double &y, double &th) const
Get a point within the trajectory.
unsigned int getPointsSize() const
Return the number of points in the trajectory.
std::vector< double > th_pts_
The theta points in the trajectory.
double thetav_
The x, y, and theta velocities of the trajectory.
Trajectory()
Default constructor.
std::vector< double > y_pts_
The y points in the trajectory.
base_local_planner
Author(s): Eitan Marder-Eppstein, Eric Perko, contradict@gmail.com
autogenerated on Mon Mar 6 2023 03:50:24