ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
So I found a work around.
After calling sendGoal() I've not got this little while loop
while (navigationState == actionlib::SimpleClientGoalState::ACTIVE ||
navigationState == actionlib::SimpleClientGoalState::PENDING)
{
navigationState = ac.getState();
ROS_DEBUG("Navigation State: %s", navigationState.toString().c_str());
sleep(1);
if (cmdString == "HOME")
{
ac.cancelGoal();
}
}
Basically checking for incoming messages/commands and cancelling the goal when I need
This might be of use to someone ;-)
Mark