|
| GlobalBodyPlan () |
| Constructor for GlobalBodyPlan.
|
|
bool | operator== (GlobalBodyPlan p1) const |
|
bool | isEmpty () const |
| Check if this plan is empty.
|
|
int | getStatus () const |
| Get the status of this plan.
|
|
void | setStatus (int status) |
| Set the status of this plan.
|
|
int | getSize () const |
| Get the size of the plan (number of finite elements)
|
|
double | getDuration () const |
| Get the duration of the plan in seconds.
|
|
double | getLength () const |
| Get the length of the plan in meters.
|
|
double | getLengthAtIndex (int i) const |
| Get the length of the plan at a particular index in meters.
|
|
double | getTime (int i) const |
| Get the time of the plan at a particular index in seconds.
|
|
FullState | getStateFromIndex (int i) const |
| Get a particular state from the plan.
|
|
int | getPrimitiveFromIndex (int i) const |
| Get the motion primitive from the plan.
|
|
double | getGoalDistance () const |
| Get the distance of the plan end to the goal (retrieves member variable, does not compute)
|
|
void | setComputedTimestamp (ros::Time timestamp) |
| Set the timestamp at which this plan was computed (must be unique)
|
|
ros::Time | getComputedTimestamp () const |
| Get the timestamp at which this plan was computed.
|
|
double | setPublishedTimestamp (ros::Time timestamp) |
| Set the timestamp at which this plan was published.
|
|
ros::Time | getPublishedTimestamp () const |
| Get the timestamp at which this plan was published.
|
|
void | clear () |
| Reset the plan (clear all data, update data to unsolved)
|
|
void | invalidate () |
| Invalidate the plan so next will be accepted (set length to infinite and status to unsolved)
|
|
void | eraseAfterIndex (int start_index) |
| Clear the plan after a particular index (used for replanning segments)
|
|
void | loadPlanData (int plan_status, FullState &start_state, double dist_to_goal, std::vector< State > &state_sequence, std::vector< Action > &action_sequence, double dt, double t0, const PlannerConfig &planner_config) |
| Load the interpolated plan data and metadata.
|
|
void | addStateAndGRFToMsg (double t, int plan_index, const FullState &body_state, const GRF &grf, int primitive_id, quad_msgs::RobotPlan &msg) |
| Load a semgent of interpolated plan data into a plan message.
|
|
void | convertToMsg (quad_msgs::RobotPlan &robot_plan_msg, quad_msgs::RobotPlan &discrete_robot_plan_msg) |
| Load the entire plan into a plan message.
|
|
|
ros::Time | computed_timestamp_ |
| Time stamp for when plan was computed (unique)
|
|
ros::Time | published_timestamp_ |
| Time stamp for when plan was published (not unique)
|
|
std::vector< double > | t_plan_ |
| Std vector containing the interpolated time data.
|
|
std::vector< FullState > | body_plan_ |
| Std vector containing the interpolated robot body plan.
|
|
std::vector< GRF > | grf_plan_ |
| Std vector containing the interpolated wrench plan.
|
|
std::vector< int > | primitive_id_plan_ |
| Std vector containing the interpolated time data.
|
|
std::vector< double > | length_plan_ |
| Std vector containing the cumulative path length at each index of the plan.
|
|
std::vector< State > | state_sequence_ |
| Sequence of discrete states in the plan.
|
|
std::vector< Action > | action_sequence_ |
| Sequence of discrete actions in the plan.
|
|
int | plan_status_ |
| Plan status.
|
|
double | goal_distance_ |
| Distance to goal.
|
|
A class to contain global plan data along with helper functions.
This class inherits GraphClass, and adds method to add random states to the graph and search for neighbors. These functions are useful for sample-based planners such as RRTs or PRMs.