Skip to content

Commit

Permalink
[jsk_unitree_startup/lead-teleop-state.l] Avoid no *img* input
Browse files Browse the repository at this point in the history
  • Loading branch information
iory committed Aug 30, 2022
1 parent 5a5a2ec commit 8aaa1b2
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@
(ros::spin-once)
(ros::sleep))
(set-alist 'description "散歩を始めるよ" args)
(set-alist 'image (remove #\newline (base64encode (send *img* :serialize))) args)
(when *img* (set-alist 'image (remove #\newline (base64encode (send *img* :serialize))) args))
:started))


(defun end-func (args)
(let ()
(set-alist 'description "散歩を終えるよ" args)
(set-alist 'image (remove #\newline (base64encode (send *img* :serialize))) args)
(when *img* (set-alist 'image (remove #\newline (base64encode (send *img* :serialize))) args))
:finished))

(defun walk-func (args)
Expand All @@ -50,14 +50,14 @@
(ros::spin-once)
(ros::sleep))
(set-alist 'description "歩いているよ" args)
(set-alist 'image (remove #\newline (base64encode (send *img* :serialize))) args)
(when *img* (set-alist 'image (remove #\newline (base64encode (send *img* :serialize))) args))
;; set description and goes to next state
:find-person))

(defun find-person-func (args)
(let ()
(set-alist 'description "散歩中に人を見つけたよ" args)
(set-alist 'image (remove #\newline (base64encode (send *img* :serialize))) args)
(when *img* (set-alist 'image (remove #\newline (base64encode (send *img* :serialize))) args))
:walk))

(defun lead-teleop-sm ()
Expand Down

0 comments on commit 8aaa1b2

Please sign in to comment.