google-deepmind / google-deepmind/dm_control

How to better avoid "Error: free joint can only be used on top level" when combining two models

Đang mở
#333 6 bình luận 3 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ả

I want to create separate xml files for robot, object, arena and combine them together later.
Because all the objects are very similar, I decided to put all of them in one xml file. Each object are should move freely.
Something like this:
```XML










```

Then I use .attach to combine two models: modelArena.attach(modelObject)

But, this will create an outside








```
Then I will get a problem "Error: free joint can only be used on top level".

I know one solution would be to create xml file for each object individually and let the attachment frame add('freejoint').
But this is not very elegant, and it will create many redundant attributes (like

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.