-
-
Notifications
You must be signed in to change notification settings - Fork 866
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug Report] default_camera_config in MujocoEnv seems not working #1141
Comments
have you tried using the |
Yes, I did. It doesn't help either. You could modify the code to be
And you will get the same result. |
I read the code thoroughly again and I'm suspecting the camera setting itself. During initialization of
The result of this code is the
And thus makes However, I have to admit that I'm not familiar with |
is the bug present for |
Update: OverviewIt seems that I might find the problem, partially. It is caused by Here's how things work: During initialization of
The problem is actually caused by this "track" camera. According to MujocoDocumentaion:
In other words, the camera obtained in this way is "fixed," relatively, and will not be affected by In order to make
Possible fixQuick fixA really quick fix is to set Better fix?As I've mentioned before, I'm not familiar with Something elseAt this time I'm not sure if it is actually a bug. It might just need better documentation, maybe. However, I do find a real bug while testing. In
There should be an else statement:
Or you might get That's all what I can provide, I believe. Hopefully that helps! |
I haven't tested with
|
Describe the bug
I was trying to understand how
default_camera_config
works via adjusting its values. However, I surprisingly found that no matter how I adjusted its values (at leastdistance
andelevation
), it didn't affect the result.Code example
To reproduce the
ant-v4
one, installgymnasium-0.29
and run:To reproduce the
humanoid-v5
one, installgymnasium-1.0.0
and run:To plot the result, run:
python=3.8
mujoco=3.2.2
mujoco-py=2.1.2.14
The text was updated successfully, but these errors were encountered: