Public Member Functions | Private Member Functions | Private Attributes
safe_teleop::SafeTrajectoryPlannerROS Class Reference

A ROS wrapper for the trajectory controller that queries the param server to construct a controller. More...

#include <safe_trajectory_planner_ros.h>

List of all members.

Public Member Functions

bool 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.
 SafeTrajectoryPlannerROS (TFListener *tf, costmap_2d::Costmap2DROS *costmap_ros)
 Constructs the ros wrapper.
 ~SafeTrajectoryPlannerROS ()
 Destructor for the wrapper.

Private Member Functions

void cmdCallback (const geometry_msgs::Twist::ConstPtr &vel)
double distance (double x1, double y1, double x2, double y2)
 Compute the distance between two points.
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.
bool stopped ()
 Check whether the robot is stopped or not.
bool transformGlobalPlan (std::vector< geometry_msgs::PoseStamped > &transformed_plan)
 Transforms the global plan of the robot from the planner frame to the local frame.

Private Attributes

nav_msgs::Odometry base_odom_
 Used to get the velocity of the robot.
double circumscribed_radius_
ros::Publisher cmd_pub_
ros::Subscriber cmd_sub_
costmap_2d::Costmap2D costmap_
 The costmap the controller will use.
costmap_2d::Costmap2DROScostmap_ros_
 The ROS wrapper for the costmap the controller will use.
std::string global_frame_
 The frame in which the controller will run.
double inscribed_radius_
ros::Publisher l_plan_pub_
double max_sensor_range_
 Keep track of the effective maximum range of our sensors.
double max_vel_th_
double min_vel_th_
ros::NodeHandle nh_
boost::recursive_mutex odom_lock_
ros::Subscriber odom_sub_
std::string robot_base_frame_
 Used as the base frame id of the robot.
double rot_stopped_velocity_
SafeTrajectoryPlannertc_
 The trajectory controller.
TFListenertf_
 Used for transforming point clouds.
double trans_stopped_velocity_
ros::Publisher u_plan_pub_
ros::Subscriber user_sub_
base_local_planner::WorldModelworld_model_
 The world model that the controller will use.

Detailed Description

A ROS wrapper for the trajectory controller that queries the param server to construct a controller.

Definition at line 51 of file safe_trajectory_planner_ros.h.


Constructor & Destructor Documentation

Constructs the ros wrapper.

Parameters:
nameThe name to give this instance of the trajectory planner
tfA pointer to a transform listener
costmapThe cost map to use for assigning costs to trajectories

Definition at line 21 of file safe_trajectory_planner_ros.cpp.

Destructor for the wrapper.

Definition at line 132 of file safe_trajectory_planner_ros.cpp.


Member Function Documentation

void safe_teleop::SafeTrajectoryPlannerROS::cmdCallback ( const geometry_msgs::Twist::ConstPtr &  vel) [private]

Definition at line 161 of file safe_trajectory_planner_ros.cpp.

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:
velVelocity received from user
cmd_velWill 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 184 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:
x1The first x point
y1The first y point
x2The second x point
y2The second y point

Definition at line 147 of file safe_trajectory_planner_ros.cpp.

std::vector< double > safe_teleop::SafeTrajectoryPlannerROS::loadYVels ( ros::NodeHandle  node) [private]

Definition at line 101 of file safe_trajectory_planner_ros.cpp.

void safe_teleop::SafeTrajectoryPlannerROS::odomCallback ( const nav_msgs::Odometry::ConstPtr &  msg) [private]

Definition at line 151 of file safe_trajectory_planner_ros.cpp.

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]

Publish a plan for visualization purposes.

Definition at line 286 of file safe_trajectory_planner_ros.cpp.

Check whether the robot is stopped or not.

Returns:
True if the robot is stopped, false otherwise

Definition at line 140 of file safe_trajectory_planner_ros.cpp.

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_planPopulated with the transformed plan

Member Data Documentation

Used to get the velocity of the robot.

Definition at line 116 of file safe_trajectory_planner_ros.h.

Definition at line 119 of file safe_trajectory_planner_ros.h.

Definition at line 124 of file safe_trajectory_planner_ros.h.

Definition at line 125 of file safe_trajectory_planner_ros.h.

The costmap the controller will use.

Definition at line 112 of file safe_trajectory_planner_ros.h.

The ROS wrapper for the costmap the controller will use.

Definition at line 111 of file safe_trajectory_planner_ros.h.

The frame in which the controller will run.

Definition at line 114 of file safe_trajectory_planner_ros.h.

Definition at line 119 of file safe_trajectory_planner_ros.h.

Definition at line 120 of file safe_trajectory_planner_ros.h.

Keep track of the effective maximum range of our sensors.

Definition at line 115 of file safe_trajectory_planner_ros.h.

Definition at line 128 of file safe_trajectory_planner_ros.h.

Definition at line 128 of file safe_trajectory_planner_ros.h.

Definition at line 107 of file safe_trajectory_planner_ros.h.

boost::recursive_mutex safe_teleop::SafeTrajectoryPlannerROS::odom_lock_ [private]

Definition at line 127 of file safe_trajectory_planner_ros.h.

Definition at line 122 of file safe_trajectory_planner_ros.h.

Used as the base frame id of the robot.

Definition at line 117 of file safe_trajectory_planner_ros.h.

Definition at line 118 of file safe_trajectory_planner_ros.h.

The trajectory controller.

Definition at line 110 of file safe_trajectory_planner_ros.h.

Used for transforming point clouds.

Definition at line 113 of file safe_trajectory_planner_ros.h.

Definition at line 118 of file safe_trajectory_planner_ros.h.

Definition at line 121 of file safe_trajectory_planner_ros.h.

Definition at line 122 of file safe_trajectory_planner_ros.h.

The world model that the controller will use.

Definition at line 109 of file safe_trajectory_planner_ros.h.


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


safe_teleop_base
Author(s):
autogenerated on Thu Mar 14 2019 02:49:46