Skip to content
Snippets Groups Projects
Commit d0c686c9 authored by Joseph Mirabel's avatar Joseph Mirabel Committed by Joseph Mirabel
Browse files

Update tutorial_manipulation.py script

parent fc306f12
No related branches found
No related tags found
No related merge requests found
...@@ -47,7 +47,6 @@ graph = ConstraintGraph (robot, 'graph') ...@@ -47,7 +47,6 @@ graph = ConstraintGraph (robot, 'graph')
# Set parameters. {{{2 # Set parameters. {{{2
robot.client.basic.problem.resetRoadmap () robot.client.basic.problem.resetRoadmap ()
robot.client.basic.problem.selectPathOptimizer ('None')
robot.client.basic.problem.setErrorThreshold (1e-3) robot.client.basic.problem.setErrorThreshold (1e-3)
robot.client.basic.problem.setMaxIterations (40) robot.client.basic.problem.setMaxIterations (40)
# 2}}} # 2}}}
...@@ -98,8 +97,8 @@ q_goal [rank:rank+4] = [0, 0, 0, 1] ...@@ -98,8 +97,8 @@ q_goal [rank:rank+4] = [0, 0, 0, 1]
graph.createGrasp ('l_grasp', 'pr2/l_gripper', 'box/handle', passiveJoints = 'pr2') graph.createGrasp ('l_grasp', 'pr2/l_gripper', 'box/handle', passiveJoints = 'pr2')
graph.createPreGrasp ('l_pregrasp', 'pr2/l_gripper', 'box/handle') graph.createPreGrasp ('l_pregrasp', 'pr2/l_gripper', 'box/handle')
lockbox = ps.lockFreeFlyerJoint ('box/base_joint', 'box_lock', compType = 'Equality') lockbox = ps.lockFreeFlyerJoint ('box/base_joint', 'box_lock')
lockpr2 = ps.lockPlanarJoint ('pr2/base_joint', 'pr2_lock', compType = 'Equality') lockpr2 = ps.lockPlanarJoint ('pr2/base_joint', 'pr2_lock')
lockboth = lockpr2[:]; lockboth.extend (lockbox) lockboth = lockpr2[:]; lockboth.extend (lockbox)
locklhand = ['l_l_finger','l_r_finger']; locklhand = ['l_l_finger','l_r_finger'];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment