google-deepmind / google-deepmind/dm_control

AttributeError: 'MjData' object has no attribute 'qLDiagSqrtInv'

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

The Jan 14, 2025 MuJoCo update introduced a [breaking change](https://mujoco.readthedocs.io/en/3.2.7/changelog.html#general) affecting `dm_control`.

To reproduce:
```python
from dm_control.locomotion.examples.basic_rodent_2020 import rodent_escape_bowl
env = rodent_escape_bowl()
```
Traceback:
```
AttributeError Traceback (most recent call last)

[](https://localhost:8080/#) in ()
----> 1 env = rodent_escape_bowl()

11 frames

[/usr/local/lib/python3.10/dist-packages/dm_control/mujoco/index.py](https://localhost:8080/#) in struct_indexer(struct, struct_name, size_to_axis_indexer)
626 # Skip over structured arrays and fields that have sizes but aren't numpy
627 # arrays, such as text fields and contacts (b/34805932).
--> 628 attr = getattr(struct, field_name)
629 if not isinstance(attr, np.ndarray) or attr.dtype.fields:
630 continue

AttributeError: 'MjData' object has no attribute 'qLDiagSqrtInv'
```

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

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

Hướng nghiên cứu

Reproduce the rodent_escape_bowl() failure from the issue, then inspect dm_control/mujoco/index.py and the linked MuJoCo 3.2.7 changelog entry. Trace how qLDiagSqrtInv is discovered and identify the compatibility change needed. Done means the example environment initializes without this AttributeError and related indexing still works.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
python
Lĩnh vực
machine-learning
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
38/100

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.