Commit c32b452e authored by Diane Bury's avatar Diane Bury
Browse files

Fix priority when creating numerical constraint in dynamicbuild plugin

parent 93e4e75a
......@@ -213,7 +213,7 @@ class _GraspMode(QWidget):
self.parentInstance.plugin.client.basic.problem.lockJoint(j, self.parentInstance.plugin.client.basic.robot.getJointConfig(j))
name = self.grippers[self.currentGripper] + " grasps " + self.handles[self.currentHandle]
self.parentInstance.plugin.client.manipulation.problem.createGrasp(name, self.grippers[self.currentGripper], self.handles[self.currentHandle])
self.parentInstance.plugin.client.basic.problem.setNumericalConstraints("constraints", [name], [True])
self.parentInstance.plugin.client.basic.problem.setNumericalConstraints("constraints", [name,], [0,])
res = self.parentInstance.plugin.client.basic.problem.applyConstraints(config)
if res[0] == True:
self.parentInstance.plugin.client.basic.robot.setCurrentConfig(res[1])
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment