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

move_base stop navigation

asked 2012-10-18 05:33:34 -0600

rastaxe gravatar image

I am using the navigation stack with Trajectory Planner and dwa enabled. I am looking for a straightforward way to stop my robot during its navigation (for emergency or safety reason for example). One way to do this is to send the current robot position as a goal, but I am wondering if a stop navigation service already exists. I found the topic /move_base/cancel, but it is a request to cancel a specific goal. Any suggestions?

edit retag flag offensive close merge delete

Comments

@rastaxe did you ever tested to stop the robot posting its actual position as goal?? if so how did you do it?

ctguell gravatar image ctguell  ( 2013-10-11 06:50:59 -0600 )edit

sorry for the late response, but I found only now this comment. Yes, actually I use the current position of the robot as a goal, to stop it in a reactive way. It is straightforward, with amcl you can read the amcl_pose topic and sends this pose as goal with actionlib.

rastaxe gravatar image rastaxe  ( 2014-10-02 02:50:08 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
5

answered 2012-10-18 05:53:55 -0600

Lorenz gravatar image

You should use actionlib to send goals to your robot as shown in this tutorial. The action client provides the method cancelGoal. When you call it, the robot should stop moving.

edit flag offensive delete link more

Comments

@Lorenz how should i call the cancelGoal ? In the same node as in the tutorial? Im working on a person detecting code so the idea is that when a person is detected to stop the robot. Any help would be appreciated. Thanks

ctguell gravatar image ctguell  ( 2013-10-15 05:44:59 -0600 )edit

Question Tools

Stats

Asked: 2012-10-18 05:33:34 -0600

Seen: 6,300 times

Last updated: Oct 18 '12