Action primitive can receive preempt signal from previous primitive
It seems that if some actionclient_primitive
gets preempted and one (directly) to a primitive that connects to the same action server, the latter one can receive the preempted
message that was intended for the first one.
The second one would end up in this block:
def onDone(self, status, msg):
if status == GoalStatus.PREEMPTED:
return self.fail("Failed preempted", -1)
For now I just made this:
if status == GoalStatus.PREEMPTED:
# TODO: Hack - This is a workaround becasue we fail often otherwise
return self.step("Failed preempted")