Skip to content

Commit

Permalink
Merge pull request #1707 from k-okada/delete_attached_object
Browse files Browse the repository at this point in the history
define delete-attached-object-by-id for pr2eus < 0.3.14
  • Loading branch information
k-okada authored Oct 28, 2022
2 parents b593ea2 + aa3c9fb commit a648934
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions jsk_fetch_robot/fetcheus/fetch-interface.l
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,20 @@
(ros::load-ros-package "fetch_driver_msgs")
(ros::load-ros-package "robot_controllers_msgs")

(when (null (assoc :delete-object-by-id (send collision-object-publisher :methods)))
(ros::ros-warn ";;")
(ros::ros-warn ";;")
(ros::ros-warn ";; jsk-ros-pkg/jsk_pr2eus <0.3.14 does not have :delete-object-by-id method")
(ros::ros-warn ";; If you need full features of latest fetcheus, please use jsk_pr2eus from source")
(ros::ros-warn ";; See https://github.com/jsk-ros-pkg/jsk_demos/pull/1375#issuecomment-1292943531")
(ros::ros-warn ";;")
(ros::ros-warn ";;")
(defmethod collision-object-publisher
(:delete-attached-object-by-id (object-id)
(ros::ros-warn ";; did not delete attached object \"~A\"" object-id))
(:delete-object-by-id (object-id)
(ros::ros-warn ";; did not delete object \"~A\"" object-id))))

(defclass fetch-interface
:super robot-move-base-interface
:slots (gripper-action moveit-robot fetch-controller-action)
Expand Down

0 comments on commit a648934

Please sign in to comment.