ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

Current Position topic? (frontier_exploration)

asked 2018-06-29 11:07:35 -0500

AmateurHour gravatar image

Hello! I am running a Turtlebot3 with ROS on Ubuntu v16.02, and using the package frontier_exploration. I would like to use the bot's current position as a condition in my python script, so my plan is to subscribe to the topic and proceed from there. However, I cant seem to find the topic to which the current position is being published. Without this, I'm not sure how to tell the bot to stop once it is within a certain distance of it's origin position (0, 0, 0). Any help with this would be greatly appreciated! Thanks!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2018-06-29 13:07:03 -0500

Frontier Exploration itself is not going to give you a pose estimate, but there are a number of other tools to help you, including TF!

You can create a TF listener to get the map -> robot base frame transform. If you care about it in bash, there's a rosrun that will help you as well with tf echo. rosrun tf tf_echo /map /base_link

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



Asked: 2018-06-29 11:07:35 -0500

Seen: 643 times

Last updated: Jun 29 '18