ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
You can only accept a new goal once, but you have two calls of as.acceptNewGoal(). so just call it once to get a pointer to the current goal. You can check the implementation here.