Skip to content

Commit

Permalink
update trashcan front position
Browse files Browse the repository at this point in the history
  • Loading branch information
tkmtnt7000 authored and knorth55 committed Jul 21, 2022
1 parent 1ae220a commit 8449a87
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions jsk_fetch_robot/jsk_fetch_startup/euslisp/navigation-utils.l
Original file line number Diff line number Diff line change
Expand Up @@ -358,13 +358,21 @@ Args:
(send *ri* :wait-interpolation)
(if tweet
(progn
(tweet-string "I took a photo of 73B2 trash cans." :warning-time 3
:with-image "/edgetpu_object_detector/output/image" :speak t)
(notify-recognition :location "trash cans"))
(tweet-string "I took a photo of 73B2 trash cans." :warning-time 3
:with-image "/edgetpu_object_detector/output/image" :speak t)
(notify-recognition :location "trash cans")
(send *ri* :go-pos-unsafe 0.2 0 0)
(send *fetch* :head :neck-p :joint-angle 50)
(send *ri* :angle-vector-raw (send *fetch* :angle-vector) 3000 :head-controller)
(send *ri* :wait-interpolation)
(tweet-string "I took a photo of 73B2 trash can inside." :warning-time 3
:with-image "/edgetpu_object_detector/output/image" :speak t)
(notify-recognition :location "trash cans inside")
(send *ri* :go-pos-unsafe -0.2 0 0))
(progn
(notify-recognition :location "trash cans"))))

(defun move-to-trashcan-front (&key (n-trial 1) (offset #f(-300 -300 0)))
(defun move-to-trashcan-front (&key (n-trial 1) (offset #f(-400 -300 0)))
(let ((success-move-to-trashcan-front nil))
(dotimes (i n-trial)
(setq success-move-to-trashcan-front
Expand Down

0 comments on commit 8449a87

Please sign in to comment.