this PR add before-hook-func and after-hook-func for state-machine execution.
in the loop, we can add befor hook and after hook for smach execution.
(catch :exec-state-machine-loop ...) for global exit from hook-func with throw.
I also add catch :exec-state-machine-loop for global exit from the loop.
with this PR, we can exit from the execution loop from the hook with (throw :exec-state-machine-loop).
before-hook-func
andafter-hook-func
this PR add
before-hook-func
andafter-hook-func
for state-machine execution. in the loop, we can add befor hook and after hook for smach execution.(catch :exec-state-machine-loop ...)
forglobal exit
fromhook-func
withthrow
.I also add
catch :exec-state-machine-loop
forglobal exit
from the loop. with this PR, we can exit from the execution loop from the hook with(throw :exec-state-machine-loop)
.this is the example of the hook usage.