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
Humanoid Path Planner
hpp-rbprm-corba
Commits
c3fe7e60
Commit
c3fe7e60
authored
Jul 06, 2020
by
Pierre Fernbach
Browse files
[Tests] update tests for changes of commit
58c0e1a9
parent
77bfb202
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/hpp/corbaserver/rbprm/scenarios/demos/talos_flatGround_path.py
View file @
c3fe7e60
...
...
@@ -4,7 +4,7 @@ from hpp.corbaserver.rbprm.scenarios.talos_path_planner import TalosPathPlanner
class
PathPlanner
(
TalosPathPlanner
):
def
init_problem
(
self
):
self
.
a_max
=
0.
05
self
.
a_max
=
0.
1
super
().
init_problem
()
# greatly increase the number of loops of the random shortcut
self
.
ps
.
setParameter
(
"PathOptimization/RandomShortcut/NumberOfLoops"
,
50
)
...
...
tests/python/test_talos_walk_path.py
View file @
c3fe7e60
...
...
@@ -19,12 +19,11 @@ class TestTalosWalkPath(unittest.TestCase):
planner
=
PathPlanner
()
planner
.
run
()
ps
=
planner
.
ps
self
.
assertEqual
(
ps
.
numberPaths
(),
2
)
self
.
assertEqual
(
ps
.
pathLength
(
0
),
ps
.
pathLength
(
1
))
self
.
assertTrue
(
ps
.
pathLength
(
1
)
>
6.
)
self
.
assertTrue
(
ps
.
pathLength
(
1
)
<
7.
)
self
.
assertEqual
(
planner
.
q_init
,
ps
.
configAtParam
(
1
,
0
))
self
.
assertEqual
(
planner
.
q_goal
,
ps
.
configAtParam
(
1
,
ps
.
pathLength
(
1
)))
self
.
assertEqual
(
ps
.
numberPaths
(),
1
)
self
.
assertTrue
(
ps
.
pathLength
(
0
)
>
6.
)
self
.
assertTrue
(
ps
.
pathLength
(
0
)
<
7.
)
self
.
assertEqual
(
planner
.
q_init
,
ps
.
configAtParam
(
0
,
0
))
self
.
assertEqual
(
planner
.
q_goal
,
ps
.
configAtParam
(
0
,
ps
.
pathLength
(
0
)))
if
__name__
==
'__main__'
:
...
...
Write
Preview
Supports
Markdown
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