Skip to content

Instantly share code, notes, and snippets.

@k-okada
Created December 8, 2015 08:50
Show Gist options
  • Save k-okada/3a151ef24415eb89d281 to your computer and use it in GitHub Desktop.
Save k-okada/3a151ef24415eb89d281 to your computer and use it in GitHub Desktop.
(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