Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
hpp-rbprm-corba
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Humanoid Path Planner
hpp-rbprm-corba
Commits
43e6b6bf
Commit
43e6b6bf
authored
6 years ago
by
Pierre Fernbach
Browse files
Options
Downloads
Patches
Plain Diff
[demo] minor changes in talos_flatGround
parent
e603228a
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
script/scenarios/demos/talos_flatGround.py
+5
-4
5 additions, 4 deletions
script/scenarios/demos/talos_flatGround.py
script/scenarios/demos/talos_flatGround_path.py
+3
-3
3 additions, 3 deletions
script/scenarios/demos/talos_flatGround_path.py
with
8 additions
and
7 deletions
script/scenarios/demos/talos_flatGround.py
+
5
−
4
View file @
43e6b6bf
...
@@ -32,9 +32,9 @@ tStart = time.time()
...
@@ -32,9 +32,9 @@ tStart = time.time()
# generate databases :
# generate databases :
nbSamples
=
50000
nbSamples
=
50000
fullBody
.
addLimb
(
fullBody
.
rLegId
,
fullBody
.
rleg
,
fullBody
.
rfoot
,
fullBody
.
rLegOffset
,
fullBody
.
rLegNormal
,
fullBody
.
rLegx
,
fullBody
.
rLegy
,
nbSamples
,
"
fixedStep
1
"
,
0.01
,
kinematicConstraintsPath
=
fullBody
.
rLegKinematicConstraints
)
fullBody
.
addLimb
(
fullBody
.
rLegId
,
fullBody
.
rleg
,
fullBody
.
rfoot
,
fullBody
.
rLegOffset
,
fullBody
.
rLegNormal
,
fullBody
.
rLegx
,
fullBody
.
rLegy
,
nbSamples
,
"
fixedStep
08
"
,
0.01
,
kinematicConstraintsPath
=
fullBody
.
rLegKinematicConstraints
)
fullBody
.
runLimbSampleAnalysis
(
fullBody
.
rLegId
,
"
ReferenceConfiguration
"
,
True
)
fullBody
.
runLimbSampleAnalysis
(
fullBody
.
rLegId
,
"
ReferenceConfiguration
"
,
True
)
fullBody
.
addLimb
(
fullBody
.
lLegId
,
fullBody
.
lleg
,
fullBody
.
lfoot
,
fullBody
.
lLegOffset
,
fullBody
.
rLegNormal
,
fullBody
.
lLegx
,
fullBody
.
lLegy
,
nbSamples
,
"
fixedStep
1
"
,
0.01
,
kinematicConstraintsPath
=
fullBody
.
lLegKinematicConstraints
)
fullBody
.
addLimb
(
fullBody
.
lLegId
,
fullBody
.
lleg
,
fullBody
.
lfoot
,
fullBody
.
lLegOffset
,
fullBody
.
rLegNormal
,
fullBody
.
lLegx
,
fullBody
.
lLegy
,
nbSamples
,
"
fixedStep
08
"
,
0.01
,
kinematicConstraintsPath
=
fullBody
.
lLegKinematicConstraints
)
fullBody
.
runLimbSampleAnalysis
(
fullBody
.
lLegId
,
"
ReferenceConfiguration
"
,
True
)
fullBody
.
runLimbSampleAnalysis
(
fullBody
.
lLegId
,
"
ReferenceConfiguration
"
,
True
)
...
@@ -84,9 +84,10 @@ tStart = time.time()
...
@@ -84,9 +84,10 @@ tStart = time.time()
configs
=
fullBody
.
interpolate
(
0.01
,
pathId
=
pId
,
robustnessTreshold
=
2
,
filterStates
=
True
)
configs
=
fullBody
.
interpolate
(
0.01
,
pathId
=
pId
,
robustnessTreshold
=
2
,
filterStates
=
True
)
tInterpolateConfigs
=
time
.
time
()
-
tStart
tInterpolateConfigs
=
time
.
time
()
-
tStart
print
"
Done.
"
print
"
Done.
"
print
"
Contact plan generated in :
"
+
str
(
tInterpolateConfigs
)
+
"
s
"
print
"
number of configs :
"
,
len
(
configs
)
print
"
number of configs :
"
,
len
(
configs
)
raw_input
(
"
Press Enter to display the contact sequence ...
"
)
#
raw_input("Press Enter to display the contact sequence ...")
displayContactSequence
(
v
,
configs
)
#
displayContactSequence(v,configs)
This diff is collapsed.
Click to expand it.
script/scenarios/demos/talos_flatGround_path.py
+
3
−
3
View file @
43e6b6bf
from
hpp.corbaserver.rbprm.talos_abstract
import
Robot
from
hpp.corbaserver.rbprm.talos_abstract
import
Robot
from
hpp.gepetto
import
Viewer
from
hpp.gepetto
import
Viewer
from
hpp.corbaserver
import
Client
from
hpp.corbaserver
import
ProblemSolver
from
hpp.corbaserver
import
ProblemSolver
import
time
import
time
...
@@ -84,9 +83,10 @@ print "Guide planning time : ",t
...
@@ -84,9 +83,10 @@ print "Guide planning time : ",t
# display solution :
# display solution :
from
hpp.gepetto
import
PathPlayer
from
hpp.gepetto
import
PathPlayer
pp
=
PathPlayer
(
v
)
pp
=
PathPlayer
(
v
)
pp
.
dt
=
0.
03
pp
.
dt
=
0.
1
pp
.
displayVelocityPath
(
0
)
#
pp.displayVelocityPath(0)
v
.
client
.
gui
.
setVisibility
(
"
path_0_root
"
,
"
ALWAYS_ON_TOP
"
)
v
.
client
.
gui
.
setVisibility
(
"
path_0_root
"
,
"
ALWAYS_ON_TOP
"
)
pp
.
dt
=
0.01
#pp(0)
#pp(0)
# move the robot out of the view before computing the contacts
# move the robot out of the view before computing the contacts
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment