Ask Your Question
1

Topic that publishes Current Pose of TurtleBot

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

prasanna gravatar image prasanna flag of Sweden
55 4 5 9

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 delete

1 Answer

Sort by ยป oldest newest most voted
3

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

DimitriProsser gravatar image DimitriProsser flag of United States
8333 45 82 153

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

or

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;
  try
  {
    // 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 publish link more

Your answer

Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

subscribe to rss feed

Stats

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

Seen: 308 times

Last updated: Mar 28 '12