Created
December 8, 2015 08:50
-
-
Save k-okada/3a151ef24415eb89d281 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(load "irteus/demo/sample-robot-model.l") | |
(setq *robot* (instance sample-robot :init)) | |
(send *robot* :reset-pose) | |
(send *robot* :fix-leg-to-coords (make-coords)) | |
(setq c0 (make-coords :pos #f(300 500 800))) | |
(setq c1 (make-coords :pos #f(300 -100 800))) | |
(objects (list *robot* c0 c1)) | |
(dotimes (i 100) | |
(let ((tmp-c)) | |
(setq tmp-c (midcoords (/ i 100.0) c0 c1)) | |
(send *robot* :larm :inverse-kinematics tmp-c) | |
(send *irtviewer* :draw-objects :flush nil) | |
(send tmp-c :draw-on :flush t) | |
)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment