google-deepmind / google-deepmind/dm_control

Single step the viewer render?

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

説明

Is there a recommend way to single step the viewer renderer?

In the example code snippet, I would like to grab input (ex: keyboard presses for direction) and update viewer frames. Currently, viewer.launch(env) blocks.

```
if __name__ == "__main__":

physics = mujoco.Physics.from_xml_path(MODEL_PATH_XML)
task = Xarm7()
env = control.Environment(
physics, task, time_limit=_TIME_LIMIT, control_timestep=_CONTROL_TIMESTEP
)

action_spec = env.action_spec()
time_step = env.reset()
viewer.launch(env)
```
An alternative is to encode the teleoperation input as a policy, however it's a bit unclear how that structure would look. Any example snippets would greatly appreciated!

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

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

評価

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

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

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