Skip to content

Commit

Permalink
move clear-costmap inside go-to-spot
Browse files Browse the repository at this point in the history
  • Loading branch information
knorth55 authored and jsk-fetchuser committed Dec 5, 2019
1 parent 1653c1b commit 6a2c524
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions jsk_fetch_robot/jsk_fetch_startup/euslisp/navigation-utils.l
Original file line number Diff line number Diff line change
Expand Up @@ -105,13 +105,10 @@
(frame-id (cdr ret)))
(when relative-coords
(setq goal-pose (send goal-pose :transform relative-coords :world)))
(send *ri* :clear-costmap)
(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 6a2c524

Please sign in to comment.