mirror of
https://github.com/bulletphysics/bullet3
synced 2024-12-16 06:30:05 +00:00
Fix the issue with indentation in pr2 setup.
This commit is contained in:
parent
86bec45247
commit
6695268fba
@ -15,14 +15,8 @@ BUTTONS=6
|
|||||||
gripper_max_joint = 0.550569
|
gripper_max_joint = 0.550569
|
||||||
while True:
|
while True:
|
||||||
events = p.getVREvents()
|
events = p.getVREvents()
|
||||||
|
|
||||||
for e in (events):
|
for e in (events):
|
||||||
if e[CONTROLLER_ID] == 3: # To make sure we only get the value for one of the remotes
|
if e[CONTROLLER_ID] == 3: # To make sure we only get the value for one of the remotes
|
||||||
p.changeConstraint(pr2_cid, e[POSITION], e[ORIENTATION], maxForce=500)
|
p.changeConstraint(pr2_cid, e[POSITION], e[ORIENTATION], maxForce=500)
|
||||||
p.setJointMotorControl2(pr2_gripper, 0, controlMode=p.POSITION_CONTROL,
|
p.setJointMotorControl2(pr2_gripper, 0, controlMode=p.POSITION_CONTROL,targetPosition=gripper_max_joint - e[ANALOG] * gripper_max_joint,force=1.0)
|
||||||
targetPosition=gripper_max_joint - e[ANALOG] * gripper_max_joint,
|
p.setJointMotorControl2(pr2_gripper, 2, controlMode=p.POSITION_CONTROL,targetPosition=gripper_max_joint - e[ANALOG] * gripper_max_joint,force=1.1)
|
||||||
force=1.0)
|
|
||||||
p.setJointMotorControl2(pr2_gripper, 2, controlMode=p.POSITION_CONTROL,
|
|
||||||
targetPosition=gripper_max_joint - e[ANALOG] * gripper_max_joint,
|
|
||||||
force=1.1)
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user