google-deepmind / google-deepmind/dm_control

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

オープン
#474 コメント 1 件 リアクション 2 件 担当者 0 名 GitHub で見る
主要言語
Python
スター
4.7k
フォーク
764
PR マージ指標
30日以内にマージされた PR はありません

説明

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: https://github.com/google-deepmind/dm_control/issues/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.

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

![image](https://github.com/google-deepmind/dm_control/assets/71893666/290b9c4a-6ef6-4b2d-96fb-3ed3b7d71305)

Any help/discussion is appreciated!

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。