This repository was archived by the owner on Jul 10, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 781
ROS 2 Migration: P3D
Jacob Perron edited this page Dec 22, 2020
·
5 revisions
This pages describes the changes in the P3D plugin in gazebo_plugins for ROS 2 and instructions for migration.
- All SDF parameters are now
snake_cased. - If the topic name is not defined, default to
odominstead of failing. -
tf_prefixis no longer supported.
| ROS 1 | ROS 2 |
|---|---|
robotNamespace |
<ros><namespace> |
bodyName |
body_name |
topicName |
<ros><argument>odom:=custom_odom</argument></ros> |
frameName |
frame_name |
xyzOffset |
xyz_offsets |
rpyOffset |
rpy_offsets |
gaussianNoise |
gaussian_noise |
updateRate |
update_rate |
<model name='the_model'>
...
<link name='box_link'>
...
</link>
<link name='sphere_link'>
...
</link>
<plugin name="gazebo_ros_p3d" filename="libgazebo_ros_p3d.so">
<robotNamespace>demo</robotNamespace>
<topicName>p3d_demo</topicName>
<bodyName>box_link</bodyName>
<frameName>sphere_link</frameName>
<updateRate>1</updateRate>
<xyzOffsets>10 10 10</xyzOffsets>
<rpyOffsets>0.1 0.1 0.1</rpyOffsets>
<gaussianNoise>0.01</gaussianNoise>
</plugin>
</model> <model name='the_model'>
...
<link name='box_link'>
...
</link>
<link name='sphere_link'>
...
</link>
<plugin name="gazebo_ros_p3d" filename="libgazebo_ros_p3d.so">
<ros>
<!-- Add namespace and remap the default topic -->
<namespace>/demo</namespace>
<argument>odom:=p3d_demo</argument>
</ros>
<!-- Replace camelCase elements with camel_case ones -->
<body_name>box_link</body_name>
<frame_name>sphere_link</frame_name>
<update_rate>1</update_rate>
<xyz_offsets>10 10 10</xyz_offsets>
<rpy_offsets>0.1 0.1 0.1</rpy_offsets>
<gaussian_noise>0.01</gaussian_noise>
</plugin>
</model>