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
9e1ac69b
Commit
9e1ac69b
authored
Sep 02, 2020
by
Guilhem Saurel
Browse files
Update for dynamic-graph-python v4
parent
77b0ade3
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/dynamic_graph/sot/pyrene/prologue.py
View file @
9e1ac69b
...
...
@@ -5,8 +5,10 @@
# required by rospy
import
sys
from
dynamic_graph.entity
import
PyEntityFactoryClass
import
numpy
as
np
from
dynamic_graph.sot.pyrene.robot
import
Robot
from
dynamic_graph.sot.talos.sot_talos_device
import
DeviceTalos
if
not
hasattr
(
sys
,
'argv'
):
sys
.
argv
=
[
...
...
@@ -25,14 +27,11 @@ def makeRobot():
controller.
"""
DeviceTalos
=
PyEntityFactoryClass
(
'DeviceTalos'
)
# Create the robot using the device.
robot
=
Robot
(
name
=
'talos'
,
device
=
DeviceTalos
(
'PYRENE'
),
fromRosParam
=
True
)
robot
=
Robot
(
name
=
'talos'
,
device
=
DeviceTalos
(
'PYRENE'
),
fromRosParam
=
True
)
robot
.
dynamic
.
com
.
recompute
(
0
)
_com
=
robot
.
dynamic
.
com
.
value
robot
.
device
.
zmp
.
value
=
(
_com
[
0
],
_com
[
1
],
0.
)
robot
.
device
.
zmp
.
value
=
np
.
array
(
(
_com
[
0
],
_com
[
1
],
0.
)
)
return
robot
...
...
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