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
Humanoid Path Planner
hpp-practicals
Commits
c53cc302
Commit
c53cc302
authored
May 31, 2019
by
Florent Lamiraux
Committed by
Florent Lamiraux florent@laas.fr
May 31, 2019
Browse files
[script] In rrt.py, do not create viewer right away.
parent
2720c400
Changes
1
Hide whitespace changes
Inline
Side-by-side
script/rrt.py
View file @
c53cc302
...
...
@@ -11,14 +11,9 @@ vf.loadObstacleModel ("hpp_practicals","ur_benchmark/obstacles","obstacles")
vf
.
loadObstacleModel
(
"hpp_practicals"
,
"ur_benchmark/table"
,
"table"
)
vf
.
loadObstacleModel
(
"hpp_practicals"
,
"ur_benchmark/wall"
,
"wall"
)
v
=
vf
.
createViewer
()
q1
=
[
0
,
-
1.57
,
1.57
,
0
,
0
,
0
];
q2
=
[
0.2
,
-
1.57
,
-
1.8
,
0
,
0.8
,
0
]
q3
=
[
1.57
,
-
1.57
,
-
1.8
,
0
,
0.8
,
0
]
v
(
q2
)
v
(
q3
)
ps
.
setInitialConfig
(
q2
)
ps
.
addGoalConfig
(
q3
)
...
...
@@ -26,5 +21,8 @@ from motion_planner import MotionPlanner
m
=
MotionPlanner
(
robot
,
ps
)
pathId
=
m
.
solveBiRRT
(
maxIter
=
1000
)
pp
=
PathPlayer
(
v
)
#pp (pathId)
# v = vf.createViewer ()
# v (q2)
# v (q3)
# pp = PathPlayer (v)
# pp (pathId)
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