Ask Your Question

what does <body_name> and <frame_name> tag of gazebo IMU plugin imply?

asked 2020-09-24 01:51:34 -0500

Shiva_uchiha gravatar image

I am trying to implement a IMU sensor in gazebo using this tutorial :

 <gazebo reference="imu_link">
<sensor name="imu_sensor" type="imu">
  <plugin filename="" name="imu_plugin">
    <xyzOffset>0 0 0</xyzOffset>
    <rpyOffset>0 0 0</rpyOffset>
  <pose>0 0 0 0 0 0</pose>


I am assuming that <frame_name> corresponds to the TF name of the link to which sensor is attached . However I am not sure what <body name=""> tag refers to.

It will be very helpful if some one can provide links to a more detailed page where all the tags are explained.

Thank you !

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2020-09-27 05:44:17 -0500

Weasfas gravatar image

updated 2020-09-28 04:08:25 -0500

Hi @Shiva_uchiha,

First of all I want to clarify that the gazebo_ros_imu plugin is not the same as the gazebo_ros_imu_sensor plugin. The first one is a model plugin and the second one a sensor plugin, hence, they are attach to different things in the simulation.

Both use the frameName parameter to fill the sensor_msgs::Imu message header the plugins produce.

On the other hand, the bodyName name param is only used by the gazebo_ros_imu plugin to assert that the model to which the plugin is attached exists by that name in the Gazebo world. This has to be done like that to ensure the plugin is properly loaded in the model.

If you have doubts about its functioning you can check the github repo containing the implementation of all official Gazebo plugins here.

Hope it helps you.


edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2020-09-24 01:51:34 -0500

Seen: 644 times

Last updated: Sep 28 '20