I’m a little bit confused, when I want to get the state via get_dof_state(...), should the second argument always be _dynamic_control.STATE_ALL ? What would happen if I give another state, for e.g. _dynamic_control.NONE or _dynamic_control.POS ? What is the logic behind it?
Generally you can use STATE_ALL, but if you don’t need everything, there is slightly less overhead if you specify exactly what you need.
The API mirrors set_dof_state where you usually don’t want to use STATE_ALL, but set a specific state like position, to teleport a joint to a specific angle.