dm_control icon indicating copy to clipboard operation
dm_control copied to clipboard

Optionally enable actuation in `physics.after_reset`?

Open vaxenburg opened this issue 8 months ago • 2 comments

Would it make sense to optionally enable actuation in the after_reset method here?

The use case I have in mind is initializing episode with actuators in a certain activation state physics.data.act, before any control input is provided. What do you think?

vaxenburg avatar May 14 '25 21:05 vaxenburg

Disabling actuation only clears out qfrc_actuator, it doesn't touch mjData.act, so are you sure this is actually required? Ie on the next step everything should be fine

yuvaltassa avatar May 26 '25 13:05 yuvaltassa

Yeah in practice it works from the next physics step too, but still feels a bit odd that I can't initialize from the state I want? But probably it would be a hassle to implement this change in dm_control anyway, so not a big deal. Thanks!

vaxenburg avatar May 27 '25 16:05 vaxenburg