kdl_msg.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 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  * Author: Adam Leeper
30  */
31 
32 #ifndef CONVERSIONS_KDL_MSG_H
33 #define CONVERSIONS_KDL_MSG_H
34 
35 #include "kdl/frames.hpp"
36 #include <geometry_msgs/Point.h>
37 #include <geometry_msgs/Pose.h>
38 #include <geometry_msgs/Quaternion.h>
39 #include <geometry_msgs/Transform.h>
40 #include <geometry_msgs/Twist.h>
41 #include <geometry_msgs/Vector3.h>
42 #include <geometry_msgs/Wrench.h>
43 
44 #include <ros/macros.h>
45 
46 namespace tf {
48 
50 void pointMsgToKDL(const geometry_msgs::Point &m, KDL::Vector &k);
51 
53 void pointKDLToMsg(const KDL::Vector &k, geometry_msgs::Point &m);
54 
56 void poseMsgToKDL(const geometry_msgs::Pose &m, KDL::Frame &k);
57 
59 void poseKDLToMsg(const KDL::Frame &k, geometry_msgs::Pose &m);
60 
62 void quaternionMsgToKDL(const geometry_msgs::Quaternion &m, KDL::Rotation &k);
63 
65 void quaternionKDLToMsg(const KDL::Rotation &k, geometry_msgs::Quaternion &m);
66 
68 void transformMsgToKDL(const geometry_msgs::Transform &m, KDL::Frame &k);
69 
71 void transformKDLToMsg(const KDL::Frame &k, geometry_msgs::Transform &m);
72 
74 void twistMsgToKDL(const geometry_msgs::Twist &m, KDL::Twist &k);
75 
77 void twistKDLToMsg(const KDL::Twist &k, geometry_msgs::Twist &m);
78 
80 void vectorMsgToKDL(const geometry_msgs::Vector3 &m, KDL::Vector &k);
81 
83 void vectorKDLToMsg(const KDL::Vector &k, geometry_msgs::Vector3 &m);
84 
86 void wrenchMsgToKDL(const geometry_msgs::Wrench &m, KDL::Wrench &k);
87 
89 void wrenchKDLToMsg(const KDL::Wrench &k, geometry_msgs::Wrench &m);
90 
91 
92 //Deprecated methods use above:
94 ROS_DEPRECATED void PoseMsgToKDL(const geometry_msgs::Pose &m, KDL::Frame &k);
95 
97 ROS_DEPRECATED void PoseKDLToMsg(const KDL::Frame &k, geometry_msgs::Pose &m);
98 
99 
100 
102 ROS_DEPRECATED void TwistMsgToKDL(const geometry_msgs::Twist &m, KDL::Twist &k);
103 
105 ROS_DEPRECATED void TwistKDLToMsg(const KDL::Twist &k, geometry_msgs::Twist &m);
106 
107 
108 
109 }
110 
111 
112 #endif
113 
114 
115 
tf::pointKDLToMsg
void pointKDLToMsg(const KDL::Vector &k, geometry_msgs::Point &m)
Converts a KDL Vector into a geometry_msgs Vector3.
Definition: kdl_msg.cpp:41
tf::twistKDLToMsg
void twistKDLToMsg(const KDL::Twist &k, geometry_msgs::Twist &m)
Converts a KDL Twist into a Twist message.
Definition: kdl_msg.cpp:94
tf::poseMsgToKDL
void poseMsgToKDL(const geometry_msgs::Pose &m, KDL::Frame &k)
Converts a Pose message into a KDL Frame.
Definition: kdl_msg.cpp:48
tf::vectorKDLToMsg
void vectorKDLToMsg(const KDL::Vector &k, geometry_msgs::Vector3 &m)
Converts a KDL Vector into a Vector3 message.
Definition: kdl_msg.cpp:121
ROS_DEPRECATED
#define ROS_DEPRECATED
tf::TwistMsgToKDL
ROS_DEPRECATED void TwistMsgToKDL(const geometry_msgs::Twist &m, KDL::Twist &k)
Converts a Twist message into a KDL Twist.
Definition: kdl_msg.cpp:158
tf::PoseKDLToMsg
ROS_DEPRECATED void PoseKDLToMsg(const KDL::Frame &k, geometry_msgs::Pose &m)
Converts a KDL Frame into a Pose message.
Definition: kdl_msg.cpp:155
tf::quaternionMsgToKDL
void quaternionMsgToKDL(const geometry_msgs::Quaternion &m, KDL::Rotation &k)
Converts a quaternion message into a KDL Rotation.
Definition: kdl_msg.cpp:66
tf::transformMsgToKDL
void transformMsgToKDL(const geometry_msgs::Transform &m, KDL::Frame &k)
Converts a Transform message into a KDL Frame.
Definition: kdl_msg.cpp:76
tf::PoseMsgToKDL
ROS_DEPRECATED void PoseMsgToKDL(const geometry_msgs::Pose &m, KDL::Frame &k)
Converts a Pose message into a KDL Frame.
Definition: kdl_msg.cpp:152
tf::twistMsgToKDL
void twistMsgToKDL(const geometry_msgs::Twist &m, KDL::Twist &k)
Converts a Twist message into a KDL Twist.
Definition: kdl_msg.cpp:104
tf::quaternionKDLToMsg
void quaternionKDLToMsg(const KDL::Rotation &k, geometry_msgs::Quaternion &m)
Converts a KDL Rotation into a message quaternion.
Definition: kdl_msg.cpp:71
tf::vectorMsgToKDL
void vectorMsgToKDL(const geometry_msgs::Vector3 &m, KDL::Vector &k)
Converts a Vector3 message into a KDL Vector.
Definition: kdl_msg.cpp:114
tf::TwistKDLToMsg
ROS_DEPRECATED void TwistKDLToMsg(const KDL::Twist &k, geometry_msgs::Twist &m)
Converts a KDL Twist into a Twist message.
Definition: kdl_msg.cpp:161
tf
Definition: kdl_msg.h:46
tf::pointMsgToKDL
void pointMsgToKDL(const geometry_msgs::Point &m, KDL::Vector &k)
Conversion functions from/to the corresponding KDL and geometry_msgs types.
Definition: kdl_msg.cpp:34
tf::wrenchMsgToKDL
void wrenchMsgToKDL(const geometry_msgs::Wrench &m, KDL::Wrench &k)
Converts a Wrench message into a KDL Wrench.
Definition: kdl_msg.cpp:128
macros.h
tf::poseKDLToMsg
void poseKDLToMsg(const KDL::Frame &k, geometry_msgs::Pose &m)
Converts a KDL Frame into a Pose message.
Definition: kdl_msg.cpp:57
tf::transformKDLToMsg
void transformKDLToMsg(const KDL::Frame &k, geometry_msgs::Transform &m)
Converts a KDL Frame into a Transform message.
Definition: kdl_msg.cpp:85
tf::wrenchKDLToMsg
void wrenchKDLToMsg(const KDL::Wrench &k, geometry_msgs::Wrench &m)
Converts a KDL Wrench into a Wrench message.
Definition: kdl_msg.cpp:138


kdl_conversions
Author(s): Adam Leeper
autogenerated on Sat Aug 19 2023 02:38:06