Skip to content

Commit 41a3b09

Browse files
committed
[irtrobot.l]add keyworld Q, R to :calc-walk-pattern-from-footstep-list
1 parent 04b9e78 commit 41a3b09

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

irteus/irtrobot.l

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -667,6 +667,7 @@
667667
(start-with-double-support t)
668668
(end-with-double-support t)
669669
(ik-thre 1) (ik-rthre (deg2rad 1))
670+
(q 1.0) (r 1e-6) ;; Q is weighting of output error and R is weighting of input.
670671
(calc-zmp t))
671672
"Calculate walking pattern from foot step list and return pattern list as a list of angle-vector, root-coords, time, and so on."
672673
(let* ((res) (ret) (tm 0)
@@ -678,7 +679,8 @@
678679
:default-step-height default-step-height :default-double-support-ratio 0.2
679680
:default-zmp-offsets dzo :all-limbs al
680681
:thre ik-thre :rthre ik-rthre
681-
:start-with-double-support start-with-double-support :end-with-double-support end-with-double-support)
682+
:start-with-double-support start-with-double-support :end-with-double-support end-with-double-support
683+
:q q :r r)
682684

683685
(while (null (setq ret (send gg :proc-one-tick :type :cycloid :debug t :solve-angle-vector-args solve-angle-vector-args))))
684686
(if calc-zmp (dotimes (i 2) (send self :calc-zmp))) ;; for zmp initialization

0 commit comments

Comments
 (0)