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
3df2ac33
Commit
3df2ac33
authored
May 02, 2019
by
Pierre Fernbach
Browse files
[script] moveEffector correctly write configs in infos.log file
parent
14071915
Changes
1
Hide whitespace changes
Inline
Side-by-side
script/scenarios/memmo/talos_moveEffector_flat.py
View file @
3df2ac33
...
...
@@ -12,7 +12,7 @@ statusFilename = "infos.log"
fullBody
=
Robot
()
# Set the bounds for the root
fullBody
.
setJointBounds
(
"root_joint"
,
[
-
0.3
,
0.3
,
-
0.3
,
0.3
,
0.9
,
1.0
5
])
fullBody
.
setJointBounds
(
"root_joint"
,
[
-
0.3
,
0.3
,
-
0.3
,
0.3
,
1.01
,
1.0
3
])
## reduce bounds on joints along x, to put conservative condition on the contact generation for sideway steps
joint6L_bounds_prev
=
fullBody
.
getJointBounds
(
'leg_left_6_joint'
)
joint2L_bounds_prev
=
fullBody
.
getJointBounds
(
'leg_left_2_joint'
)
...
...
@@ -108,7 +108,9 @@ else:
print
"Contact generation failed."
f
=
open
(
statusFilename
,
"a"
)
f
=
open
(
statusFilename
,
"w"
)
f
.
write
(
"q_init= "
+
str
(
s0
.
q
())
+
"
\n
"
)
f
.
write
(
"q_goal= "
+
str
(
s1
.
q
())
+
"
\n
"
)
f
.
write
(
"cg_success: "
+
str
(
cg_success
)
+
"
\n
"
)
f
.
write
(
"cg_reach_goal: "
+
str
(
cg_reach_goal
)
+
"
\n
"
)
f
.
close
()
...
...
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