google-deepmind / google-deepmind/dm_control
Updating positions of sites during environment reset
Đang mở
- 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 have an environment where the robot needs to reach different goal positions that are randomized at every timestep. I am representing the goal as a site on the worldbody in the xml file for visualization purposes. However, while I update the `site_xpos` using ` with physics.reset_context():
physics.named.data.site_xpos["goal"] = np.random.uniform(low,high)`
the location of the site does not get updated in the dm_viewer. Is there a way to update site position in the viewer or am I using the functionality incorrectly? Thanks!
Hướng dẫn đóng góp
Đánh giá
Issue này chưa được đánh giá.