Created
April 22, 2020 16:46
-
-
Save knorth55/dcddd7f6b780072453777ce4a5381619 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-arm-model.l") | |
(setq *robot* (instance sarmclass :init)) | |
(setq *cube* (make-cube 30 1000 30)) | |
(send *cube* :locate #f(300 0 200)) | |
(setq *target-coords* (send (send *cube* :worldcoords) :copy-worldcoords)) | |
; (send *target-coords* :translate #f(0 0 -50)) | |
(send *target-coords* :rotate -1.57 :y) | |
(objects (list *robot* *cube* *target-coords*)) | |
(send *robot* :open-hand) | |
(send *robot* :inverse-kinematics *target-coords* | |
:link-list (send *robot* :link-list (send *robot* :end-coords :parent)) | |
:move-target (send *robot* :end-coords) | |
:rotation-axis :y) | |
(send *robot* :inverse-kinematics *target-coords* | |
:link-list (send *robot* :link-list (send *robot* :end-coords :parent)) | |
:move-target (send *robot* :end-coords) | |
:rotation-axis :y) | |
(send *robot* :close-hand *cube*) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment