Skip to content
GitLab
Menu
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
test-hpp
Commits
7e312e8f
Commit
7e312e8f
authored
May 23, 2014
by
Florent Lamiraux
Browse files
Update to modification of corba interface method Problem::applyConstraint.
parent
0ca9780a
Changes
1
Hide whitespace changes
Inline
Side-by-side
script/test_rrt.py
View file @
7e312e8f
...
...
@@ -41,13 +41,24 @@ for name, value in lockedDofs.iteritems ():
q1
=
[
0.0
,
0.0
,
0.705
,
1.0
,
0.
,
0.
,
0.0
,
0.0
,
0.0
,
0.0
,
0.0
,
-
0.4
,
0
,
-
1.2
,
-
1.0
,
0.0
,
0.0
,
0.174532
,
-
0.174532
,
0.174532
,
-
0.174532
,
0.174532
,
-
0.174532
,
0.261799
,
-
0.17453
,
0.0
,
-
0.523599
,
0.0
,
0.0
,
0.174532
,
-
0.174532
,
0.174532
,
-
0.174532
,
0.174532
,
-
0.174532
,
0.0
,
0.0
,
-
0.453786
,
0.872665
,
-
0.418879
,
0.0
,
0.0
,
0.0
,
-
0.453786
,
0.872665
,
-
0.418879
,
0.0
]
q1proj
=
p
.
applyConstraints
(
q1
)
res
=
p
.
applyConstraints
(
q1
)
if
res
[
0
]:
q1proj
=
res
[
1
]
else
:
raise
RuntimeError
(
"Failed to apply constraint."
)
q2
=
[
0.0
,
0.0
,
0.705
,
1
,
0
,
0
,
0
,
0.0
,
0.0
,
0.0
,
0.0
,
1.0
,
0
,
-
1.4
,
-
1.0
,
0.0
,
0.0
,
0.174532
,
-
0.174532
,
0.174532
,
-
0.174532
,
0.174532
,
-
0.174532
,
0.261799
,
-
0.17453
,
0.0
,
-
0.523599
,
0.0
,
0.0
,
0.174532
,
-
0.174532
,
0.174532
,
-
0.174532
,
0.174532
,
-
0.174532
,
0.0
,
0.0
,
-
0.453786
,
0.872665
,
-
0.418879
,
0.0
,
0.0
,
0.0
,
-
0.453786
,
0.872665
,
-
0.418879
,
0.0
]
q2proj
=
p
.
applyConstraints
(
q2
)
res
=
p
.
applyConstraints
(
q2
)
if
res
[
0
]:
q2proj
=
res
[
1
]
else
:
raise
RuntimeError
(
"Failed to apply constraint."
)
p
.
setInitialConfig
(
q1proj
)
p
.
addGoalConfig
(
q2proj
)
p
.
solve
()
p
=
PathPlayer
(
cl
,
r
)
p
(
1
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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