executive_smach
executive_smach copied to clipboard
Fix/cancel goal in ROS1
Inspired by: https://github.com/ros/executive_smach/pull/116 This is a ROS1 backport of these fixes.
It implements the preempt_timeout and fixes the canceling of goals, next to some formatting changes...
Why would anyone backport these "fixes" to break existing code?
The idea is to help the community, for example, by implementing the preempt_timeout
inthis PR. This was never implemented before and thus can result in SimpleActionState
being stuck in a deadlock if preempting an action fails.
How does it "break" your code then?
You changed half a file to implement something, and it's definitely not more readable...
- https://github.com/ros/executive_smach/blob/2fb24b3faf9063afd8c660e037f44d9221b73593/smach_ros/src/smach_ros/simple_action_state.py#L17 You added another class just to hold state variables?