how to do n controlled physic steps per every control step #526
salehrayan
started this conversation in
General
Replies: 2 comments
-
FWIU, the way to do "10 repeated actions" is to use Closing this to create a discussion thread |
Beta Was this translation helpful? Give feedback.
0 replies
-
That is for repeating the same action. Anyway my code works for this I think, but the surprise was the noticable speed bump which made me think I'm doing something wrong. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I want to do e.g. 10 "controlled" steps per every policy action output, that is, I compute 10 motor targets for the next 10 physic steps for every action that the policy sends.
I put my opt_timestep=0.002 and n_frames=1.
based on the MJX example, I tried to do it by modifing the pipeline_step. The original:
and mine:
The leading axis of motor_targets_times is 10.
This seems to work, however it is introducing a notable speed decrease about 1.5x~2x.
Don't know why this is happening. Is this expected or am I doing something wrong, and is there a better way to do this?
Beta Was this translation helpful? Give feedback.
All reactions