Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[jskeus/irteus/irtmodel.l] fix target joint table in :angle-vector #477

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions irteus/irtmodel.l
Original file line number Diff line number Diff line change
Expand Up @@ -817,8 +817,8 @@
(setq tmp-joint-angle (elt vec i) tmp-target-joint-angle (elt vec ii))
(setq tmp-joint-min-angle (send j :joint-min-max-table-min-angle tmp-target-joint-angle)
tmp-joint-max-angle (send j :joint-min-max-table-max-angle tmp-target-joint-angle))
(setq tmp-target-joint-min-angle (send j :joint-min-max-table-min-angle tmp-joint-angle)
tmp-target-joint-max-angle (send j :joint-min-max-table-max-angle tmp-joint-angle))
(setq tmp-target-joint-min-angle (send jj :joint-min-max-table-min-angle tmp-joint-angle)
tmp-target-joint-max-angle (send jj :joint-min-max-table-max-angle tmp-joint-angle))
(cond ((<= tmp-joint-min-angle tmp-joint-angle tmp-joint-max-angle) ;; ok
;; force change joint-angle to avoid problem
(setq (j . joint-angle) tmp-joint-angle
Expand All @@ -829,8 +829,8 @@
((> i 1))
(setq tmp-joint-min-angle (send j :joint-min-max-table-min-angle tmp-target-joint-angle)
tmp-joint-max-angle (send j :joint-min-max-table-max-angle tmp-target-joint-angle))
(setq tmp-target-joint-min-angle (send j :joint-min-max-table-min-angle tmp-joint-angle)
tmp-target-joint-max-angle (send j :joint-min-max-table-max-angle tmp-joint-angle))
(setq tmp-target-joint-min-angle (send jj :joint-min-max-table-min-angle tmp-joint-angle)
tmp-target-joint-max-angle (send jj :joint-min-max-table-max-angle tmp-joint-angle))

(if (< tmp-joint-angle tmp-joint-min-angle)
(incf tmp-joint-angle (* (- tmp-joint-min-angle tmp-joint-angle) i)))
Expand Down