ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

How to get a ground truth yaw angle or odometry from Gazebo?

asked 2017-12-21 03:31:21 -0600

Abdulbaki gravatar image

updated 2018-03-15 07:53:37 -0600

I need to do georeferencing with point clouds on Gazebo so I use navsat_transform_node to convert gps to odom information as odometry/gps and I use ekf localization with "odometry/gps" and "imu/data" nodes as I am inspired by [ https://answers.ros.org/question/2000... ] but the yaw angle that I take from "odometry/filtered" node drifts even though I set all the drift and noise values to zero in husky.gazebo.xacro file.

Can you tell me what should I do to get a perfect yaw angle on Gazebo or what am I doing wrong?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2018-03-15 07:50:58 -0600

Abdulbaki gravatar image

updated 2018-03-15 07:52:30 -0600

I found that when I add the following to the robot urdf file, I get ground truth odometry from "/ground_truth/state" topic.

<gazebo><plugin filename="libgazebo_ros_p3d.so" name="quadrotor_groundtruth_sim">
  <updateRate>100.0</updateRate>
  <bodyName>base_link</bodyName>
  <topicName>ground_truth/state</topicName>
  <gaussianNoise>0.0</gaussianNoise>
  <frameName>world</frameName>
</plugin></gazebo>
edit flag offensive delete link more

Question Tools

3 followers

Stats

Asked: 2017-12-21 03:31:21 -0600

Seen: 2,061 times

Last updated: Mar 15 '18