Gazebo | Ignition | Community
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Providing a link between gazebo plugins and base_link in the robot model


I have added the following plugins to my .gazebo file. When I do rostopic echo for all the topics, all the information about poses are updated. My problem is that when I do "rosrun tf view_frames", there is no link between odom and base_link. I would like to update the information of what I got from Gazebo into rviz tf tree. So, do I need to add some tags to the plugins in .gazebo file? Or do I need to add some links in the urdf file?

<gazebo> <!-- GPS plugin -->
<plugin name="robot_gps_sim" filename="">
  <drift>5.0 5.0 5.0</drift>
  <gaussianNoise>0.1 0.1 0.1</gaussianNoise>
  <velocityDrift>0 0 0</velocityDrift>
  <velocityGaussianNoise>0.1 0.1 0.1</velocityGaussianNoise>

<!-- Groundtruth plugin -->
<plugin name="robot_groundtruth_sim" filename="">
  <xyzOffsets>0 0 0</xyzOffsets>
  <rpyOffsets>0 0 0</rpyOffsets>

<!-- IMU plugin -->
<plugin name="robot_imu_sim" filename="">
    <xyzOffset>0.0 0.0 0.0</xyzOffset>
    <rpyOffset>0.0 0.0 0.0</rpyOffset>
    <accelDrift>0.5 0.5 0.5</accelDrift>
    <accelGaussianNoise>0.35 0.35 0.3</accelGaussianNoise>
    <rateDrift>0.0 0.0 0.0</rateDrift>
    <rateGaussianNoise>0.00 0.00 0.00</rateGaussianNoise>
</plugin> </gazebo>

Actually, I asked another question in, but I am not sure whether the problem has to do with the the way I have defined the plugins for gazebo.

Thank you.