SMORES Robot Platform Simulation
Modlab at Penn, ASL at Cornell
|
This class will be used in automatically connection under magnetic force. More...
#include <ContactPublisher.hh>
Public Member Functions | |
ContactSensor () | |
Constructor. | |
~ContactSensor () | |
Destructor. | |
void | Load (sensors::SensorPtr _sensor, sdf::ElementPtr _sdf) |
Load the sensor plugin. More... | |
void | OnUpdate () |
Callback that recieves the contact sensor's update signal. | |
This class will be used in automatically connection under magnetic force.
The trigger condition of magnetic connections is the face contact of two modules
void gazebo::ContactSensor::Load | ( | sensors::SensorPtr | _sensor, |
sdf::ElementPtr | _sdf | ||
) |
Load the sensor plugin.
_sensor | Pointer to the sensor that loaded this plugin. |
_sdf | SDF element that describes the plugin. |