An example plugin for a contact sensor.
More...
#include <contact_plugin.h>
|
| ContactPlugin () |
| Constructor.
|
|
virtual | ~ContactPlugin () |
| Destructor.
|
|
virtual void | Load (sensors::SensorPtr _sensor, sdf::ElementPtr _sdf) |
| Load the sensor plugin.
|
|
|
virtual void | OnUpdate () |
| Callback that receives the contact sensor's update signal.
|
|
|
std::unique_ptr< ros::NodeHandle > | rosNode |
|
ros::Publisher | contact_publisher |
|
sensors::ContactSensorPtr | parentSensor |
| Pointer to the contact sensor.
|
|
event::ConnectionPtr | updateConnection |
| Connection that maintains a link between the contact sensor's updated signal and the OnUpdate callback.
|
|
An example plugin for a contact sensor.
◆ Load()
void ContactPlugin::Load |
( |
sensors::SensorPtr |
_sensor, |
|
|
sdf::ElementPtr |
_sdf |
|
) |
| |
|
virtual |
Load the sensor plugin.
- Parameters
-
[in] | _sensor | Pointer to the sensor that loaded this plugin. |
[in] | _sdf | SDF element that describes the plugin. |
The documentation for this class was generated from the following files:
- quad_simulator/gazebo_scripts/include/contact_plugin.h
- quad_simulator/gazebo_scripts/src/contact_plugin.cpp