Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Guilhem Saurel
hpp-gui
Commits
c32b452e
Commit
c32b452e
authored
Jun 01, 2018
by
Diane Bury
Browse files
Fix priority when creating numerical constraint in dynamicbuild plugin
parent
93e4e75a
Changes
1
Hide whitespace changes
Inline
Side-by-side
pyplugins/hpp/gui/dynamicbuild.py
View file @
c32b452e
...
...
@@ -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
])
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment