Skip to content

Commit

Permalink
Merge pull request #551 from Naoki-Hiraoka/fix-bag-of-extended-previe…
Browse files Browse the repository at this point in the history
…w-controller

fix bug of extended-preview-controller
  • Loading branch information
k-okada authored Aug 28, 2019
2 parents 9f64ae9 + 11c2611 commit ecfc50e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion irteus/irtdyna.l
Original file line number Diff line number Diff line change
Expand Up @@ -1446,7 +1446,7 @@
(R+btPb-1bt (m* R+btPb-1 bt))
(qt (scale-matrix Q ct)))
(dotimes (i delay)
(let* ((qt (if (= i (1- delay)) (m* P qt) qt))
(let* ((qt (if (= i (1- delay)) (m* P ct) qt))
(fa (m* R+btPb-1 (m* bt (m* gsi qt)))))
(setq gsi (m* A-bKt gsi))
(dotimes (ii input-dim)
Expand Down
7 changes: 7 additions & 0 deletions irteus/test/irteus-demo.l
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,13 @@
(assert
(every #'identity (test-preview-control-0 :preview-controller-class extended-preview-controller))))

(deftest test-test-extended-preview-control-0-QR
(assert
(every #'identity (mapcar #'(lambda (x y) (and (eps= (cadr (memq :zmp x)) (cadr (memq :zmp y)))
(eps= (cadr (memq :cog x)) (cadr (memq :cog y)))))
(test-preview-control-0 :preview-controller-class extended-preview-controller :q 1 :r 1e-6)
(test-preview-control-0 :preview-controller-class extended-preview-controller :q 1e1 :r 1e-5)))))

(deftest test-test-preview-control-1
(assert
(every #'identity (test-preview-control-1))))
Expand Down

1 comment on commit ecfc50e

@k-okada
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for contributing jskeus documentation

Please check latest documents before merging

PDF version of Japanese jmanual: jmanual.pdf
HTML version of Japanese manual: jmanual.html
Sphinx (ReST) version of Japanese manual: jmanual.rst

Please sign in to comment.