Skip to content

Commit

Permalink
Fix case function misuse in simple-action-server :set-preempted
Browse files Browse the repository at this point in the history
  • Loading branch information
Affonso-Gui committed Nov 3, 2022
1 parent e8e7b1c commit f98bb70
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions roseus/euslisp/actionlib.l
Original file line number Diff line number Diff line change
Expand Up @@ -350,11 +350,13 @@
(:set-preempted
(&optional (msg (send self :result)) (text ""))
(ros::ros-info ";; Cancel Goal ~A" (send goal-id :id))
(case status
((actionlib_msgs::GoalStatus::*pending* actionlib_msgs::GoalStatus::*recalling*)
(cond
((or (= status actionlib_msgs::GoalStatus::*pending*)
(= status actionlib_msgs::GoalStatus::*recalling*))
(setq status actionlib_msgs::GoalStatus::*recalled*)
)
((actionlib_msgs::GoalStatus::*active* actionlib_msgs::GoalStatus::*preepmpting*)
((or (= status actionlib_msgs::GoalStatus::*active*)
(= status actionlib_msgs::GoalStatus::*preempting*))
(setq status actionlib_msgs::GoalStatus::*preempted*)
))
(send self :publish-result msg text))
Expand Down

0 comments on commit f98bb70

Please sign in to comment.