luismesas / pydobot

Python library for Dobot Magician
MIT License
110 stars 59 forks source link

Controlling the Gripper #35

Open pgsell opened 3 years ago

pgsell commented 3 years ago

Is there any way to control the gripper (open, close)?

I can only enable it, but not open and close or disable it again. Is this method missing or am I missing something? Thank you for your help!

luismesas commented 3 years ago

Hi to activate the gripper use the .grip() method with either enable=True to close or enable=False to open

To deactivate you need to deactivate the suction device, .suck(False)

It's not very intuitive, I'll rework the methods to they are more intuitive in a future version.

Does this clarifies how to use it?

danaswa commented 3 years ago

I am having a problem, closing the gripper; the gripper will open, but not close.. Also I don't know how to turn off the air compressor after the code has finished. Thanks!

luismesas commented 3 years ago

@danaswa Is it a Magician Lite?