ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
I don't know about the python client but as far as I remember, sending an empty message to this topic like this cancels all goals:
rostopic pub -1 /move_base/cancel actionlib_msgs/GoalID -- {}
This works in terminal well.
You can send the message in python like:
from actionlib_msgs.msg import GoalID
cancel_pub = rospy.Publisher("/move_base/cancel", GoalID, queue_size=1)
cancel_msg = GoalID()
cancel_pub.publish(cancel_msg)
Just tried these lines in python terminal to be sure and it works.