SMACC
|
#include <pure_spinning_local_planner.h>
Public Member Functions | |
PureSpinningLocalPlanner () | |
virtual | ~PureSpinningLocalPlanner () |
virtual bool | computeVelocityCommands (geometry_msgs::Twist &cmd_vel) override |
Given the current position, orientation, and velocity of the robot: compute velocity commands to send to the robot mobile base. More... | |
virtual bool | isGoalReached () override |
Check if the goal pose has been achieved by the local planner. More... | |
virtual bool | setPlan (const std::vector< geometry_msgs::PoseStamped > &plan) override |
Set the plan that the local planner is following. More... | |
void | initialize (std::string name, tf::TransformListener *tf, costmap_2d::Costmap2DROS *costmapRos) |
Constructs the local planner. More... | |
void | initialize (std::string name, tf2_ros::Buffer *tf, costmap_2d::Costmap2DROS *costmapRos) |
void | initialize () |
Private Member Functions | |
void | reconfigCB (::pure_spinning_local_planner::PureSpinningLocalPlannerConfig &config, uint32_t level) |
void | publishGoalMarker (double x, double y, double phi) |
Private Attributes | |
costmap_2d::Costmap2DROS * | costmapRos_ |
std::vector< geometry_msgs::PoseStamped > | plan_ |
dynamic_reconfigure::Server<::pure_spinning_local_planner::PureSpinningLocalPlannerConfig > | paramServer_ |
double | k_betta_ |
bool | goalReached_ |
int | currentPoseIndex_ |
rad | yaw_goal_tolerance_ |
rad | intermediate_goal_yaw_tolerance_ |
rad_s | max_angular_z_speed_ |
Definition at line 24 of file pure_spinning_local_planner.h.
cl_move_base_z::pure_spinning_local_planner::PureSpinningLocalPlanner::PureSpinningLocalPlanner | ( | ) |
Definition at line 32 of file pure_spinning_local_planner.cpp.
|
virtual |
Definition at line 38 of file pure_spinning_local_planner.cpp.
|
overridevirtual |
Given the current position, orientation, and velocity of the robot: compute velocity commands to send to the robot mobile base.
cmd_vel | Will be filled with the velocity command to be passed to the robot base |
Definition at line 74 of file pure_spinning_local_planner.cpp.
References costmapRos_, currentPoseIndex_, goalReached_, intermediate_goal_yaw_tolerance_, k_betta_, max_angular_z_speed_, cl_move_base_z::pure_spinning_local_planner::optionalRobotPose(), plan_, and yaw_goal_tolerance_.
void cl_move_base_z::pure_spinning_local_planner::PureSpinningLocalPlanner::initialize | ( | ) |
Definition at line 55 of file pure_spinning_local_planner.cpp.
References intermediate_goal_yaw_tolerance_, k_betta_, max_angular_z_speed_, paramServer_, reconfigCB(), and yaw_goal_tolerance_.
Referenced by initialize().
void cl_move_base_z::pure_spinning_local_planner::PureSpinningLocalPlanner::initialize | ( | std::string | name, |
tf2_ros::Buffer * | tf, | ||
costmap_2d::Costmap2DROS * | costmapRos | ||
) |
Definition at line 42 of file pure_spinning_local_planner.cpp.
References costmapRos_, and initialize().
void cl_move_base_z::pure_spinning_local_planner::PureSpinningLocalPlanner::initialize | ( | std::string | name, |
tf::TransformListener * | tf, | ||
costmap_2d::Costmap2DROS * | costmapRos | ||
) |
Constructs the local planner.
name | The name to give this instance of the local planner |
tf | A pointer to a transform listener |
costmap_ros | The cost map to use for assigning costs to local plans |
Definition at line 48 of file pure_spinning_local_planner.cpp.
References costmapRos_, and initialize().
|
overridevirtual |
Check if the goal pose has been achieved by the local planner.
Definition at line 130 of file pure_spinning_local_planner.cpp.
References goalReached_.
|
private |
|
private |
Definition at line 68 of file pure_spinning_local_planner.cpp.
References k_betta_, max_angular_z_speed_, and yaw_goal_tolerance_.
Referenced by initialize().
|
overridevirtual |
Set the plan that the local planner is following.
plan | The plan to pass to the local planner |
Definition at line 135 of file pure_spinning_local_planner.cpp.
References currentPoseIndex_, goalReached_, and plan_.
|
private |
Definition at line 69 of file pure_spinning_local_planner.h.
Referenced by computeVelocityCommands(), and initialize().
|
private |
Definition at line 78 of file pure_spinning_local_planner.h.
Referenced by computeVelocityCommands(), and setPlan().
|
private |
Definition at line 77 of file pure_spinning_local_planner.h.
Referenced by computeVelocityCommands(), isGoalReached(), and setPlan().
|
private |
Definition at line 80 of file pure_spinning_local_planner.h.
Referenced by computeVelocityCommands(), and initialize().
|
private |
Definition at line 76 of file pure_spinning_local_planner.h.
Referenced by computeVelocityCommands(), initialize(), and reconfigCB().
|
private |
Definition at line 81 of file pure_spinning_local_planner.h.
Referenced by computeVelocityCommands(), initialize(), and reconfigCB().
|
private |
Definition at line 73 of file pure_spinning_local_planner.h.
Referenced by initialize().
|
private |
Definition at line 71 of file pure_spinning_local_planner.h.
Referenced by computeVelocityCommands(), and setPlan().
|
private |
Definition at line 79 of file pure_spinning_local_planner.h.
Referenced by computeVelocityCommands(), initialize(), and reconfigCB().