utility.cpp
Go to the documentation of this file.
1 
19 #include <ros/ros.h>
20 namespace pose_prediction_ism
21 {
22  ISM::Point attributedPoint2ismPoint(asr_msgs::AsrAttributedPoint attributedPoint)
23  {
24  ISM::Point p;
25  p.eigen.x() = attributedPoint.pose.position.x;
26  p.eigen.y() = attributedPoint.pose.position.y;
27  p.eigen.z() = attributedPoint.pose.position.z;
28  return p;
29  }
30  asr_msgs::AsrAttributedPoint ismPosePtr2attributedPoint(ISM::PosePtr ismPosePtr,
31  std::string type,
32  std::string identifier )
33  {
34  asr_msgs::AsrAttributedPoint attributedPoint;
35  attributedPoint.type = type;
36  attributedPoint.identifier = identifier;
37  attributedPoint.pose.position.x = ismPosePtr->point->eigen.x();
38  attributedPoint.pose.position.y = ismPosePtr->point->eigen.y();
39  attributedPoint.pose.position.z = ismPosePtr->point->eigen.z();
40  attributedPoint.pose.orientation.w = ismPosePtr->quat->eigen.w();
41  attributedPoint.pose.orientation.x = ismPosePtr->quat->eigen.x();
42  attributedPoint.pose.orientation.y = ismPosePtr->quat->eigen.y();
43  attributedPoint.pose.orientation.z = ismPosePtr->quat->eigen.z();
44  return attributedPoint;
45  }
46 }
ISM::Point attributedPoint2ismPoint(asr_msgs::AsrAttributedPoint attributedPoint)
Definition: utility.cpp:22
asr_msgs::AsrAttributedPoint ismPosePtr2attributedPoint(ISM::PosePtr ismPosePtr, std::string type, std::string identifier)
Definition: utility.cpp:30


asr_lib_pose_prediction_ism
Author(s): Heizmann Heinrich, Heller Florian, Meißner Pascal, Stöckle Patrick
autogenerated on Thu Jan 9 2020 07:19:57