Skip to content

Commit

Permalink
clear costmap before autodock
Browse files Browse the repository at this point in the history
  • Loading branch information
knorth55 committed Nov 9, 2019
1 parent bfac76f commit 27bfcf3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions jsk_fetch_robot/jsk_fetch_startup/euslisp/navigation-utils.l
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,10 @@
(send *ri* :move-to goal-pose :frame-id frame-id)))

(defun auto-dock (&key (n-trial 1))
(unless (boundp '*ri*)
(require :fetch-interface "package://fetcheus/fetch-interface.l")
(fetch-init))
(send *ri* :clear-costmap)
(let ((success nil))
(dotimes (i n-trial)
(when (go-to-spot *dock-spot* (make-coords :pos #f(0 -800 0)))
Expand Down

0 comments on commit 27bfcf3

Please sign in to comment.