An example plugin for a contact sensor. More...
#include <gazebo_imu_plugin.hh>
Public Member Functions | |
GazeboIMUPlugin () | |
Constructor. | |
virtual | ~GazeboIMUPlugin () |
Destructor. | |
virtual void | Load (sensors::SensorPtr _sensor, sdf::ElementPtr _sdf) |
Load the sensor plugin. | |
Private Member Functions | |
virtual void | OnUpdate () |
Callback that recieves the contact sensor's update signal. | |
Private Attributes | |
sensors::ImuSensorPtr | 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. | |
double | m_acc_x |
double | m_acc_y |
double | m_acc_z |
double | m_omega_x |
double | m_omega_y |
double | m_omega_z |
An example plugin for a contact sensor.
void GazeboIMUPlugin::Load | ( | sensors::SensorPtr | _sensor, |
sdf::ElementPtr | _sdf | ||
) | [virtual] |
Load the sensor plugin.
[in] | _sensor | Pointer to the sensor that loaded this plugin. |
[in] | _sdf | SDF element that describes the plugin. |