A ROS wrapper for the trajectory controller that queries the param server to construct a controller.
More...
#include <safe_trajectory_planner_ros.h>
|
bool | clearCostmapsService (std_srvs::Empty::Request &req, std_srvs::Empty::Response &resp) |
|
void | cmdCallback (const geometry_msgs::Twist::ConstPtr &vel) |
|
double | distance (double x1, double y1, double x2, double y2) |
| Compute the distance between two points. More...
|
|
std::vector< double > | loadYVels (ros::NodeHandle node) |
|
void | odomCallback (const nav_msgs::Odometry::ConstPtr &msg) |
|
void | publishPlan (const std::vector< geometry_msgs::PoseStamped > &path, const ros::Publisher &pub, double r, double g, double b, double a) |
| Publish a plan for visualization purposes. More...
|
|
bool | stopped () |
| Check whether the robot is stopped or not. More...
|
|
bool | transformGlobalPlan (std::vector< geometry_msgs::PoseStamped > &transformed_plan) |
| Transforms the global plan of the robot from the planner frame to the local frame. More...
|
|
A ROS wrapper for the trajectory controller that queries the param server to construct a controller.
Definition at line 52 of file safe_trajectory_planner_ros.h.
Constructs the ros wrapper.
- Parameters
-
name | The name to give this instance of the trajectory planner |
tf | A pointer to a transform listener |
costmap | The cost map to use for assigning costs to trajectories |
Definition at line 21 of file safe_trajectory_planner_ros.cpp.
safe_teleop::SafeTrajectoryPlannerROS::~SafeTrajectoryPlannerROS |
( |
| ) |
|
bool safe_teleop::SafeTrajectoryPlannerROS::clearCostmapsService |
( |
std_srvs::Empty::Request & |
req, |
|
|
std_srvs::Empty::Response & |
resp |
|
) |
| |
|
private |
void safe_teleop::SafeTrajectoryPlannerROS::cmdCallback |
( |
const geometry_msgs::Twist::ConstPtr & |
vel | ) |
|
|
private |
bool safe_teleop::SafeTrajectoryPlannerROS::computeVelocityCommands |
( |
const geometry_msgs::Twist::ConstPtr & |
vel, |
|
|
geometry_msgs::Twist & |
cmd_vel |
|
) |
| |
Given the current position, orientation, and velocity of the robot, compute velocity commands to send to the base.
- Parameters
-
vel | Velocity received from user |
cmd_vel | Will be filled with the velocity command to be passed to the robot base |
- Returns
- True if a valid trajectory was found, false otherwise
Definition at line 189 of file safe_trajectory_planner_ros.cpp.
double safe_teleop::SafeTrajectoryPlannerROS::distance |
( |
double |
x1, |
|
|
double |
y1, |
|
|
double |
x2, |
|
|
double |
y2 |
|
) |
| |
|
private |
Compute the distance between two points.
- Parameters
-
x1 | The first x point |
y1 | The first y point |
x2 | The second x point |
y2 | The second y point |
Definition at line 150 of file safe_trajectory_planner_ros.cpp.
std::vector< double > safe_teleop::SafeTrajectoryPlannerROS::loadYVels |
( |
ros::NodeHandle |
node | ) |
|
|
private |
void safe_teleop::SafeTrajectoryPlannerROS::odomCallback |
( |
const nav_msgs::Odometry::ConstPtr & |
msg | ) |
|
|
private |
void safe_teleop::SafeTrajectoryPlannerROS::publishPlan |
( |
const std::vector< geometry_msgs::PoseStamped > & |
path, |
|
|
const ros::Publisher & |
pub, |
|
|
double |
r, |
|
|
double |
g, |
|
|
double |
b, |
|
|
double |
a |
|
) |
| |
|
private |
bool safe_teleop::SafeTrajectoryPlannerROS::stopped |
( |
| ) |
|
|
private |
bool safe_teleop::SafeTrajectoryPlannerROS::transformGlobalPlan |
( |
std::vector< geometry_msgs::PoseStamped > & |
transformed_plan | ) |
|
|
private |
Transforms the global plan of the robot from the planner frame to the local frame.
- Parameters
-
transformed_plan | Populated with the transformed plan |
nav_msgs::Odometry safe_teleop::SafeTrajectoryPlannerROS::base_odom_ |
|
private |
double safe_teleop::SafeTrajectoryPlannerROS::circumscribed_radius_ |
|
private |
std::string safe_teleop::SafeTrajectoryPlannerROS::global_frame_ |
|
private |
double safe_teleop::SafeTrajectoryPlannerROS::inscribed_radius_ |
|
private |
double safe_teleop::SafeTrajectoryPlannerROS::max_sensor_range_ |
|
private |
double safe_teleop::SafeTrajectoryPlannerROS::max_vel_th_ |
|
private |
double safe_teleop::SafeTrajectoryPlannerROS::min_vel_th_ |
|
private |
boost::recursive_mutex safe_teleop::SafeTrajectoryPlannerROS::odom_lock_ |
|
private |
std::string safe_teleop::SafeTrajectoryPlannerROS::robot_base_frame_ |
|
private |
double safe_teleop::SafeTrajectoryPlannerROS::rot_stopped_velocity_ |
|
private |
bool safe_teleop::SafeTrajectoryPlannerROS::safe_backwards_ |
|
private |
TFListener* safe_teleop::SafeTrajectoryPlannerROS::tf_ |
|
private |
double safe_teleop::SafeTrajectoryPlannerROS::trans_stopped_velocity_ |
|
private |
The documentation for this class was generated from the following files: