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
Humanoid Path Planner
hpp-model-urdf
Commits
c12f252b
Commit
c12f252b
authored
Jun 01, 2015
by
Florent Lamiraux
Browse files
Fix orientation of body connected to root joint.
parent
582cba9a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/urdf/parser.cc
View file @
c12f252b
...
...
@@ -573,7 +573,8 @@ namespace hpp
MatrixHomogeneousType
parentJointInWorld
;
if
(
link
==
model_
.
getRoot
())
{
parentJointInWorld
=
rootJoint_
->
currentTransformation
();
MatrixHomogeneousType
result
;
result
.
setIdentity
();
return
result
;
}
else
{
parentJointInWorld
=
...
...
@@ -920,6 +921,8 @@ namespace hpp
jointName
);
}
joint
->
name
(
jointName
);
pos
.
inverse
();
joint
->
linkInJointFrame
(
pos
);
jointsMap_
[
jointName
]
=
joint
;
joint
->
lowerBound
(
0
,
-
numeric_limits
<
double
>::
infinity
());
joint
->
upperBound
(
0
,
+
numeric_limits
<
double
>::
infinity
());
...
...
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