Skip to content

Commit

Permalink
Fix case function misuse in simple-action-client :get-state
Browse files Browse the repository at this point in the history
  • Loading branch information
Affonso-Gui committed Nov 3, 2022
1 parent f98bb70 commit 930ca9c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions roseus/euslisp/actionlib.l
Original file line number Diff line number Diff line change
Expand Up @@ -225,10 +225,10 @@
(:get-state ()
(let (state)
(setq state (send (send comm-state :latest-goal-status) :status))
(case state
(actionlib_msgs::GoalStatus::*recalling*
(cond
((= state actionlib_msgs::GoalStatus::*recalling*)
(setq state actionlib_msgs::GoalStatus::*pending*))
(actionlib_msgs::GoalStatus::*preempting*
((= state actionlib_msgs::GoalStatus::*preempting*)
(setq state actionlib_msgs::GoalStatus::*active*)))
state))
(:get-goal-status-text () (send (send comm-state :latest-goal-status) :text))
Expand Down

0 comments on commit 930ca9c

Please sign in to comment.