google-deepmind / google-deepmind/dm_control

Find all sites of a default class

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

説明

Hi,
I'm trying to filter sites based on class names. According to documentation, The following code will return the class name
`mjcf_model.find_all('site')[0].dclass`
But instead, it returned an `MJCF Element`,
`mjcf_model.find_all('site')[0].dclass.dclass` will return the actual class name.
This makes filtering sites based on class names very ugly because sites with no default class names will return None, then doing
`mjcf_model.find('site','mysite').dclass.dclass` will result in errors.

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

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

評価

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

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

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