tf_eigen.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2009-2012, Willow Garage, Inc.
3  * All rights reserved.
4  *
5  * Redistribution and use in source and binary forms, with or without
6  * modification, are permitted provided that the following conditions are met:
7  *
8  * * Redistributions of source code must retain the above copyright
9  * notice, this list of conditions and the following disclaimer.
10  * * Redistributions in binary form must reproduce the above copyright
11  * notice, this list of conditions and the following disclaimer in the
12  * documentation and/or other materials provided with the distribution.
13  * * Neither the name of the Willow Garage, Inc. nor the names of its
14  * contributors may be used to endorse or promote products derived from
15  * this software without specific prior written permission.
16  *
17  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
18  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20  * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
21  * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
22  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
23  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
24  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
25  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
26  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
27  * POSSIBILITY OF SUCH DAMAGE.
28  */
29 
30 // Author: Adam Leeper (and others)
31 
32 #ifndef CONVERSIONS_TF_EIGEN_H
33 #define CONVERSIONS_TF_EIGEN_H
34 
35 #include "tf/transform_datatypes.h"
36 #include "Eigen/Core"
37 #include "Eigen/Geometry"
38 
39 namespace tf {
40 
42 void matrixTFToEigen(const tf::Matrix3x3 &t, Eigen::Matrix3d &e);
43 
45 void matrixEigenToTF(const Eigen::Matrix3d &e, tf::Matrix3x3 &t);
46 
48 void poseTFToEigen(const tf::Pose &t, Eigen::Affine3d &e);
49 
51 void poseTFToEigen(const tf::Pose &t, Eigen::Isometry3d &e);
52 
54 void poseEigenToTF(const Eigen::Affine3d &e, tf::Pose &t);
55 
57 void poseEigenToTF(const Eigen::Isometry3d &e, tf::Pose &t);
58 
60 void quaternionTFToEigen(const tf::Quaternion &t, Eigen::Quaterniond &e);
61 
63 void quaternionEigenToTF(const Eigen::Quaterniond &e, tf::Quaternion &t);
64 
66 void transformTFToEigen(const tf::Transform &t, Eigen::Affine3d &e);
67 
69 void transformTFToEigen(const tf::Transform &t, Eigen::Isometry3d &e);
70 
72 void transformEigenToTF(const Eigen::Affine3d &e, tf::Transform &t);
73 
75 void transformEigenToTF(const Eigen::Isometry3d &e, tf::Transform &t);
76 
78 void vectorTFToEigen(const tf::Vector3 &t, Eigen::Vector3d &e);
79 
81 void vectorEigenToTF(const Eigen::Vector3d &e, tf::Vector3 &t);
82 
83 } // namespace tf
84 
85 #endif
void transformEigenToTF(const Eigen::Affine3d &e, tf::Transform &t)
Converts an Eigen Affine3d into a tf Transform.
Definition: tf_eigen.cpp:121
void poseEigenToTF(const Eigen::Affine3d &e, tf::Pose &t)
Converts an Eigen Affine3d into a tf Transform.
Definition: tf_eigen.cpp:60
void matrixTFToEigen(const tf::Matrix3x3 &t, Eigen::Matrix3d &e)
Converts a tf Matrix3x3 into an Eigen Quaternion.
Definition: tf_eigen.cpp:36
void transformTFToEigen(const tf::Transform &t, Eigen::Affine3d &e)
Converts a tf Transform into an Eigen Affine3d.
Definition: tf_eigen.cpp:111
void matrixEigenToTF(const Eigen::Matrix3d &e, tf::Matrix3x3 &t)
Converts an Eigen Quaternion into a tf Matrix3x3.
Definition: tf_eigen.cpp:43
void vectorEigenToTF(const Eigen::Vector3d &e, tf::Vector3 &t)
Converts an Eigen Vector3d into a tf Vector3.
Definition: tf_eigen.cpp:138
void poseTFToEigen(const tf::Pose &t, Eigen::Affine3d &e)
Converts a tf Pose into an Eigen Affine3d.
Definition: tf_eigen.cpp:50
void quaternionTFToEigen(const tf::Quaternion &t, Eigen::Quaterniond &e)
Converts a tf Quaternion into an Eigen Quaternion.
Definition: tf_eigen.cpp:70
void vectorTFToEigen(const tf::Vector3 &t, Eigen::Vector3d &e)
Converts a tf Vector3 into an Eigen Vector3d.
Definition: tf_eigen.cpp:131
void quaternionEigenToTF(const Eigen::Quaterniond &e, tf::Quaternion &t)
Converts an Eigen Quaternion into a tf Quaternion.
Definition: tf_eigen.cpp:75


tf_conversions
Author(s): Tully Foote
autogenerated on Mon Jun 10 2019 12:25:33