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-romeo
Commits
1523941b
Commit
1523941b
authored
Jun 04, 2014
by
Aurelie Clodic
Browse files
Add jointMap to store special joints mapping
(same data will be used for dynamic model creation and pg creation)
parent
d91ac2d1
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/dynamic_graph/sot/romeo/robot.py
View file @
1523941b
...
...
@@ -33,6 +33,9 @@ class Robot (AbstractHumanoidRobot):
1.5
,
-
0.6
,
0.5
,
1.05
,
-
0.4
,
-
0.3
,
-
0.2
,
# Right arm
)
jointMap
=
{
}
jointMap
[
'BODY'
]
=
'body'
def
__init__
(
self
,
name
,
device
=
None
,
tracer
=
None
):
...
...
@@ -47,7 +50,8 @@ class Robot (AbstractHumanoidRobot):
# correct the name of the body link
self
.
dynamic
=
RosRobotModel
(
"{0}_dynamic"
.
format
(
name
))
self
.
dynamic
.
addJointMapping
(
'BODY'
,
'body'
)
for
i
in
self
.
jointMap
:
self
.
dynamic
.
addJointMapping
(
i
,
self
.
jointMap
[
i
])
self
.
dynamic
.
loadUrdf
(
self
.
urdfDir
+
self
.
urdfName
)
# complete feet position (TODO: move it into srdf file)
...
...
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