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
e51fd385
Commit
e51fd385
authored
May 14, 2020
by
Guilhem Saurel
Browse files
[Python] reformat for tabs to space
parent
dda0e2e3
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/dynamic_graph/sot/talos/talos.py
View file @
e51fd385
...
...
@@ -3,11 +3,13 @@
from
__future__
import
print_function
import
pinocchio
from
dynamic_graph
import
plug
from
dynamic_graph.sot.core.math_small_entities
import
Derivator_of_Vector
from
dynamic_graph.sot.dynamic_pinocchio
import
DynamicPinocchio
from
dynamic_graph.sot.dynamic_pinocchio.humanoid_robot
import
AbstractHumanoidRobot
import
pinocchio
from
dynamic_graph.sot.dynamic_pinocchio.humanoid_robot
import
\
AbstractHumanoidRobot
from
rospkg
import
RosPack
...
...
@@ -70,18 +72,17 @@ class Talos(AbstractHumanoidRobot):
raise
RuntimeError
(
'"'
+
rosParamName
+
'" is not a ROS parameter.'
)
s
=
rospy
.
get_param
(
rosParamName
)
self
.
loadModelFromString
(
s
,
rootJointType
=
pinocchio
.
JointModelFreeFlyer
,
removeMimicJoints
=
True
)
self
.
loadModelFromString
(
s
,
rootJointType
=
pinocchio
.
JointModelFreeFlyer
,
removeMimicJoints
=
True
)
else
:
self
.
loadModelFromUrdf
(
self
.
defaultFilename
,
rootJointType
=
pinocchio
.
JointModelFreeFlyer
,
removeMimicJoints
=
True
)
rootJointType
=
pinocchio
.
JointModelFreeFlyer
,
removeMimicJoints
=
True
)
assert
hasattr
(
self
,
"pinocchioModel"
)
assert
hasattr
(
self
,
"pinocchioData"
)
if
device
!=
None
:
self
.
device
=
device
if
device
!=
None
:
self
.
device
=
device
AbstractHumanoidRobot
.
__init__
(
self
,
name
,
tracer
)
self
.
OperationalPoints
.
append
(
'waist'
)
...
...
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