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

Visualize trajectory step by step #179

Open
anjugopinath opened this issue Jun 16, 2024 · 9 comments
Open

Visualize trajectory step by step #179

anjugopinath opened this issue Jun 16, 2024 · 9 comments

Comments

@anjugopinath
Copy link

Hello,

I want to visualize the trajectory of the robot and the object in unison.
I am using the .npz files in this path : https://github.com/MyoHub/myosuite/tree/main/myosuite/envs/myo/myodm/data

image

Is this something I can use?
https://github.com/MyoHub/myosuite/blob/main/docs/source/tutorials/6_Inverse_Dynamics.ipynb

@Vittorio-Caggiano
Copy link
Collaborator

@anjugopinath it seems you can access the trajectories of the object and hand. I do not understand the inverse dynamics question though. Can you clarify what are you trying to do ?

@justinthecao
Copy link

What do the 29 dof represent for the robot? Also what do the 7 values represent for the object.

@Vittorio-Caggiano
Copy link
Collaborator

23 degrees of the hand + translation/rotation (6 dof) of the shoulder/arm

@justinthecao
Copy link

so it would be [0....22] for joint angles
[23...25] for XYZ robot position
[26...28] for robot rotation?

@Vittorio-Caggiano
Copy link
Collaborator

check here

@justinthecao
Copy link

justinthecao commented Nov 19, 2024

Yeah, I saw that function, but I can't seem to find what the robot values represent (it just copies the robot ref). I specifically want the positions of the robot hand.

@Vittorio-Caggiano
Copy link
Collaborator

you were correct, the first 23 elements correspond hand joints

@justinthecao
Copy link

How about the translation? Is it the 3 elements after that?

@Vittorio-Caggiano
Copy link
Collaborator

yes, first 3 after are translation and then orientation

def qpos_from_robot_object(self, qpos, robot, object):

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

No branches or pull requests

3 participants