update file data_convert.h
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
namespace tf3
|
||||
{
|
||||
|
||||
robot::Time convertTime(const tf3::Time& time)
|
||||
inline robot::Time convertTime(const tf3::Time& time)
|
||||
{
|
||||
robot::Time time_tmp;
|
||||
time_tmp.sec = time.sec;
|
||||
@@ -19,7 +19,7 @@ namespace tf3
|
||||
return time_tmp;
|
||||
}
|
||||
|
||||
tf3::Time convertTime(const robot::Time& time)
|
||||
inline tf3::Time convertTime(const robot::Time& time)
|
||||
{
|
||||
tf3::Time time_tmp;
|
||||
time_tmp.sec = time.sec;
|
||||
@@ -27,18 +27,18 @@ namespace tf3
|
||||
return time_tmp;
|
||||
}
|
||||
|
||||
tf3::Quaternion convertQuaternion(const geometry_msgs::Quaternion& q)
|
||||
inline tf3::Quaternion convertQuaternion(const geometry_msgs::Quaternion& q)
|
||||
{
|
||||
tf3::Quaternion out(q.x,q.y,q.z,q.w);
|
||||
return out;
|
||||
}
|
||||
|
||||
geometry_msgs::Quaternion convertQuaternion(const tf3::Quaternion& q)
|
||||
inline geometry_msgs::Quaternion convertQuaternion(const tf3::Quaternion& q)
|
||||
{
|
||||
return geometry_msgs::Quaternion(q.x(),q.y(),q.z(),q.w());
|
||||
}
|
||||
|
||||
tf3::Transform convertToTransform(const tf3::TransformStampedMsg& msg)
|
||||
inline tf3::Transform convertToTransform(const tf3::TransformStampedMsg& msg)
|
||||
{
|
||||
tf3::Transform out;
|
||||
|
||||
@@ -59,7 +59,7 @@ namespace tf3
|
||||
return out;
|
||||
}
|
||||
|
||||
tf3::Transform convertToTransform(const geometry_msgs::TransformStamped& msg)
|
||||
inline tf3::Transform convertToTransform(const geometry_msgs::TransformStamped& msg)
|
||||
{
|
||||
tf3::Transform out;
|
||||
|
||||
@@ -81,7 +81,7 @@ namespace tf3
|
||||
}
|
||||
|
||||
|
||||
tf3::TransformStampedMsg convertToTransformStampedMsg(const geometry_msgs::TransformStamped& msg)
|
||||
inline tf3::TransformStampedMsg convertToTransformStampedMsg(const geometry_msgs::TransformStamped& msg)
|
||||
{
|
||||
tf3::TransformStampedMsg out;
|
||||
out.header.seq = msg.header.seq;
|
||||
@@ -98,7 +98,7 @@ namespace tf3
|
||||
|
||||
return out;
|
||||
}
|
||||
geometry_msgs::TransformStamped convertToTransformStamped(const tf3::TransformStampedMsg& msg)
|
||||
inline geometry_msgs::TransformStamped convertToTransformStamped(const tf3::TransformStampedMsg& msg)
|
||||
{
|
||||
geometry_msgs::TransformStamped out;
|
||||
out.header.seq = msg.header.seq;
|
||||
|
||||
Reference in New Issue
Block a user