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

How does one obtain coordinantes from a map that was mapped by turtlebot in Rviz?

asked 2019-11-21 06:45:47 -0500

hamzaay gravatar image

Is there a way to obtain coordinates from a map in Rviz? I tried using the code "rostopic echo /amcl_pose" to fnd its current position but that didnt work. Thats because a certain topic wasnt published but i couldnt find the topic for amcl_pose. How do i solve this? However from what I understand this gives the current position which leads to my followup question;

How do I get positions from a pre-mapped map without the turtlebot being there? Like is there a way to click on a point on the map and get that position?

Thanks for reading.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2019-11-21 08:07:54 -0500

pavel92 gravatar image

If you can load your map properly and visualize it in RViz then you can use the Publish Point tool. This will publish the clicked point coordinates on the topic /clicked_point.

image description

Note that this will only publish the position of the clicked point. If you want to set orientation too then you can use some of the 2d Pose RViz tools or write your own plugin tool based on them.

edit flag offensive delete link more

Question Tools


Asked: 2019-11-21 06:45:47 -0500

Seen: 409 times

Last updated: Nov 21 '19