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
9a628e13
Commit
9a628e13
authored
May 27, 2019
by
Pierre Fernbach
Browse files
[script] talos_circle_oriented : add conservativ bounds on leg z joints
parent
04ae09f1
Changes
1
Show whitespace changes
Inline
Side-by-side
script/scenarios/memmo/talos_circle_oriented.py
View file @
9a628e13
...
...
@@ -27,12 +27,16 @@ fullBody = Robot ()
# Set the bounds for the root
fullBody
.
setJointBounds
(
"root_joint"
,
[
-
2
,
2
,
-
2
,
2
,
0.9
,
1.05
])
## reduce bounds on joints along x, to put conservative condition on the contact generation for sideway steps
joint1L_bounds_prev
=
fullBody
.
getJointBounds
(
'leg_left_1_joint'
)
joint6L_bounds_prev
=
fullBody
.
getJointBounds
(
'leg_left_6_joint'
)
joint2L_bounds_prev
=
fullBody
.
getJointBounds
(
'leg_left_2_joint'
)
joint1R_bounds_prev
=
fullBody
.
getJointBounds
(
'leg_right_1_joint'
)
joint6R_bounds_prev
=
fullBody
.
getJointBounds
(
'leg_right_6_joint'
)
joint2R_bounds_prev
=
fullBody
.
getJointBounds
(
'leg_right_2_joint'
)
fullBody
.
setJointBounds
(
'leg_left_1_joint'
,[
-
0.34
,
1.4
])
fullBody
.
setJointBounds
(
'leg_left_6_joint'
,[
-
0.25
,
0.25
])
fullBody
.
setJointBounds
(
'leg_left_2_joint'
,[
-
0.25
,
0.25
])
fullBody
.
setJointBounds
(
'leg_right_1_joint'
,[
-
1.4
,
0.34
])
fullBody
.
setJointBounds
(
'leg_right_6_joint'
,[
-
0.25
,
0.25
])
fullBody
.
setJointBounds
(
'leg_right_2_joint'
,[
-
0.25
,
0.25
])
# add the 6 extraDof for velocity and acceleration (see *_path.py script)
...
...
@@ -177,8 +181,10 @@ if (not cg_success) or cg_too_many_states:
sys
.
exit
(
1
)
# put back original bounds for wholebody methods
fullBody
.
setJointBounds
(
'leg_left_1_joint'
,
joint1L_bounds_prev
)
fullBody
.
setJointBounds
(
'leg_left_6_joint'
,
joint6L_bounds_prev
)
fullBody
.
setJointBounds
(
'leg_left_2_joint'
,
joint2L_bounds_prev
)
fullBody
.
setJointBounds
(
'leg_right_1_joint'
,
joint1R_bounds_prev
)
fullBody
.
setJointBounds
(
'leg_right_6_joint'
,
joint6R_bounds_prev
)
fullBody
.
setJointBounds
(
'leg_right_2_joint'
,
joint2R_bounds_prev
)
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