Skip to content

Commit

Permalink
Merge pull request ros#5 from benmaidel/additional_logging
Browse files Browse the repository at this point in the history
added more debugging output
  • Loading branch information
fmessmer committed Oct 23, 2018
2 parents c48cece + f32bfdb commit f304bf3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions smach/src/smach/state_machine.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,8 @@ def _update_once(self):
self._preempt_current_state()
else:
# The flag was reset, so the container can reset
smach.logwarn("Preemption flag on preempted state '%s' was reset. Container can reset and continue..." % (self._preempted_label))
smach.logwarn("This could be errornous because state machine should preempt and we still continue. Most likely we will just preempt execution")
self._preempt_requested = False
self._preempted_state = None
else:
Expand Down

0 comments on commit f304bf3

Please sign in to comment.