LandmarkEntry.h 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252
  1. // Generated by gencpp from file cartographer_ros_msgs/LandmarkEntry.msg
  2. // DO NOT EDIT!
  3. #ifndef CARTOGRAPHER_ROS_MSGS_MESSAGE_LANDMARKENTRY_H
  4. #define CARTOGRAPHER_ROS_MSGS_MESSAGE_LANDMARKENTRY_H
  5. #include <string>
  6. #include <vector>
  7. #include <map>
  8. #include <ros/types.h>
  9. #include <ros/serialization.h>
  10. #include <ros/builtin_message_traits.h>
  11. #include <ros/message_operations.h>
  12. #include <geometry_msgs/Pose.h>
  13. namespace cartographer_ros_msgs
  14. {
  15. template <class ContainerAllocator>
  16. struct LandmarkEntry_
  17. {
  18. typedef LandmarkEntry_<ContainerAllocator> Type;
  19. LandmarkEntry_()
  20. : id()
  21. , tracking_from_landmark_transform()
  22. , translation_weight(0.0)
  23. , rotation_weight(0.0) {
  24. }
  25. LandmarkEntry_(const ContainerAllocator& _alloc)
  26. : id(_alloc)
  27. , tracking_from_landmark_transform(_alloc)
  28. , translation_weight(0.0)
  29. , rotation_weight(0.0) {
  30. (void)_alloc;
  31. }
  32. typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _id_type;
  33. _id_type id;
  34. typedef ::geometry_msgs::Pose_<ContainerAllocator> _tracking_from_landmark_transform_type;
  35. _tracking_from_landmark_transform_type tracking_from_landmark_transform;
  36. typedef double _translation_weight_type;
  37. _translation_weight_type translation_weight;
  38. typedef double _rotation_weight_type;
  39. _rotation_weight_type rotation_weight;
  40. typedef boost::shared_ptr< ::cartographer_ros_msgs::LandmarkEntry_<ContainerAllocator> > Ptr;
  41. typedef boost::shared_ptr< ::cartographer_ros_msgs::LandmarkEntry_<ContainerAllocator> const> ConstPtr;
  42. }; // struct LandmarkEntry_
  43. typedef ::cartographer_ros_msgs::LandmarkEntry_<std::allocator<void> > LandmarkEntry;
  44. typedef boost::shared_ptr< ::cartographer_ros_msgs::LandmarkEntry > LandmarkEntryPtr;
  45. typedef boost::shared_ptr< ::cartographer_ros_msgs::LandmarkEntry const> LandmarkEntryConstPtr;
  46. // constants requiring out of line definition
  47. template<typename ContainerAllocator>
  48. std::ostream& operator<<(std::ostream& s, const ::cartographer_ros_msgs::LandmarkEntry_<ContainerAllocator> & v)
  49. {
  50. ros::message_operations::Printer< ::cartographer_ros_msgs::LandmarkEntry_<ContainerAllocator> >::stream(s, "", v);
  51. return s;
  52. }
  53. } // namespace cartographer_ros_msgs
  54. namespace ros
  55. {
  56. namespace message_traits
  57. {
  58. // BOOLTRAITS {'IsFixedSize': False, 'IsMessage': True, 'HasHeader': False}
  59. // {'std_msgs': ['/opt/ros/melodic/share/std_msgs/cmake/../msg'], 'cartographer_ros_msgs': ['/home/youchen/Documents/catkin_ws/src/cartographer_ros/cartographer_ros_msgs/msg'], 'geometry_msgs': ['/opt/ros/melodic/share/geometry_msgs/cmake/../msg']}
  60. // !!!!!!!!!!! ['__class__', '__delattr__', '__dict__', '__doc__', '__eq__', '__format__', '__getattribute__', '__hash__', '__init__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', '_parsed_fields', 'constants', 'fields', 'full_name', 'has_header', 'header_present', 'names', 'package', 'parsed_fields', 'short_name', 'text', 'types']
  61. template <class ContainerAllocator>
  62. struct IsFixedSize< ::cartographer_ros_msgs::LandmarkEntry_<ContainerAllocator> >
  63. : FalseType
  64. { };
  65. template <class ContainerAllocator>
  66. struct IsFixedSize< ::cartographer_ros_msgs::LandmarkEntry_<ContainerAllocator> const>
  67. : FalseType
  68. { };
  69. template <class ContainerAllocator>
  70. struct IsMessage< ::cartographer_ros_msgs::LandmarkEntry_<ContainerAllocator> >
  71. : TrueType
  72. { };
  73. template <class ContainerAllocator>
  74. struct IsMessage< ::cartographer_ros_msgs::LandmarkEntry_<ContainerAllocator> const>
  75. : TrueType
  76. { };
  77. template <class ContainerAllocator>
  78. struct HasHeader< ::cartographer_ros_msgs::LandmarkEntry_<ContainerAllocator> >
  79. : FalseType
  80. { };
  81. template <class ContainerAllocator>
  82. struct HasHeader< ::cartographer_ros_msgs::LandmarkEntry_<ContainerAllocator> const>
  83. : FalseType
  84. { };
  85. template<class ContainerAllocator>
  86. struct MD5Sum< ::cartographer_ros_msgs::LandmarkEntry_<ContainerAllocator> >
  87. {
  88. static const char* value()
  89. {
  90. return "133f8dd7259f83a87eb4d78b301c0b70";
  91. }
  92. static const char* value(const ::cartographer_ros_msgs::LandmarkEntry_<ContainerAllocator>&) { return value(); }
  93. static const uint64_t static_value1 = 0x133f8dd7259f83a8ULL;
  94. static const uint64_t static_value2 = 0x7eb4d78b301c0b70ULL;
  95. };
  96. template<class ContainerAllocator>
  97. struct DataType< ::cartographer_ros_msgs::LandmarkEntry_<ContainerAllocator> >
  98. {
  99. static const char* value()
  100. {
  101. return "cartographer_ros_msgs/LandmarkEntry";
  102. }
  103. static const char* value(const ::cartographer_ros_msgs::LandmarkEntry_<ContainerAllocator>&) { return value(); }
  104. };
  105. template<class ContainerAllocator>
  106. struct Definition< ::cartographer_ros_msgs::LandmarkEntry_<ContainerAllocator> >
  107. {
  108. static const char* value()
  109. {
  110. return "# 2018 The Cartographer Authors\n\
  111. #\n\
  112. # Licensed under the Apache License, Version 2.0 (the \"License\");\n\
  113. # you may not use this file except in compliance with the License.\n\
  114. # You may obtain a copy of the License at\n\
  115. #\n\
  116. # http://www.apache.org/licenses/LICENSE-2.0\n\
  117. #\n\
  118. # Unless required by applicable law or agreed to in writing, software\n\
  119. # distributed under the License is distributed on an \"AS IS\" BASIS,\n\
  120. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n\
  121. # See the License for the specific language governing permissions and\n\
  122. # limitations under the License.\n\
  123. \n\
  124. string id\n\
  125. geometry_msgs/Pose tracking_from_landmark_transform\n\
  126. float64 translation_weight\n\
  127. float64 rotation_weight\n\
  128. \n\
  129. ================================================================================\n\
  130. MSG: geometry_msgs/Pose\n\
  131. # A representation of pose in free space, composed of position and orientation. \n\
  132. Point position\n\
  133. Quaternion orientation\n\
  134. \n\
  135. ================================================================================\n\
  136. MSG: geometry_msgs/Point\n\
  137. # This contains the position of a point in free space\n\
  138. float64 x\n\
  139. float64 y\n\
  140. float64 z\n\
  141. \n\
  142. ================================================================================\n\
  143. MSG: geometry_msgs/Quaternion\n\
  144. # This represents an orientation in free space in quaternion form.\n\
  145. \n\
  146. float64 x\n\
  147. float64 y\n\
  148. float64 z\n\
  149. float64 w\n\
  150. ";
  151. }
  152. static const char* value(const ::cartographer_ros_msgs::LandmarkEntry_<ContainerAllocator>&) { return value(); }
  153. };
  154. } // namespace message_traits
  155. } // namespace ros
  156. namespace ros
  157. {
  158. namespace serialization
  159. {
  160. template<class ContainerAllocator> struct Serializer< ::cartographer_ros_msgs::LandmarkEntry_<ContainerAllocator> >
  161. {
  162. template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
  163. {
  164. stream.next(m.id);
  165. stream.next(m.tracking_from_landmark_transform);
  166. stream.next(m.translation_weight);
  167. stream.next(m.rotation_weight);
  168. }
  169. ROS_DECLARE_ALLINONE_SERIALIZER
  170. }; // struct LandmarkEntry_
  171. } // namespace serialization
  172. } // namespace ros
  173. namespace ros
  174. {
  175. namespace message_operations
  176. {
  177. template<class ContainerAllocator>
  178. struct Printer< ::cartographer_ros_msgs::LandmarkEntry_<ContainerAllocator> >
  179. {
  180. template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::cartographer_ros_msgs::LandmarkEntry_<ContainerAllocator>& v)
  181. {
  182. s << indent << "id: ";
  183. Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.id);
  184. s << indent << "tracking_from_landmark_transform: ";
  185. s << std::endl;
  186. Printer< ::geometry_msgs::Pose_<ContainerAllocator> >::stream(s, indent + " ", v.tracking_from_landmark_transform);
  187. s << indent << "translation_weight: ";
  188. Printer<double>::stream(s, indent + " ", v.translation_weight);
  189. s << indent << "rotation_weight: ";
  190. Printer<double>::stream(s, indent + " ", v.rotation_weight);
  191. }
  192. };
  193. } // namespace message_operations
  194. } // namespace ros
  195. #endif // CARTOGRAPHER_ROS_MSGS_MESSAGE_LANDMARKENTRY_H