Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
pinocchio
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Stack Of Tasks
pinocchio
Commits
03dc6f77
Commit
03dc6f77
authored
8 years ago
by
jcarpent
Browse files
Options
Downloads
Patches
Plain Diff
[Geometry] Clean FCL conversion tools
parent
32212dab
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/spatial/fcl-pinocchio-conversions.hpp
+7
-12
7 additions, 12 deletions
src/spatial/fcl-pinocchio-conversions.hpp
with
7 additions
and
12 deletions
src/spatial/fcl-pinocchio-conversions.hpp
+
7
−
12
View file @
03dc6f77
//
// Copyright (c) 2015 CNRS
// Copyright (c) 2015
-2016
CNRS
//
// This file is part of Pinocchio
// Pinocchio is free software: you can redistribute it
...
...
@@ -18,10 +18,8 @@
#ifndef __se3_fcl_convertion_hpp__
#define __se3_fcl_convertion_hpp__
#include
<Eigen/Geometry>
#include
<hpp/fcl/math/transform.h>
#include
"pinocchio/spatial/se3.hpp"
# include <hpp/fcl/math/transform.h>
namespace
se3
{
...
...
@@ -45,27 +43,24 @@ namespace se3
inline
fcl
::
Vec3f
toFclVec3f
(
const
Eigen
::
Vector3d
&
vec
)
{
return
fcl
::
Vec3f
(
vec
(
0
),
vec
(
1
),
vec
(
2
));
return
fcl
::
Vec3f
(
vec
(
0
),
vec
(
1
),
vec
(
2
));
}
inline
Eigen
::
Vector3d
toVector3d
(
const
fcl
::
Vec3f
&
vec
)
{
Eigen
::
Vector3d
res
;
res
<<
vec
[
0
],
vec
[
1
],
vec
[
2
];
return
res
;
return
Eigen
::
Vector3d
(
vec
[
0
],
vec
[
1
],
vec
[
2
]);
}
inline
fcl
::
Transform3f
toFclTransform3f
(
const
se3
::
SE3
&
m
)
inline
fcl
::
Transform3f
toFclTransform3f
(
const
SE3
&
m
)
{
return
fcl
::
Transform3f
(
toFclMatrix3f
(
m
.
rotation
()),
toFclVec3f
(
m
.
translation
()));
}
inline
se3
::
SE3
toPinocchioSE3
(
const
fcl
::
Transform3f
&
tf
)
inline
SE3
toPinocchioSE3
(
const
fcl
::
Transform3f
&
tf
)
{
return
se3
::
SE3
(
toMatrix3d
(
tf
.
getRotation
()),
toVector3d
(
tf
.
getTranslation
()));
return
SE3
(
toMatrix3d
(
tf
.
getRotation
()),
toVector3d
(
tf
.
getTranslation
()));
}
}
// namespace se3
#endif // ifndef __se3_fcl_convertion_hpp__
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment