google / brax

Massively parallel rigidbody physics simulation on accelerator hardware.
Apache License 2.0
2.25k stars 249 forks source link

`position` servo parameters ? #333

Closed Theo-Cheynel closed 1 year ago

Theo-Cheynel commented 1 year ago

Hi,

I was wondering whether the <position> actuator was supported in v2, and whether we could change its gain parameters (in MJCF files, the gains can be specified).

Thanks

btaba commented 1 year ago

Yes it's supported. We don't use gain, just gear, in a somewhat simplified version of the position actuator (still subject to change) the torque for a position actuator is $gear * (ctrl - q)$

Theo-Cheynel commented 1 year ago

I see, thank you very much ! So there is only a proportional term, and no derivative term (w.r.t. $\dot{q}$) ?

btaba commented 1 year ago

the derivative term is added via damping of the joint

Theo-Cheynel commented 1 year ago

That makes sense ! Thanks