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
Stack Of Tasks
sot-talos
Commits
924990c1
Commit
924990c1
authored
Oct 04, 2018
by
Joseph Mirabel
Committed by
Joseph Mirabel
Oct 04, 2018
Browse files
In prologue, set robot bounds (position, velocity and effort)
parent
e200c73a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/dynamic_graph/sot/talos/talos.py
View file @
924990c1
...
...
@@ -106,6 +106,18 @@ class Talos(AbstractHumanoidRobot):
self
.
device
=
device
self
.
device
.
resize
(
self
.
dynamic
.
getDimension
())
# TODO For position limit, we remove the first value to get
# a vector of the good size because SoT use euler angles and not
# quaternions...
self
.
device
.
setPositionBounds
(
self
.
pinocchioModel
.
lowerPositionLimit
.
T
.
tolist
()[
0
][
1
:],
self
.
pinocchioModel
.
upperPositionLimit
.
T
.
tolist
()[
0
][
1
:])
self
.
device
.
setVelocityBounds
(
(
-
self
.
pinocchioModel
.
velocityLimit
).
T
.
tolist
()[
0
],
self
.
pinocchioModel
.
velocityLimit
.
T
.
tolist
()[
0
])
self
.
device
.
setTorqueBounds
(
(
-
self
.
pinocchioModel
.
effortLimit
).
T
.
tolist
()[
0
],
self
.
pinocchioModel
.
effortLimit
.
T
.
tolist
()[
0
])
self
.
halfSitting
=
initialConfig
self
.
device
.
set
(
self
.
halfSitting
)
plug
(
self
.
device
.
state
,
self
.
dynamic
.
position
)
...
...
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