google-deepmind / google-deepmind/dm_control
How to better avoid "Error: free joint can only be used on top level" when combining two models
- 主要语言
- Python
- 星标
- 4.7k
- 派生
- 764
- PR 合并指标
- 30 天内没有已合并 PR
描述
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
贡献指南
调研方向
先从 modelArena.attach(modelObject) 的用法和 issue 中的 XML 示例开始,然后检查 attachment API 以及它对 worldbody 子项和 freejoint 元素的处理方式。完成的标准是找出并记录一种受支持的方法,用于组合多个可独立移动的 body,同时不会触发顶层 free-joint 错误。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- robotics
- Issue 类型
- 功能
- 难度
- 5/5
- 预计耗时
- 一周以上
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 25/100