Skip to content

Commit 04b9e78

Browse files
authored
Merge pull request #545 from Naoki-Hiraoka/fix-gait-generator
[irtdyna.l]fix bag of gait-generator::solve-av-by-move-centroid-on-foot
2 parents 01636d8 + 6d07cad commit 04b9e78

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

irteus/irtdyna.l

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1981,9 +1981,9 @@
19811981
(leg-order (mapcar #'(lambda (l) (position l legs)) all-limbs))
19821982
(fix-coords (append swing-leg-coords support-leg-coords)))
19831983
(unless (memq :thre args)
1984-
(append args (list :thre (mapcar #'(lambda (x) (if (memq x '(:rleg :lleg)) ik-thre (* 5 ik-thre))) all-limbs))))
1984+
(setq args (append args (list :thre (mapcar #'(lambda (x) (if (memq x '(:rleg :lleg)) ik-thre (* 5 ik-thre))) all-limbs)))))
19851985
(unless (memq :rthre args)
1986-
(append args (list :rthre (mapcar #'(lambda (x) (deg2rad (if (memq x '(:rleg :lleg)) ik-rthre (* 5 ik-rthre)))) all-limbs))))
1986+
(setq args (append args (list :rthre (mapcar #'(lambda (x) (deg2rad (if (memq x '(:rleg :lleg)) ik-rthre (* 5 ik-rthre)))) all-limbs)))))
19871987
(send* robot :move-centroid-on-foot
19881988
:both all-limbs :target-centroid-pos cog
19891989
:fix-limbs-target-coords (mapcar #'(lambda (idx) (elt fix-coords idx)) leg-order)

0 commit comments

Comments
 (0)