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
hpp-rbprm-corba
Commits
c8e717ed
Commit
c8e717ed
authored
Jan 21, 2020
by
Pierre Fernbach
Browse files
Refactor python3 : fix relative imports
parent
6b48f744
Changes
116
Show whitespace changes
Inline
Side-by-side
script/scenarios/sandbox/ANYmal/anymal_plinth.py
View file @
c8e717ed
...
...
@@ -3,7 +3,7 @@ from hpp.gepetto import Viewer
from
hpp.corbaserver.rbprm.tools.display_tools
import
*
import
time
print
(
"Plan guide trajectory ..."
)
import
anymal_plinth_path
as
tp
from
.
import
anymal_plinth_path
as
tp
print
(
"Done."
)
import
time
...
...
script/scenarios/sandbox/ANYmal/anymal_slalom1.py
View file @
c8e717ed
...
...
@@ -3,7 +3,7 @@ from hpp.gepetto import Viewer
from
tools.display_tools
import
*
import
time
print
(
"Plan guide trajectory ..."
)
import
anymal_slalom1_path
as
tp
from
.
import
anymal_slalom1_path
as
tp
print
(
"Done."
)
import
time
...
...
script/scenarios/sandbox/ANYmal/anymal_slalom2.py
View file @
c8e717ed
...
...
@@ -3,7 +3,7 @@ from hpp.gepetto import Viewer
from
tools.display_tools
import
*
import
time
print
(
"Plan guide trajectory ..."
)
import
anymal_slalom2_path
as
tp
from
.
import
anymal_slalom2_path
as
tp
print
(
"Done."
)
import
time
...
...
script/scenarios/sandbox/ANYmal/anymal_slalom_debris.py
View file @
c8e717ed
...
...
@@ -3,7 +3,7 @@ from hpp.gepetto import Viewer
from
hpp.corbaserver.rbprm.tools.display_tools
import
*
import
time
print
(
"Plan guide trajectory ..."
)
import
anymal_slalom_debris_path
as
tp
from
.
import
anymal_slalom_debris_path
as
tp
print
(
"Done."
)
import
time
...
...
script/scenarios/sandbox/ANYmal/darpa.py
View file @
c8e717ed
...
...
@@ -3,7 +3,7 @@ from hpp.gepetto import Viewer
from
hpp.corbaserver.rbprm.tools.display_tools
import
*
import
time
print
(
"Plan guide trajectory ..."
)
import
darpa_path
as
tp
from
.
import
darpa_path
as
tp
print
(
"Done."
)
import
time
...
...
script/scenarios/sandbox/dynamic/bauzilStairs_hrp2_interStatic.py
View file @
c8e717ed
...
...
@@ -2,7 +2,7 @@ from hpp.corbaserver.rbprm.rbprmbuilder import Builder
from
hpp.corbaserver.rbprm.rbprmfullbody
import
FullBody
from
hpp.gepetto
import
Viewer
from
tools
import
*
import
bauzilStairs_hrp2_pathKino
as
tp
from
.
import
bauzilStairs_hrp2_pathKino
as
tp
import
time
import
omniORB.any
...
...
@@ -126,7 +126,7 @@ fullBody.setStaticStability(True) # only set it after the init/goal configuratio
from
hpp.gepetto
import
PathPlayer
pp
=
PathPlayer
(
fullBody
.
client
.
basic
,
r
)
import
fullBodyPlayerHrp2
from
.
import
fullBodyPlayerHrp2
tStart
=
time
.
time
()
configs
=
fullBody
.
interpolate
(
0.01
,
pathId
=
pId
,
robustnessTreshold
=
robTreshold
,
filterStates
=
True
)
...
...
script/scenarios/sandbox/dynamic/darpa_hrp2_interStatic.py
View file @
c8e717ed
...
...
@@ -2,7 +2,7 @@ from hpp.corbaserver.rbprm.rbprmbuilder import Builder
from
hpp.corbaserver.rbprm.rbprmfullbody
import
FullBody
from
hpp.gepetto
import
Viewer
from
tools
import
*
import
darpa_hrp2_path
as
tp
from
.
import
darpa_hrp2_path
as
tp
import
time
import
omniORB.any
...
...
@@ -128,7 +128,7 @@ fullBody.setStaticStability(True) # only set it after the init/goal configuratio
from
hpp.gepetto
import
PathPlayer
pp
=
PathPlayer
(
fullBody
.
client
.
basic
,
r
)
import
fullBodyPlayerHrp2
from
.
import
fullBodyPlayerHrp2
tStart
=
time
.
time
()
configs
=
fullBody
.
interpolate
(
0.01
,
pathId
=
pId
,
robustnessTreshold
=
robTreshold
,
filterStates
=
True
)
...
...
script/scenarios/sandbox/dynamic/darpa_hrp2_interStatic_testTransition.py
View file @
c8e717ed
...
...
@@ -2,7 +2,7 @@ from hpp.corbaserver.rbprm.rbprmbuilder import Builder
from
hpp.corbaserver.rbprm.rbprmfullbody
import
FullBody
from
hpp.gepetto
import
Viewer
from
tools
import
*
import
darpa_hrp2_path
as
tp
from
.
import
darpa_hrp2_path
as
tp
import
time
import
omniORB.any
import
numpy
as
np
...
...
@@ -130,7 +130,7 @@ fullBody.setStaticStability(True) # only set it after the init/goal configuratio
from
hpp.gepetto
import
PathPlayer
pp
=
PathPlayer
(
fullBody
.
client
.
basic
,
r
)
import
fullBodyPlayerHrp2
from
.
import
fullBodyPlayerHrp2
tStart
=
time
.
time
()
configs
=
fullBody
.
interpolate
(
0.01
,
pathId
=
pId
,
robustnessTreshold
=
robTreshold
,
filterStates
=
True
,
testReachability
=
True
,
quasiStatic
=
True
)
...
...
script/scenarios/sandbox/dynamic/darpa_hrp2_interp.py
View file @
c8e717ed
...
...
@@ -2,7 +2,7 @@ from hpp.corbaserver.rbprm.rbprmbuilder import Builder
from
hpp.corbaserver.rbprm.rbprmfullbody
import
FullBody
from
hpp.gepetto
import
Viewer
from
tools
import
*
import
darpa_hrp2_path
as
tp
from
.
import
darpa_hrp2_path
as
tp
import
time
import
omniORB.any
...
...
@@ -128,7 +128,7 @@ fullBody.setStaticStability(True) # only set it after the init/goal configuratio
from
hpp.gepetto
import
PathPlayer
pp
=
PathPlayer
(
fullBody
.
client
.
basic
,
r
)
import
fullBodyPlayerHrp2
from
.
import
fullBodyPlayerHrp2
tStart
=
time
.
time
()
configs
=
fullBody
.
interpolate
(
0.01
,
pathId
=
pId
,
robustnessTreshold
=
robTreshold
,
filterStates
=
True
)
...
...
script/scenarios/sandbox/dynamic/darpa_hyq_interpKino.py
View file @
c8e717ed
...
...
@@ -5,7 +5,7 @@ from hpp.corbaserver.rbprm.problem_solver import ProblemSolver
from
hpp.gepetto
import
Viewer
#calling script darpa_hyq_path to compute root path
import
darpa_hyq_pathKino
as
tp
from
.
import
darpa_hyq_pathKino
as
tp
from
os
import
environ
ins_dir
=
environ
[
'DEVEL_DIR'
]
...
...
@@ -90,7 +90,7 @@ r(configs[-1])
from
hpp.gepetto
import
PathPlayer
pp
=
PathPlayer
(
fullBody
.
client
.
basic
,
r
)
from
fullBodyPlayer
import
Player
from
.
fullBodyPlayer
import
Player
player
=
Player
(
fullBody
,
pp
,
tp
,
configs
,
draw
=
True
,
optim_effector
=
False
,
use_velocity
=
dynamic
,
pathId
=
0
)
#player.displayContactPlan()
...
...
script/scenarios/sandbox/dynamic/darpa_line_hrp2_interStatic.py
View file @
c8e717ed
...
...
@@ -2,7 +2,7 @@ from hpp.corbaserver.rbprm.rbprmbuilder import Builder
from
hpp.corbaserver.rbprm.rbprmfullbody
import
FullBody
from
hpp.gepetto
import
Viewer
from
tools
import
*
import
darpa_line_hrp2_path
as
tp
from
.
import
darpa_line_hrp2_path
as
tp
import
time
import
omniORB.any
...
...
@@ -144,7 +144,7 @@ fullBody.setStaticStability(True) # only set it after the init/goal configuratio
from
hpp.gepetto
import
PathPlayer
pp
=
PathPlayer
(
fullBody
.
client
.
basic
,
r
)
import
fullBodyPlayerHrp2
from
.
import
fullBodyPlayerHrp2
tStart
=
time
.
time
()
configs
=
fullBody
.
interpolate
(
0.01
,
pathId
=
pId
,
robustnessTreshold
=
robTreshold
,
filterStates
=
True
,
testReachability
=
False
,
quasiStatic
=
False
)
...
...
script/scenarios/sandbox/dynamic/downSlope_easy_hrp2_interp.py
View file @
c8e717ed
...
...
@@ -2,7 +2,7 @@ from hpp.corbaserver.rbprm.rbprmbuilder import Builder
from
hpp.corbaserver.rbprm.rbprmfullbody
import
FullBody
from
hpp.gepetto
import
Viewer
import
downSlope_easy_hrp2_pathKino
as
tp
from
.
import
downSlope_easy_hrp2_pathKino
as
tp
import
time
...
...
script/scenarios/sandbox/dynamic/downSlope_hrp2_interp.py
View file @
c8e717ed
...
...
@@ -2,7 +2,7 @@ from hpp.corbaserver.rbprm.rbprmbuilder import Builder
from
hpp.corbaserver.rbprm.rbprmfullbody
import
FullBody
from
hpp.gepetto
import
Viewer
import
omniORB.any
import
downSlope_hrp2_waypoint
as
tp
from
.
import
downSlope_hrp2_waypoint
as
tp
import
time
...
...
@@ -106,7 +106,7 @@ fullBody.runLimbSampleAnalysis(lLegId, "jointLimitsDistance", True)
from
hpp.gepetto
import
PathPlayer
pp
=
PathPlayer
(
fullBody
.
client
.
basic
,
r
)
import
fullBodyPlayerHrp2
from
.
import
fullBodyPlayerHrp2
configs
=
fullBody
.
interpolate
(
0.05
,
pathId
=
pId
,
robustnessTreshold
=
1
,
filterStates
=
True
)
print
(
"number of configs :"
,
len
(
configs
))
...
...
script/scenarios/sandbox/dynamic/downSlope_hrp2_interp2.py
View file @
c8e717ed
...
...
@@ -2,7 +2,7 @@ from hpp.corbaserver.rbprm.rbprmbuilder import Builder
from
hpp.corbaserver.rbprm.rbprmfullbody
import
FullBody
from
hpp.gepetto
import
Viewer
import
downSlope_hrp2_pathKino2
as
tp
from
.
import
downSlope_hrp2_pathKino2
as
tp
import
time
...
...
@@ -98,7 +98,7 @@ print("number of configs :", len(configs))
from
hpp.gepetto
import
PathPlayer
pp
=
PathPlayer
(
fullBody
.
client
.
basic
,
r
)
from
fullBodyPlayerHrp2
import
Player
from
.
fullBodyPlayerHrp2
import
Player
player
=
Player
(
fullBody
,
pp
,
tp
,
configs
,
draw
=
False
,
optim_effector
=
False
,
use_velocity
=
True
,
pathId
=
0
)
player
.
displayContactPlan
()
...
...
script/scenarios/sandbox/dynamic/downSlope_hrp2_pathKino.py
View file @
c8e717ed
...
...
@@ -120,7 +120,7 @@ pp.displayVelocityPath(0)
r
.
client
.
gui
.
setVisibility
(
"path_0_root"
,
"ALWAYS_ON_TOP"
)
import
parse_bench
from
.
import
parse_bench
parse_bench
.
parseBenchmark
(
t
)
print
(
"path lenght = "
,
str
(
ps
.
client
.
problem
.
pathLength
(
ps
.
numberPaths
()
-
1
)))
...
...
script/scenarios/sandbox/dynamic/downSlope_hrp2_pathKino_oneTry.py
View file @
c8e717ed
...
...
@@ -120,7 +120,7 @@ pp.displayVelocityPath(0)
r
.
client
.
gui
.
setVisibility
(
"path_0_root"
,
"ALWAYS_ON_TOP"
)
import
parse_bench
from
.
import
parse_bench
parse_bench
.
parseBenchmark
(
t
)
print
(
"path lenght = "
,
str
(
ps
.
client
.
problem
.
pathLength
(
ps
.
numberPaths
()
-
1
)))
...
...
script/scenarios/sandbox/dynamic/downSlope_hyq_interpKino.py
View file @
c8e717ed
...
...
@@ -5,7 +5,7 @@ from hpp.corbaserver.rbprm.problem_solver import ProblemSolver
from
hpp.gepetto
import
Viewer
#calling script darpa_hyq_path to compute root path
import
downSlope_hyq_pathKino
as
tp
from
.
import
downSlope_hyq_pathKino
as
tp
from
os
import
environ
ins_dir
=
environ
[
'DEVEL_DIR'
]
...
...
@@ -96,7 +96,7 @@ r(configs[-1])
from
hpp.gepetto
import
PathPlayer
pp
=
PathPlayer
(
fullBody
.
client
.
basic
,
r
)
from
fullBodyPlayer
import
Player
from
.
fullBodyPlayer
import
Player
player
=
Player
(
fullBody
,
pp
,
tp
,
configs
,
draw
=
True
,
optim_effector
=
False
,
use_velocity
=
dynamic
,
pathId
=
pathId
)
#player.displayContactPlan()
...
...
script/scenarios/sandbox/dynamic/downSlope_hyq_interpKino2.py
View file @
c8e717ed
...
...
@@ -5,7 +5,7 @@ from hpp.corbaserver.rbprm.problem_solver import ProblemSolver
from
hpp.gepetto
import
Viewer
#calling script darpa_hyq_path to compute root path
import
downSlope_hyq_pathKino2
as
tp
from
.
import
downSlope_hyq_pathKino2
as
tp
from
os
import
environ
ins_dir
=
environ
[
'DEVEL_DIR'
]
...
...
@@ -93,7 +93,7 @@ r(configs[-1])
from
hpp.gepetto
import
PathPlayer
pp
=
PathPlayer
(
fullBody
.
client
.
basic
,
r
)
from
fullBodyPlayer
import
Player
from
.
fullBodyPlayer
import
Player
player
=
Player
(
fullBody
,
pp
,
tp
,
configs
,
draw
=
True
,
optim_effector
=
False
,
use_velocity
=
dynamic
,
pathId
=
pathId
)
player
.
displayContactPlan
()
...
...
script/scenarios/sandbox/dynamic/flatGround_hrp2_interp.py
View file @
c8e717ed
...
...
@@ -4,7 +4,7 @@ from hpp.gepetto import Viewer
print
(
"####################################"
)
print
(
"# SOLVING P1 : #"
)
import
flatGround_hrp2_pathKino
as
tp
from
.
import
flatGround_hrp2_pathKino
as
tp
print
(
"# DONE #"
)
print
(
"####################################"
)
print
(
"# SOLVING P2 : #"
)
...
...
@@ -111,7 +111,7 @@ fullBody.runLimbSampleAnalysis(lLegId, "jointLimitsDistance", True)
from
hpp.gepetto
import
PathPlayer
pp
=
PathPlayer
(
fullBody
.
client
.
basic
,
r
)
import
fullBodyPlayerHrp2
from
.
import
fullBodyPlayerHrp2
configs
=
fullBody
.
interpolate
(
0.01
,
pathId
=
pId
,
robustnessTreshold
=
1
,
filterStates
=
True
)
print
(
"number of configs :"
,
len
(
configs
))
...
...
script/scenarios/sandbox/dynamic/flatGround_hrp2_interpSTATIC.py
View file @
c8e717ed
...
...
@@ -5,7 +5,7 @@ import time
import
flatGround_hrp2_pathKino
as
tp
from
.
import
flatGround_hrp2_pathKino
as
tp
import
time
tPlanning
=
tp
.
tPlanning
...
...
@@ -141,7 +141,7 @@ fullBody.runLimbSampleAnalysis(lLegId, "jointLimitsDistance", True)
from
hpp.gepetto
import
PathPlayer
pp
=
PathPlayer
(
fullBody
.
client
.
basic
,
r
)
import
fullBodyPlayerHrp2
from
.
import
fullBodyPlayerHrp2
tStart
=
time
.
time
()
configsFull
=
fullBody
.
interpolate
(
0.01
,
pathId
=
pId
,
robustnessTreshold
=
3
,
filterStates
=
True
)
...
...
Prev
1
2
3
4
5
6
Next
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