Ask Your Question
1

How do you cancel an actionlib action?

asked 2016-04-21 17:46:57 -0500

Cerin gravatar image

How does an actionlib client cancel an ongoing action?

The docs clearly explain how to code an actionlib server to react to a cancellation request and exit, but I can't find any example of how this is initiated by the client.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
1

answered 2016-04-21 18:25:48 -0500

ahendrix gravatar image

Each of the client APIs for the action clients has a cancel method. The full API documentation can be accessed through the Code API link on the main wiki page.

In the python action client, send_goal returns ClientGoalHandle which can be used to cancel the goal: http://docs.ros.org/jade/api/actionli...

In the C++ action client, sendGoal returns a GoalHandle with a cancel method: http://docs.ros.org/jade/api/actionli...

On the python simple action client, there is a cancel_goal method: http://docs.ros.org/jade/api/actionli...

On the C++ SimpleActionClient, there is a cancelGoal method: http://docs.ros.org/jade/api/actionli...

edit flag offensive delete link more
0

answered 2018-01-17 15:19:47 -0500

AndyZe gravatar image
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

1 follower

Stats

Asked: 2016-04-21 17:46:57 -0500

Seen: 5,310 times

Last updated: Jan 17 '18