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

actionlib cancelGoal() error

asked 2012-05-20 21:07:33 -0600

McMurdo gravatar image

updated 2014-01-28 17:12:23 -0600

ngrennan gravatar image

Trying to cancelGoal() when no goal is running. You are incorrectly using SimpleActionClient

This is the error I get when I send a goal. I have subscribed to callbacks and I get a callback as soon as the goal goes active. So it surely does go active. Also, getStatus() fails similarly. But the state is described as LOST.

Please explain. I will provide additional information as necessary.

Thank You.

edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted

answered 2012-05-21 03:06:25 -0600

McMurdo gravatar image

I am creating another SimpleActionClient local variable in a member function. The Class already has a member. So, I send the goal using the local variable, where as I try to cancel it using the Class variable. It can never work. Now, I am able to Pre-empt the goal. Sorry for the trouble. Problem solved.

edit flag offensive delete link more

answered 2012-05-20 22:57:25 -0600

Procópio gravatar image

updated 2012-05-20 22:57:46 -0600

maybe you have already reached the goal when you try to send the cancelGoal() command

edit flag offensive delete link more


No. We have a high tolerance. Our Tolerance is about 0.3m and that is more than what amcl uses. Also, we try to getState() immediately after the goal becomes active. It gives an error at that point.

McMurdo gravatar image McMurdo  ( 2012-05-20 23:59:11 -0600 )edit

@Procópio Silveira Stein im having the same problem do you have any idea how to solve it?

ctguell gravatar image ctguell  ( 2013-11-05 08:39:16 -0600 )edit

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: 2012-05-20 21:07:33 -0600

Seen: 1,217 times

Last updated: May 21 '12