-
-
Notifications
You must be signed in to change notification settings - Fork 837
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] MujocoEnv only accepts frame_skip=5 #473
Comments
Thanks for reporting this, @rodrigodelazcano any idea of what we should do? @younik Could we add a |
Sure; for backward compatibility, the default value should be |
@pseudo-rnd-thoughts close? |
From what I understood, in order to change the frame rate you would have to change both
Can the developers please confirm that this makes sense? |
@Omer1Yuval1 The @Kallinteris-Andreas No, as the original error of modifying |
The current implementation, does not support changing the
|
@pseudo-rnd-thoughts as far as I can tell it is not a violation of the Also, (from a quick look) it does not appear that anything would break. |
@Kallinteris-Andreas Yeah, I should be fine to update the metadata of the environment based on arguments |
@pseudo-rnd-thoughts Great, I will add the |
@Omer1Yuval1 just set Note: this issue will be fixed in >>> import gymnasium
>>> env = gymnasium.make('Ant-v5', frame_skip=1) |
|
Thanks everyone for your replies and insights. I have a few follow-up questions.
|
|
I might be wrong but to modify the |
@Kallinteris-Andreas in your reply you quoted the same piece of code that I mentioned in my question. I am trying to understand the meaning/implications of having a different time step for the MuJoCo engine and environment solvers. |
Having a bigger The downside is the inability to give learn finer control |
Describe the bug
The
AntEnv
class in ant-v4.py calls the MujocoEnv class withframe_skip=5
by default. Changing this value to any other value (e.g.,frame_skip=1
) results in an error.More generally, it would be useful to be able to directly control the time step (
self.dt
). Currently it seems like the only way to controlself.dt
is by modifyingself.frame_skip
, such thatself.dt=self.model.opt.timestep * self.frame_skip
.Code example
System info
No response
Additional context
No response
Checklist
The text was updated successfully, but these errors were encountered: