Skip to content

Commit

Permalink
Allow ignoring safetymargin on hand-width
Browse files Browse the repository at this point in the history
  • Loading branch information
Affonso-Gui committed Dec 21, 2018
1 parent 9a4d49e commit 8a99955
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hrpsys_ros_bridge_tutorials/euslisp/hironxjsk-interface.l
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@
ids)))))
(:hand-width2angles (width)
(let ((safetymargin 3) (w0 19) (l1 41.9))
(unless (<= 0 width %(2 * (w0 + l1 - safetymargin)))
(unless (<= (- safetymargin) width %(2 * (w0 + l1 - safetymargin)))
(warn ";; width value ~a is off margins~%" width)
(return-from :hand-width2angles nil))
(let ((a (rad2deg %(pi/2 - acos((width / 2.0 + safetymargin - w0) / l1)))))
Expand Down

0 comments on commit 8a99955

Please sign in to comment.