Skip to content

Commit 4167977

Browse files
author
Victor Lopez
committed
Add imu plugin
1 parent 6675dbd commit 4167977

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

pmb2_description/gazebo/gazebo.urdf.xacro

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,9 @@
3939
</gazebo>
4040

4141
<gazebo reference="base_imu_link">
42-
<!-- this is expected to be reparented to pelvis with appropriate offset
43-
when imu_link is reduced by fixed joint reduction -->
4442
<sensor name="imu_sensor" type="imu">
4543
<always_on>1</always_on>
46-
<update_rate>1000.0</update_rate>
44+
<update_rate>10.0</update_rate>
4745
<imu>
4846
<noise>
4947
<type>gaussian</type>
@@ -61,6 +59,12 @@
6159
</accel>
6260
</noise>
6361
</imu>
62+
<plugin name="base_imu" filename="libgazebo_ros_imu_sensor.so">
63+
<ros>
64+
<!-- publish to /imu/data -->
65+
<remapping>~/out:=base_imu</remapping>
66+
</ros>
67+
</plugin>
6468
</sensor>
6569
</gazebo>
6670

0 commit comments

Comments
 (0)