ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
So if I understand your question correctly, you start out with an actionlib action, and you then wrap this action in a smach state using the SimpleActionState. And now you want to preempt this action. So what you need is the generic smach preemption mechanism described in this tutorial. Smach will then automatically pass on the preemption request to your actionlib action.
For this mechanism to work you should make sure that your actionlib action implements preemption.