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
4a112f94
Commit
4a112f94
authored
Apr 30, 2019
by
Pierre Fernbach
Browse files
[script] update talos_circle to changes in rbprm
parent
88f4cbbb
Changes
1
Show whitespace changes
Inline
Side-by-side
script/scenarios/memmo/talos_circle.py
View file @
4a112f94
...
...
@@ -60,13 +60,14 @@ q_ref = fullBody.referenceConfig[::]+[0]*6
#q_ref = fullBody.referenceConfig_legsApart[::]+[0]*6
q_init
=
q_ref
[::]
fullBody
.
setReferenceConfig
(
q_ref
)
fullBody
.
usePosturalTaskContactCreation
(
True
)
if
abs
(
tp
.
q_goal
[
1
])
<=
abs
(
tp
.
q_goal
[
0
])
:
fullBody
.
setPostureWeights
(
fullBody
.
postureWeights
[::]
+
[
0
]
*
6
)
heuristicR
=
"fixedStep08"
heuristicL
=
"fixedStep08"
print
"Use weight for straight walk"
fullBody
.
usePosturalTaskContactCreation
(
True
)
else
:
fullBody
.
setPostureWeights
(
fullBody
.
postureWeights_straff
[::]
+
[
0
]
*
6
)
print
"Use weight for straff walk"
...
...
@@ -142,7 +143,7 @@ else :
print
"Generate contact plan ..."
tStart
=
time
.
time
()
configs
=
fullBody
.
interpolate
(
0.0
1
,
pathId
=
pId
,
robustnessTreshold
=
1
,
filterStates
=
True
,
quasiStatic
=
True
)
configs
=
fullBody
.
interpolate
(
0.0
05
,
pathId
=
pId
,
robustnessTreshold
=
3
,
filterStates
=
True
,
quasiStatic
=
True
)
tInterpolateConfigs
=
time
.
time
()
-
tStart
print
"Done."
print
"Contact plan generated in : "
+
str
(
tInterpolateConfigs
)
+
" s"
...
...
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