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

How can I access the angle of a specific joint in the walker model? #474

Open
jbwenjoy opened this issue May 25, 2024 · 1 comment
Open

Comments

@jbwenjoy
Copy link

jbwenjoy commented May 25, 2024

Hi, thank you for this wonderful repo!

I'm trying to use the walker model for some RL projects. And I want to access the angles of some specific joints.

I think the observation is a dictionary with a 14-dim orientation array, a 1-dim height array, and a 9-dim velocity array. I also looked at the walker.xml file. But I still don't know the meaning of each element of these arrays. Can anyone give me some advice on that (e.g. which file should I refer to, what is the order of the joints)?

Another issue also discussed the similar topic: #453. Seems that we need to calculate the joint angles using orientations of the body parts. But the problems is that in that issue, the observation seems to be 21-dim instead of 14-dim, different from what I obtained using the code below.

r0 = np.random.RandomState(42)
env = suite.load('walker', 'walk', task_kwargs={'random': r0})
state = env.step(action)
obs = state.observation

image

Any help/discussion is appreciated!

@tryall-mint
Copy link

I completely agree with this.

I'm currently struggling with the same issue. I'm eager to use graph neural networks to model this case, so it's crucial for me to understand the meaning of each element in the state information and establish the edges accordingly. I've also checked the walker.xml file, but I still can't confirm the necessary details.

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

2 participants