SubmapTexture.h 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265
  1. // Generated by gencpp from file cartographer_ros_msgs/SubmapTexture.msg
  2. // DO NOT EDIT!
  3. #ifndef CARTOGRAPHER_ROS_MSGS_MESSAGE_SUBMAPTEXTURE_H
  4. #define CARTOGRAPHER_ROS_MSGS_MESSAGE_SUBMAPTEXTURE_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 SubmapTexture_
  17. {
  18. typedef SubmapTexture_<ContainerAllocator> Type;
  19. SubmapTexture_()
  20. : cells()
  21. , width(0)
  22. , height(0)
  23. , resolution(0.0)
  24. , slice_pose() {
  25. }
  26. SubmapTexture_(const ContainerAllocator& _alloc)
  27. : cells(_alloc)
  28. , width(0)
  29. , height(0)
  30. , resolution(0.0)
  31. , slice_pose(_alloc) {
  32. (void)_alloc;
  33. }
  34. typedef std::vector<uint8_t, typename ContainerAllocator::template rebind<uint8_t>::other > _cells_type;
  35. _cells_type cells;
  36. typedef int32_t _width_type;
  37. _width_type width;
  38. typedef int32_t _height_type;
  39. _height_type height;
  40. typedef double _resolution_type;
  41. _resolution_type resolution;
  42. typedef ::geometry_msgs::Pose_<ContainerAllocator> _slice_pose_type;
  43. _slice_pose_type slice_pose;
  44. typedef boost::shared_ptr< ::cartographer_ros_msgs::SubmapTexture_<ContainerAllocator> > Ptr;
  45. typedef boost::shared_ptr< ::cartographer_ros_msgs::SubmapTexture_<ContainerAllocator> const> ConstPtr;
  46. }; // struct SubmapTexture_
  47. typedef ::cartographer_ros_msgs::SubmapTexture_<std::allocator<void> > SubmapTexture;
  48. typedef boost::shared_ptr< ::cartographer_ros_msgs::SubmapTexture > SubmapTexturePtr;
  49. typedef boost::shared_ptr< ::cartographer_ros_msgs::SubmapTexture const> SubmapTextureConstPtr;
  50. // constants requiring out of line definition
  51. template<typename ContainerAllocator>
  52. std::ostream& operator<<(std::ostream& s, const ::cartographer_ros_msgs::SubmapTexture_<ContainerAllocator> & v)
  53. {
  54. ros::message_operations::Printer< ::cartographer_ros_msgs::SubmapTexture_<ContainerAllocator> >::stream(s, "", v);
  55. return s;
  56. }
  57. } // namespace cartographer_ros_msgs
  58. namespace ros
  59. {
  60. namespace message_traits
  61. {
  62. // BOOLTRAITS {'IsFixedSize': False, 'IsMessage': True, 'HasHeader': False}
  63. // {'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']}
  64. // !!!!!!!!!!! ['__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']
  65. template <class ContainerAllocator>
  66. struct IsFixedSize< ::cartographer_ros_msgs::SubmapTexture_<ContainerAllocator> >
  67. : FalseType
  68. { };
  69. template <class ContainerAllocator>
  70. struct IsFixedSize< ::cartographer_ros_msgs::SubmapTexture_<ContainerAllocator> const>
  71. : FalseType
  72. { };
  73. template <class ContainerAllocator>
  74. struct IsMessage< ::cartographer_ros_msgs::SubmapTexture_<ContainerAllocator> >
  75. : TrueType
  76. { };
  77. template <class ContainerAllocator>
  78. struct IsMessage< ::cartographer_ros_msgs::SubmapTexture_<ContainerAllocator> const>
  79. : TrueType
  80. { };
  81. template <class ContainerAllocator>
  82. struct HasHeader< ::cartographer_ros_msgs::SubmapTexture_<ContainerAllocator> >
  83. : FalseType
  84. { };
  85. template <class ContainerAllocator>
  86. struct HasHeader< ::cartographer_ros_msgs::SubmapTexture_<ContainerAllocator> const>
  87. : FalseType
  88. { };
  89. template<class ContainerAllocator>
  90. struct MD5Sum< ::cartographer_ros_msgs::SubmapTexture_<ContainerAllocator> >
  91. {
  92. static const char* value()
  93. {
  94. return "26187fc048d2d8e578b6c781f3b53158";
  95. }
  96. static const char* value(const ::cartographer_ros_msgs::SubmapTexture_<ContainerAllocator>&) { return value(); }
  97. static const uint64_t static_value1 = 0x26187fc048d2d8e5ULL;
  98. static const uint64_t static_value2 = 0x78b6c781f3b53158ULL;
  99. };
  100. template<class ContainerAllocator>
  101. struct DataType< ::cartographer_ros_msgs::SubmapTexture_<ContainerAllocator> >
  102. {
  103. static const char* value()
  104. {
  105. return "cartographer_ros_msgs/SubmapTexture";
  106. }
  107. static const char* value(const ::cartographer_ros_msgs::SubmapTexture_<ContainerAllocator>&) { return value(); }
  108. };
  109. template<class ContainerAllocator>
  110. struct Definition< ::cartographer_ros_msgs::SubmapTexture_<ContainerAllocator> >
  111. {
  112. static const char* value()
  113. {
  114. return "# Copyright 2017 The Cartographer Authors\n\
  115. #\n\
  116. # Licensed under the Apache License, Version 2.0 (the \"License\");\n\
  117. # you may not use this file except in compliance with the License.\n\
  118. # You may obtain a copy of the License at\n\
  119. #\n\
  120. # http://www.apache.org/licenses/LICENSE-2.0\n\
  121. #\n\
  122. # Unless required by applicable law or agreed to in writing, software\n\
  123. # distributed under the License is distributed on an \"AS IS\" BASIS,\n\
  124. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n\
  125. # See the License for the specific language governing permissions and\n\
  126. # limitations under the License.\n\
  127. \n\
  128. uint8[] cells\n\
  129. int32 width\n\
  130. int32 height\n\
  131. float64 resolution\n\
  132. geometry_msgs/Pose slice_pose\n\
  133. \n\
  134. ================================================================================\n\
  135. MSG: geometry_msgs/Pose\n\
  136. # A representation of pose in free space, composed of position and orientation. \n\
  137. Point position\n\
  138. Quaternion orientation\n\
  139. \n\
  140. ================================================================================\n\
  141. MSG: geometry_msgs/Point\n\
  142. # This contains the position of a point in free space\n\
  143. float64 x\n\
  144. float64 y\n\
  145. float64 z\n\
  146. \n\
  147. ================================================================================\n\
  148. MSG: geometry_msgs/Quaternion\n\
  149. # This represents an orientation in free space in quaternion form.\n\
  150. \n\
  151. float64 x\n\
  152. float64 y\n\
  153. float64 z\n\
  154. float64 w\n\
  155. ";
  156. }
  157. static const char* value(const ::cartographer_ros_msgs::SubmapTexture_<ContainerAllocator>&) { return value(); }
  158. };
  159. } // namespace message_traits
  160. } // namespace ros
  161. namespace ros
  162. {
  163. namespace serialization
  164. {
  165. template<class ContainerAllocator> struct Serializer< ::cartographer_ros_msgs::SubmapTexture_<ContainerAllocator> >
  166. {
  167. template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
  168. {
  169. stream.next(m.cells);
  170. stream.next(m.width);
  171. stream.next(m.height);
  172. stream.next(m.resolution);
  173. stream.next(m.slice_pose);
  174. }
  175. ROS_DECLARE_ALLINONE_SERIALIZER
  176. }; // struct SubmapTexture_
  177. } // namespace serialization
  178. } // namespace ros
  179. namespace ros
  180. {
  181. namespace message_operations
  182. {
  183. template<class ContainerAllocator>
  184. struct Printer< ::cartographer_ros_msgs::SubmapTexture_<ContainerAllocator> >
  185. {
  186. template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::cartographer_ros_msgs::SubmapTexture_<ContainerAllocator>& v)
  187. {
  188. s << indent << "cells[]" << std::endl;
  189. for (size_t i = 0; i < v.cells.size(); ++i)
  190. {
  191. s << indent << " cells[" << i << "]: ";
  192. Printer<uint8_t>::stream(s, indent + " ", v.cells[i]);
  193. }
  194. s << indent << "width: ";
  195. Printer<int32_t>::stream(s, indent + " ", v.width);
  196. s << indent << "height: ";
  197. Printer<int32_t>::stream(s, indent + " ", v.height);
  198. s << indent << "resolution: ";
  199. Printer<double>::stream(s, indent + " ", v.resolution);
  200. s << indent << "slice_pose: ";
  201. s << std::endl;
  202. Printer< ::geometry_msgs::Pose_<ContainerAllocator> >::stream(s, indent + " ", v.slice_pose);
  203. }
  204. };
  205. } // namespace message_operations
  206. } // namespace ros
  207. #endif // CARTOGRAPHER_ROS_MSGS_MESSAGE_SUBMAPTEXTURE_H