#include <gazebo_ros_bumper.h>
Public Member Functions | |
GazeboRosBumper () | |
Constructor. | |
void | Load (sensors::SensorPtr _parent, sdf::ElementPtr _sdf) |
Load the plugin. | |
~GazeboRosBumper () | |
Destructor. | |
Protected Member Functions | |
virtual void | UpdateChild () |
Update the controller. | |
Private Member Functions | |
void | ContactConnect () |
void | ContactDisconnect () |
void | ContactQueueThread () |
Private Attributes | |
std::string | bumper_topic_name_ |
set topic name of broadcast | |
boost::thread | callback_queue_thread_ |
int | contact_connect_count_ |
Keep track of number of connctions. | |
ros::Publisher | contact_pub_ |
ros::CallbackQueue | contact_queue_ |
gazebo_msgs::ContactsState | contact_state_msg_ |
broadcast some string for now. | |
std::string | frame_name_ |
std::string | robot_namespace_ |
for setting ROS name space | |
ros::NodeHandle * | rosnode_ |
pointer to ros node | |
event::ConnectionPtr | update_connection_ |
A Bumper controller.
Definition at line 55 of file gazebo_ros_bumper.h.
Constructor.
Definition at line 48 of file gazebo_ros_bumper.cpp.
Destructor.
Definition at line 56 of file gazebo_ros_bumper.cpp.
void gazebo::GazeboRosBumper::ContactConnect | ( | ) | [private] |
Definition at line 127 of file gazebo_ros_bumper.cpp.
void gazebo::GazeboRosBumper::ContactDisconnect | ( | ) | [private] |
Definition at line 133 of file gazebo_ros_bumper.cpp.
void gazebo::GazeboRosBumper::ContactQueueThread | ( | ) | [private] |
Definition at line 323 of file gazebo_ros_bumper.cpp.
void gazebo::GazeboRosBumper::Load | ( | sensors::SensorPtr | _parent, |
sdf::ElementPtr | _sdf | ||
) |
Load the plugin.
take | in SDF root element |
Definition at line 66 of file gazebo_ros_bumper.cpp.
void gazebo::GazeboRosBumper::UpdateChild | ( | ) | [protected, virtual] |
Update the controller.
Definition at line 140 of file gazebo_ros_bumper.cpp.
std::string gazebo::GazeboRosBumper::bumper_topic_name_ [private] |
set topic name of broadcast
Definition at line 76 of file gazebo_ros_bumper.h.
boost::thread gazebo::GazeboRosBumper::callback_queue_thread_ [private] |
Definition at line 93 of file gazebo_ros_bumper.h.
int gazebo::GazeboRosBumper::contact_connect_count_ [private] |
Keep track of number of connctions.
Definition at line 87 of file gazebo_ros_bumper.h.
Definition at line 73 of file gazebo_ros_bumper.h.
Definition at line 91 of file gazebo_ros_bumper.h.
broadcast some string for now.
Definition at line 81 of file gazebo_ros_bumper.h.
std::string gazebo::GazeboRosBumper::frame_name_ [private] |
Definition at line 78 of file gazebo_ros_bumper.h.
std::string gazebo::GazeboRosBumper::robot_namespace_ [private] |
for setting ROS name space
Definition at line 84 of file gazebo_ros_bumper.h.
ros::NodeHandle* gazebo::GazeboRosBumper::rosnode_ [private] |
pointer to ros node
Definition at line 72 of file gazebo_ros_bumper.h.
Definition at line 96 of file gazebo_ros_bumper.h.