#include <gazebo_ros_bumper.h>
Public Member Functions | |
GazeboRosBumper () | |
Constructor. | |
void | Load (sensors::SensorPtr _parent, sdf::ElementPtr _sdf) |
Load the plugin. | |
~GazeboRosBumper () | |
Destructor. | |
Private Member Functions | |
void | ContactQueueThread () |
void | OnContact () |
Update the controller. | |
Private Attributes | |
std::string | bumper_topic_name_ |
set topic name of broadcast | |
boost::thread | callback_queue_thread_ |
ros::Publisher | contact_pub_ |
ros::CallbackQueue | contact_queue_ |
gazebo_msgs::ContactsState | contact_state_msg_ |
broadcast some string for now. | |
std::string | frame_name_ |
sensors::ContactSensorPtr | parentSensor |
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 51 of file gazebo_ros_bumper.h.
Constructor.
Definition at line 51 of file gazebo_ros_bumper.cpp.
Destructor.
Definition at line 57 of file gazebo_ros_bumper.cpp.
void gazebo::GazeboRosBumper::ContactQueueThread | ( | ) | [private] |
Definition at line 325 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 67 of file gazebo_ros_bumper.cpp.
void gazebo::GazeboRosBumper::OnContact | ( | ) | [private] |
Update the controller.
: need a time for each Contact in i-loop, they may differ
:
Definition at line 133 of file gazebo_ros_bumper.cpp.
std::string gazebo::GazeboRosBumper::bumper_topic_name_ [private] |
set topic name of broadcast
Definition at line 73 of file gazebo_ros_bumper.h.
boost::thread gazebo::GazeboRosBumper::callback_queue_thread_ [private] |
Definition at line 85 of file gazebo_ros_bumper.h.
Definition at line 68 of file gazebo_ros_bumper.h.
Definition at line 83 of file gazebo_ros_bumper.h.
gazebo_msgs::ContactsState gazebo::GazeboRosBumper::contact_state_msg_ [private] |
broadcast some string for now.
Definition at line 78 of file gazebo_ros_bumper.h.
std::string gazebo::GazeboRosBumper::frame_name_ [private] |
Definition at line 75 of file gazebo_ros_bumper.h.
sensors::ContactSensorPtr gazebo::GazeboRosBumper::parentSensor [private] |
Definition at line 70 of file gazebo_ros_bumper.h.
std::string gazebo::GazeboRosBumper::robot_namespace_ [private] |
for setting ROS name space
Definition at line 81 of file gazebo_ros_bumper.h.
ros::NodeHandle* gazebo::GazeboRosBumper::rosnode_ [private] |
pointer to ros node
Definition at line 67 of file gazebo_ros_bumper.h.
Definition at line 88 of file gazebo_ros_bumper.h.