Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add body inverse kinematics to control spot pose in euslisp #81

Merged

Conversation

708yamaguchi
Copy link

sample movie
https://user-images.githubusercontent.com/19769486/141134905-9945f8e5-5d96-4e19-9d25-b4f5e96d9592.mp4

sample code:

(load "package://spoteus/spot-utils.l")

(spot)
(objects (list *spot*))

(dotimes (i 100)
  (send *spot* :body-inverse-kinematics
        (make-coords :pos (float-vector 0 (* 100 (cos (* pi i 0.02))) (* 100 (sin (* pi i 0.02))))))
  (unix:usleep 20000)
  (send *irtviewer* :redraw))

(dotimes (i 100)
  (send *spot* :body-inverse-kinematics
        (make-coords :pos (float-vector 0 0 (* 20 (sin (* pi i 0.02))))
                     :rpy (float-vector (* 0.2 (sin (* pi i 0.02))) (* 0.2 (sin (* pi i 0.02))) (* 0.2 (sin (* pi i 0.02))))))
  (unix:usleep 20000)
  (send *irtviewer* :redraw))

@708yamaguchi
Copy link
Author

@sktometometo

@sktometometo sktometometo merged commit 0f15821 into sktometometo:PR/spot/add-jsk-spot-robot Nov 10, 2021
@sktometometo
Copy link
Owner

@708yamaguchi Please add this also to the develop branch (develop/spot)

sktometometo pushed a commit that referenced this pull request Feb 28, 2023
fix supervisor and app chooser URLs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants