YARP device driver to give the gazebo state information of a desired base link of the robot The state information include.
More...
YARP device driver to give the gazebo state information of a desired base link of the robot The state information include.
- absolute pose of the base link (x, y, z. roll, pitch, yaw)
- linear and angular velocity of the base link in the world frame
- linear and angular acceleration of the base link in the world frame
- Warning
- Note that the position angles, angular velocity and angular accelerations are expressed in radians-based units which is different from the usual YARP convention of expressing angles in degrees
This device can be used by adding the following line in the SDF file of your robot, <plugin name="basestate" filename="libgazebo_yarp_basestate.so">
<yarpConfigurationFile>model:
</plugin>
For configuration, the device supports two style. The first one, that is activated if disableImplicitNetworkWrapper parameter is given, is the following:
Parameter name | Type | Units | Default Value | Required | Description | Notes |
yarpDeviceName | string | | | Yes | name of the device used to identify the device instance in the gazebo_yarp_robotinterface plugin | |
baseLink | string | - | - | Yes | name of the floating base link | |
An example configuration file might look like:
disableImplicitNetworkWrapper
yarpDeviceName basestate_device
baseLink torso_link
the same options can be passed via yarpConfigurationString tag to pass the configuration as a string, as in:
<plugin name="basestate" filename="libgazebo_yarp_basestate.so">
<yarpConfigurationString>(disableImplicitNetworkWrapper) (yarpDeviceName basestate_device) (baseLink torso_link)</yarpConfigurationString>
</plugin>
Alternatively, if disableImplicitNetworkWrapper parameter is not given, the following DEPRECATED style is used:
The configuration file must contain two groups [WRAPPER] and [DRIVER]
Parameters accepted in the config argument of the open method for [WRAPPER]:
Parameter name | Type | Units | Default Value | Required | Description | Notes |
name | string | - | - | Yes | full name of the port opened by the device | MUST start with a '/' character |
period | double | ms | 20 | No | refresh period of broadcast value in ms | optional, default 20ms |
device | string | - | - | Yes | name of the network wrapper to connect to | MUST be set to analogServer |
Parameters accepted in the config argument of the open method for [DRIVER]:
Parameter name | Type | Units | Default Value | Required | Description | Notes |
device | string | - | - | Yes | name of the device driver to instantiate | MUST be set to gazebo_basestate |
baseLink | string | - | - | Yes | name of the floating base link | - |
An example configuration file might look like,
[WRAPPER]
name /icubSim/floating_base/state:o
period 16
device analogServer
[DRIVER]
device gazebo_basestate
baseLink torso_link
This style is going to be removed in a future release of gazebo-yarp-plugins.