Skip to content

Commit

Permalink
separate :exit-state and :register-exit-signal-hook
Browse files Browse the repository at this point in the history
  • Loading branch information
knorth55 committed Dec 6, 2022
1 parent 7291a4f commit 5ed8344
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions roseus_smach/src/state-machine-ros.l
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,9 @@
;; TODO apply userdata
(setq init-tm (ros::time-now))
))
(:exit-state () exit-state)
(:register-exit-signal-hook
(&optional es userdata exit-signal-hook-func)
(if (null es) (return-from :exit-state exit-state))
(es userdata exit-signal-hook-func)
(if (null (derivedp es state))
(setq es (send self :state-machine :node es)))
;; update exit-state slot
Expand Down

0 comments on commit 5ed8344

Please sign in to comment.