Skip to content

Commit

Permalink
[pr2-interface.l] check :check-continuous-joint-move-over-180 when si…
Browse files Browse the repository at this point in the history
…mulator mode
  • Loading branch information
Naoki-Hiraoka committed Dec 12, 2020
1 parent a228cc7 commit c5b7a99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pr2eus/pr2-interface.l
Original file line number Diff line number Diff line change
Expand Up @@ -423,8 +423,8 @@ Example: (send self :gripper :rarm :position) => 0.00"
))
(:angle-vector-sequence
(avs &optional (tms (list 3000)) &rest args)
(unless (or (send self :simulation-modep) (cadr (memq :end-coords-interpolation args)))
(let* ((prev-av (send robot :angle-vector (send self :state :reference-vector)))
(unless (cadr (memq :end-coords-interpolation args))
(let* ((prev-av (send robot :angle-vector (if (send self :simulation-modep) (send self :state :potentio-vector) (send self :state :reference-vector))))
(len-av (length prev-av))
(max-av (fill (instantiate float-vector len-av) 180))
(min-av (fill (instantiate float-vector len-av) -180))
Expand Down

0 comments on commit c5b7a99

Please sign in to comment.