google-deepmind / google-deepmind/dm_control
Find all sites of a default class
未关闭
- 主要语言
- 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 还没有评估数据。