Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

goal status in Callback in actionserver in C++

Hi all, My client sends the goal but gets status ABORTED instead of SUCCEEDED and server gives following error: <<[ WARN] [1337607518.317686823]: Your executeCallback did not set the goal to a terminal status. This is a bug in your ActionServer implementation. Fix your code! For now, the ActionServer will set this goal to aborted

> My callback is void startnode(const my_msgs::myGoalConstPtr& goal, Server* as) { my_msgs::myResult result_; result_.result = 1; as->setSucceeded(result_); } Can anyone help me fix this problem?? Thanks in advance. Regards

goal status in Callback in actionserver in C++

Hi all, My client sends the goal but gets status ABORTED instead of SUCCEEDED and server gives following error: <<[ error:

[ WARN] [1337607518.317686823]: Your executeCallback did not set the goal to a terminal status.
status. This is a bug in your ActionServer implementation. Fix your code!
code! For now, the ActionServer will set this goal to abortedaborted

My callback is

> My callback is

void startnode(const my_msgs::myGoalConstPtr& goal, Server* as)
 { 
   my_msgs::myResult result_;
   result_.result = 1;
   as->setSucceeded(result_);
 }
 

Can anyone help me fix this problem?? Thanks in advance. Regards