Skip to content

Commit

Permalink
add :correction arg in :move-to-wait
Browse files Browse the repository at this point in the history
  • Loading branch information
knorth55 authored and jsk-fetchuser committed Nov 8, 2019
1 parent 057f9b5 commit 57d4d29
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pr2eus/robot-interface.l
Original file line number Diff line number Diff line change
Expand Up @@ -1374,7 +1374,7 @@ Return value is a list of interpolatingp for all controllers, so (null (some #'i
(send move-base-action :send-goal move-base-goal-msg)
move-base-goal-msg))
(:move-to-wait
(&rest args &key (retry 10) (frame-id "world") &allow-other-keys)
(&rest args &key (retry 10) (frame-id "world") (correction t) &allow-other-keys)
(let (ret (count 0) (tm (ros::time-now))
(map-to-frame move-base-goal-map-to-frame)
(coords move-base-goal-coords))
Expand All @@ -1400,7 +1400,7 @@ Return value is a list of interpolatingp for all controllers, so (null (some #'i
(setq ret t))
(incf count))
(ros::ros-info "move-to : ~A" (if ret 'succeeded 'failed))
(when ret
(when (and ret correction)
(dotimes (i 2)
(let* ((timestamp (ros::time-now))
(mret (send *tfl* :wait-for-transform "map" frame-id timestamp 5))
Expand Down

0 comments on commit 57d4d29

Please sign in to comment.