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-core
Commits
e27a8953
Commit
e27a8953
authored
Aug 11, 2010
by
florent
Browse files
Fix construction of hands.
* src/humanoid-robot.cc.
parent
a881247a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/humanoid-robot.cc
View file @
e27a8953
...
...
@@ -538,6 +538,7 @@ void HumanoidRobot::setHumanoidProperties(const ChppHumanoidRobotShPtr& inRobot)
// Get right foot values by symmetry
anklePosInFootFrame
(
1
)
*=
-
1
;
soleCenterInFootFrame
(
1
)
*=
-
1
;
foot
->
setAnklePositionInLocalFrame
(
anklePosInFootFrame
);
foot
->
setSoleCenterInLocalFrame
(
soleCenterInFootFrame
);
foot
->
setSoleSize
(
soleLength
->
value
(),
soleWidth
->
value
());
foot
->
setProjectionCenterLocalFrameInSole
(
vzero
);
...
...
@@ -553,6 +554,7 @@ void HumanoidRobot::setHumanoidProperties(const ChppHumanoidRobotShPtr& inRobot)
inRobot
->
leftWrist
(
jrlJoint
);
CjrlHand
*
hand
=
objectFactory_
.
createHand
(
jrlJoint
);
hand
->
setAssociatedWrist
(
jrlJoint
);
inRobot
->
leftHand
(
hand
);
vector3d
handCenter
;
handCenter
(
0
)
=
leftHandCenterX
->
value
();
handCenter
(
1
)
=
leftHandCenterY
->
value
();
...
...
@@ -584,6 +586,7 @@ void HumanoidRobot::setHumanoidProperties(const ChppHumanoidRobotShPtr& inRobot)
inRobot
->
rightWrist
(
jrlJoint
);
hand
=
objectFactory_
.
createHand
(
jrlJoint
);
hand
->
setAssociatedWrist
(
jrlJoint
);
inRobot
->
rightHand
(
hand
);
handCenter
(
1
)
*=
-
1
;
hand
->
setCenter
(
handCenter
);
thumbAxis
(
1
)
*=
-
1
;
...
...
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