google-deepmind / google-deepmind/dm_control

Find all sites of a default class

Đang mở
#482 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Python
Star
4.7k
Fork
764
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.