How to control the RG2 gripper through the python client?
How to control the RG2 gripper through the python client?
I have tried use the function sim.setJointPosition to control the close and open of the gripper, but it didn't work.And I also tried to use "sim.setIntProperty(sim.handle_scene, 'signal.RG2_open', 1)" to control it accroding to the coed of the RG2 script, but it still didn't work.
Re: How to control the RG2 gripper through the python client?
Hello,
drag and drop the RG2 model into the scene, then run the simulation. Then type:
Does that open the gripper? Then do:
Does that close the gripper? This works here.
When you say it doesn't work, what does it mean exactly? is there any error message?
Cheers
drag and drop the RG2 model into the scene, then run the simulation. Then type:
Code: Select all
sim.setIntProperty(sim.handle_scene, 'signal.RG2_open', 1)Code: Select all
sim.setIntProperty(sim.handle_scene, 'signal.RG2_open', 0)When you say it doesn't work, what does it mean exactly? is there any error message?
Cheers