AttributedPoint.h
Go to the documentation of this file.
1 
18 #pragma once
19 
20 #include <geometry_msgs/PoseWithCovariance.h>
21 
22 namespace ASR
23 {
24 
25 
27  std::string objectType;
28  geometry_msgs::Pose pose;
29 
30  AttributedPoint(std::string type, geometry_msgs::Pose p)
31  {
32  objectType = type;
33  pose=p;
34  }
35 
36  AttributedPoint(std::string type, float point_x, float point_y, float point_z,
37  float quaternion_w, float quaternion_x, float quaternion_y, float quaternion_z)
38  {
39  objectType = type;
40 
41  geometry_msgs::Point point;
42  point.x = point_x;
43  point.y = point_y;
44  point.z = point_z;
45 
46  geometry_msgs::Quaternion q;
47  q.w = quaternion_w;
48  q.x = quaternion_x;
49  q.y = quaternion_y;
50  q.z = quaternion_z;
51 
52  pose = geometry_msgs::Pose();
53  pose.position = point;
54  pose.orientation = q;
55  }
56 };
57 
58 }
geometry_msgs::Pose pose
AttributedPoint(std::string type, geometry_msgs::Pose p)
AttributedPoint(std::string type, float point_x, float point_y, float point_z, float quaternion_w, float quaternion_x, float quaternion_y, float quaternion_z)


asr_recognizer_prediction_psm
Author(s): Braun Kai, Meißner Pascal
autogenerated on Wed Feb 19 2020 03:31:28