
Hello! To preface, I working with a turtlebot3 running ROS on Ubuntu, and working with the package frontier-exploration. I am designing a Python script that will send the turtlebot to its point of origin when the battery is low, and stop when it reaches that point. It operates by specifying a very small perimeter around the bot's point of origin. Now the problem: I want the bot to completely stop moving when it reaches its goal, but I cannot seem to publish a Twist to cmd_vel that will stop the bot. Is there a way that I can shutdown frontier-exploration from my Python script? Thank you!
Originally posted by AmateurHour on ROS Answers with karma: 95 on 2018-06-27
Post score: 0
Original comments
Comment by jayess on 2018-06-27:
Can you please update your question with what you've attempted so far (i.e., your code)?
Comment by Geoff on 2018-06-27:
You should post a new question about your inability to stop the robot using commands. Shutting down the node is a heavy-handed way to stop frontier-exploration and there should be a better way. (If there isn't, your question might trigger someone to produce one.)