Skip to content

Commit

Permalink
Add gazebo IMU plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
NestorDP authored Apr 12, 2024
1 parent fff4b1c commit c00a4ed
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 deletions littlebot_description/gazebo/littlebot.gazebo.xacro
Original file line number Diff line number Diff line change
Expand Up @@ -86,21 +86,27 @@
</joint>
</ros2_control> -->

<gazebo>

<plugin filename="ignition-gazebo-sensors-system" name="ignition::gazebo::systems::Sensors">
<render_engine>ogre2</render_engine>
</plugin>

<plugin filename="ignition-gazebo-imu-system" name="ignition::gazebo::systems::Imu">
</plugin>

</gazebo>

<!-- Plugin IMU -->
<!-- <gazebo reference="imu_link">
<gazebo reference="imu_link">
<sensor name="imu_sensor" type="imu">
<plugin filename="libgazebo_ros_imu_sensor.so" name="imu_plugin">
<ros>
<namespace>/</namespace>
<remapping>~/out:=imu/data_raw</remapping>
</ros>
<initial_orientation_as_reference>false</initial_orientation_as_reference>
</plugin>
<always_on>true</always_on>
<always_on>1</always_on>
<update_rate>100</update_rate>
<visualize>true</visualize>
<ignition_frame_id>imu_link</ignition_frame_id>
<topic>imu</topic>
</sensor>
</gazebo> -->
</gazebo>

<!-- Plugin SONAR -->
<!-- <xacro:macro name="sonar" params="reference topic_name">
Expand Down

0 comments on commit c00a4ed

Please sign in to comment.