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

Topic that publishes Current Pose of TurtleBot

asked 2012-03-28 00:13:57 -0500

prasanna gravatar image

updated 2014-04-20 14:09:35 -0500

ngrennan gravatar image

Is there a topic that publishes the current pose of the turtlebot?

robot_pose_ekf/odom doesn't give the pose relative to the global frame. amcl_pose doesn't give the pose when the robot is stationary.

What should I do to get the robot pose when the robot is stationary? Should I get the value from robot_pose_ekf/odom and then use the transform from /odom to /map as given by the /tf topic???

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2012-03-28 04:30:33 -0500

DimitriProsser gravatar image

It would help us if you could also identify the goal of seeing this information. If you're trying to see this information in a terminal, you can use:

rosrun tf view_frames /map /odom


rosrun tf view_frames /map /base_link

If you're trying to do this in code, you can perform this lookup in code as well.

  // Look up transform between base link and the map frame.
  tf::StampedTransform xform;
    // The waypoint frame is the source frame
    tf_.lookupTransform("/map", "/base_link", ros::Time(0), xform);
  catch (tf::TransformException ex)
    ROS_ERROR("%s", ex.what());
edit flag offensive delete link more

Question Tools

1 follower


Asked: 2012-03-28 00:13:57 -0500

Seen: 2,059 times

Last updated: Mar 28 '12