0
$\begingroup$

Rosanswers logo

I just started learning ros. I followed the turtlebot tutorial to do robot navigation. But I need to store the trace of robot position to an individual file instead of displaying on rviz. The position is displayed in rviz->robotmodel->links->base_link. I thought I could find this data in topic list but I did not. What can I do to access those position data?


Originally posted by wwei on ROS Answers with karma: 1 on 2016-06-24

Post score: 0

$\endgroup$

1 Answer 1

0
$\begingroup$

Rosanswers logo

Probably the display you are using in RViz is TF. So have a look at Tutorials. Particularly, you can use tf::TransformListener to get a coordinate frame transformation between '/world' and '/base_link' frames to acquire robot's pose in global frame.


Originally posted by Boris with karma: 3060 on 2016-06-24

This answer was ACCEPTED on the original site

Post score: 0

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.