gazebo-yarp-plugins
Gazebo Plugins exposing YARP interfaces.
|
Gazebo Plugin emulating the yarp imu device in Gazebo. More...
#include <IMU.hh>
Public Member Functions | |
GazeboYarpIMU () | |
virtual | ~GazeboYarpIMU () |
void | Load (sensors::SensorPtr _sensor, sdf::ElementPtr _sdf) override |
Gazebo Plugin emulating the yarp imu device in Gazebo.
This plugin instantiate a yarp imu driver for the Gazebo simulator and two network wrapper, the yarp::dev::MultipleAnalogSensorsServer and yarp::dev::ServerInertial for maintaining backward compatibility. It is supported also the legacy behaviour of the device-subdevice mechanism; in this case only the ServerInertial is instantiated.
It can be configured using the yarpConfigurationFile sdf tag, that contains a Gazebo URI pointing at a yarp .ini configuration file containing the configuration parameters of the controlBoard.
Here is an example of ini file for load the plugin:
[include "gazebo_icub_robotname.ini"] [WRAPPER] device multipleanalogsensorsserver name /${gazeboYarpPluginsRobotName}/head/inertials period 10
[ADDITIONAL_WRAPPER] device inertial name /${gazeboYarpPluginsRobotName}/inertial period 0.01
[IMU_DRIVER] device gazebo_imu
On the other hand, here is an example of ini file that exploits the legacy behaviour
[include "gazebo_icub_robotname.ini"] name /${gazeboYarpPluginsRobotName}/inertial period 0.01 device inertial subdevice gazebo_imu
gazebo::GazeboYarpIMU::GazeboYarpIMU | ( | ) |
|
virtual |
|
override |