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

actionlib cancelGoal() error

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

McMurdo gravatar image

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

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
0

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

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
0

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

Procópio gravatar image

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

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

edit flag offensive delete link more

Comments

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 -0500 )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 -0500 )edit

Question Tools

Stats

Asked: 2012-05-20 21:07:33 -0500

Seen: 1,311 times

Last updated: May 21 '12