Go to the documentation of this file.
18 #ifndef GAZEBO_ROS_BUMPER_HH
19 #define GAZEBO_ROS_BUMPER_HH
31 #include <boost/thread.hpp>
32 #include <boost/thread/mutex.hpp>
34 #include <std_msgs/String.h>
36 #include <gazebo_msgs/ContactState.h>
37 #include <gazebo_msgs/ContactsState.h>
39 #include <gazebo/sensors/sensors.hh>
40 #include <gazebo/msgs/msgs.hh>
41 #include <gazebo/physics/physics.hh>
43 #include <gazebo/transport/TransportTypes.hh>
44 #include <gazebo/msgs/MessageTypes.hh>
45 #include <gazebo/common/Time.hh>
46 #include <gazebo/sensors/SensorTypes.hh>
47 #include <gazebo/sensors/ContactSensor.hh>
48 #include <gazebo/common/Plugin.hh>
63 public:
void Load(sensors::SensorPtr _parent, sdf::ElementPtr _sdf);
GazeboRosBumper()
Constructor.
~GazeboRosBumper()
Destructor.
std::string bumper_topic_name_
set topic name of broadcast
ros::Publisher contact_pub_
std::string robot_namespace_
for setting ROS name space
event::ConnectionPtr update_connection_
ros::NodeHandle * rosnode_
pointer to ros node
void ContactQueueThread()
gazebo_msgs::ContactsState contact_state_msg_
broadcast some string for now.
ros::CallbackQueue contact_queue_
sensors::ContactSensorPtr parentSensor
void OnContact()
Update the controller.
void Load(sensors::SensorPtr _parent, sdf::ElementPtr _sdf)
Load the plugin.
boost::thread callback_queue_thread_
gazebo_plugins
Author(s): John Hsu
autogenerated on Thu Sep 5 2024 02:49:55