google-deepmind/mujoco_menagerie

Control the franka gripper at the specified speed

zichunxx opened this issue · 3 comments

Hi!

Is there any way to control the opening and closing speed of the gripper?

For now, all I know is to adjust the ctrlrange of the gripper through data.ctrl[:].

Thanks!

You can, just switch the actuator for the gripper to velocity or intvelocity. See the documentation for more information.

Thanks. Is there any relevant code to refer to adjust it via Python binding?

No, since this changes the dimensionality of the state you have to do in in the XML.

That said, I think this feature would solve your problem? (define multiple kinds of actuators, activate/deactivate them at runtime)