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
3c867015
Commit
3c867015
authored
Sep 23, 2014
by
Florent Lamiraux
Browse files
Update to modification in hpp-model
- JointTranslation is now a template class.
parent
5ea1602f
Changes
2
Hide whitespace changes
Inline
Side-by-side
tests/roadmap-1.cc
View file @
3c867015
...
...
@@ -62,11 +62,11 @@ void addEdge (const hpp::core::RoadmapPtr_t& r,
BOOST_AUTO_TEST_CASE
(
Roadmap1
)
{
// Build robot
DevicePtr_t
robot
=
Device
::
create
(
"robot"
);
JointPtr_t
xJoint
=
new
JointTranslation
(
fcl
::
Transform3f
());
JointPtr_t
xJoint
=
new
JointTranslation
<
1
>
(
fcl
::
Transform3f
());
xJoint
->
isBounded
(
0
,
1
);
xJoint
->
lowerBound
(
0
,
-
3.
);
xJoint
->
upperBound
(
0
,
3.
);
JointPtr_t
yJoint
=
new
JointTranslation
JointPtr_t
yJoint
=
new
JointTranslation
<
1
>
(
fcl
::
Transform3f
(
fcl
::
Quaternion3f
(
sqrt
(
2
)
/
2
,
0
,
0
,
sqrt
(
2
)
/
2
)));
yJoint
->
isBounded
(
0
,
1
);
yJoint
->
lowerBound
(
0
,
-
3.
);
...
...
tests/test-kdTree.cc.in
View file @
3c867015
...
...
@@ -54,11 +54,11 @@ BOOST_AUTO_TEST_SUITE( test_hpp_core )
BOOST_AUTO_TEST_CASE (kdTree) {
// Build Device
DevicePtr_t robot = Device::create("robot");
JointPtr_t xJoint = new JointTranslation(Transform3f());
JointPtr_t xJoint = new JointTranslation
<1>
(Transform3f());
xJoint->isBounded(0,1);
xJoint->lowerBound(0,-3.);
xJoint->upperBound(0,3.);
JointPtr_t yJoint = new JointTranslation(Transform3f());
JointPtr_t yJoint = new JointTranslation
<1>
(Transform3f());
yJoint->isBounded(0,1);
yJoint->lowerBound(0,-3.);
yJoint->upperBound(0,3.);
...
...
Write
Preview
Supports
Markdown
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