TrajectoryOptions.h 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357
  1. // Generated by gencpp from file cartographer_ros_msgs/TrajectoryOptions.msg
  2. // DO NOT EDIT!
  3. #ifndef CARTOGRAPHER_ROS_MSGS_MESSAGE_TRAJECTORYOPTIONS_H
  4. #define CARTOGRAPHER_ROS_MSGS_MESSAGE_TRAJECTORYOPTIONS_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. namespace cartographer_ros_msgs
  13. {
  14. template <class ContainerAllocator>
  15. struct TrajectoryOptions_
  16. {
  17. typedef TrajectoryOptions_<ContainerAllocator> Type;
  18. TrajectoryOptions_()
  19. : tracking_frame()
  20. , published_frame()
  21. , odom_frame()
  22. , provide_odom_frame(false)
  23. , use_odometry(false)
  24. , use_nav_sat(false)
  25. , use_landmarks(false)
  26. , publish_frame_projected_to_2d(false)
  27. , num_laser_scans(0)
  28. , num_multi_echo_laser_scans(0)
  29. , num_subdivisions_per_laser_scan(0)
  30. , num_point_clouds(0)
  31. , rangefinder_sampling_ratio(0.0)
  32. , odometry_sampling_ratio(0.0)
  33. , fixed_frame_pose_sampling_ratio(0.0)
  34. , imu_sampling_ratio(0.0)
  35. , landmarks_sampling_ratio(0.0)
  36. , trajectory_builder_options_proto() {
  37. }
  38. TrajectoryOptions_(const ContainerAllocator& _alloc)
  39. : tracking_frame(_alloc)
  40. , published_frame(_alloc)
  41. , odom_frame(_alloc)
  42. , provide_odom_frame(false)
  43. , use_odometry(false)
  44. , use_nav_sat(false)
  45. , use_landmarks(false)
  46. , publish_frame_projected_to_2d(false)
  47. , num_laser_scans(0)
  48. , num_multi_echo_laser_scans(0)
  49. , num_subdivisions_per_laser_scan(0)
  50. , num_point_clouds(0)
  51. , rangefinder_sampling_ratio(0.0)
  52. , odometry_sampling_ratio(0.0)
  53. , fixed_frame_pose_sampling_ratio(0.0)
  54. , imu_sampling_ratio(0.0)
  55. , landmarks_sampling_ratio(0.0)
  56. , trajectory_builder_options_proto(_alloc) {
  57. (void)_alloc;
  58. }
  59. typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _tracking_frame_type;
  60. _tracking_frame_type tracking_frame;
  61. typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _published_frame_type;
  62. _published_frame_type published_frame;
  63. typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _odom_frame_type;
  64. _odom_frame_type odom_frame;
  65. typedef uint8_t _provide_odom_frame_type;
  66. _provide_odom_frame_type provide_odom_frame;
  67. typedef uint8_t _use_odometry_type;
  68. _use_odometry_type use_odometry;
  69. typedef uint8_t _use_nav_sat_type;
  70. _use_nav_sat_type use_nav_sat;
  71. typedef uint8_t _use_landmarks_type;
  72. _use_landmarks_type use_landmarks;
  73. typedef uint8_t _publish_frame_projected_to_2d_type;
  74. _publish_frame_projected_to_2d_type publish_frame_projected_to_2d;
  75. typedef int32_t _num_laser_scans_type;
  76. _num_laser_scans_type num_laser_scans;
  77. typedef int32_t _num_multi_echo_laser_scans_type;
  78. _num_multi_echo_laser_scans_type num_multi_echo_laser_scans;
  79. typedef int32_t _num_subdivisions_per_laser_scan_type;
  80. _num_subdivisions_per_laser_scan_type num_subdivisions_per_laser_scan;
  81. typedef int32_t _num_point_clouds_type;
  82. _num_point_clouds_type num_point_clouds;
  83. typedef double _rangefinder_sampling_ratio_type;
  84. _rangefinder_sampling_ratio_type rangefinder_sampling_ratio;
  85. typedef double _odometry_sampling_ratio_type;
  86. _odometry_sampling_ratio_type odometry_sampling_ratio;
  87. typedef double _fixed_frame_pose_sampling_ratio_type;
  88. _fixed_frame_pose_sampling_ratio_type fixed_frame_pose_sampling_ratio;
  89. typedef double _imu_sampling_ratio_type;
  90. _imu_sampling_ratio_type imu_sampling_ratio;
  91. typedef double _landmarks_sampling_ratio_type;
  92. _landmarks_sampling_ratio_type landmarks_sampling_ratio;
  93. typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _trajectory_builder_options_proto_type;
  94. _trajectory_builder_options_proto_type trajectory_builder_options_proto;
  95. typedef boost::shared_ptr< ::cartographer_ros_msgs::TrajectoryOptions_<ContainerAllocator> > Ptr;
  96. typedef boost::shared_ptr< ::cartographer_ros_msgs::TrajectoryOptions_<ContainerAllocator> const> ConstPtr;
  97. }; // struct TrajectoryOptions_
  98. typedef ::cartographer_ros_msgs::TrajectoryOptions_<std::allocator<void> > TrajectoryOptions;
  99. typedef boost::shared_ptr< ::cartographer_ros_msgs::TrajectoryOptions > TrajectoryOptionsPtr;
  100. typedef boost::shared_ptr< ::cartographer_ros_msgs::TrajectoryOptions const> TrajectoryOptionsConstPtr;
  101. // constants requiring out of line definition
  102. template<typename ContainerAllocator>
  103. std::ostream& operator<<(std::ostream& s, const ::cartographer_ros_msgs::TrajectoryOptions_<ContainerAllocator> & v)
  104. {
  105. ros::message_operations::Printer< ::cartographer_ros_msgs::TrajectoryOptions_<ContainerAllocator> >::stream(s, "", v);
  106. return s;
  107. }
  108. } // namespace cartographer_ros_msgs
  109. namespace ros
  110. {
  111. namespace message_traits
  112. {
  113. // BOOLTRAITS {'IsFixedSize': False, 'IsMessage': True, 'HasHeader': False}
  114. // {'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']}
  115. // !!!!!!!!!!! ['__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']
  116. template <class ContainerAllocator>
  117. struct IsFixedSize< ::cartographer_ros_msgs::TrajectoryOptions_<ContainerAllocator> >
  118. : FalseType
  119. { };
  120. template <class ContainerAllocator>
  121. struct IsFixedSize< ::cartographer_ros_msgs::TrajectoryOptions_<ContainerAllocator> const>
  122. : FalseType
  123. { };
  124. template <class ContainerAllocator>
  125. struct IsMessage< ::cartographer_ros_msgs::TrajectoryOptions_<ContainerAllocator> >
  126. : TrueType
  127. { };
  128. template <class ContainerAllocator>
  129. struct IsMessage< ::cartographer_ros_msgs::TrajectoryOptions_<ContainerAllocator> const>
  130. : TrueType
  131. { };
  132. template <class ContainerAllocator>
  133. struct HasHeader< ::cartographer_ros_msgs::TrajectoryOptions_<ContainerAllocator> >
  134. : FalseType
  135. { };
  136. template <class ContainerAllocator>
  137. struct HasHeader< ::cartographer_ros_msgs::TrajectoryOptions_<ContainerAllocator> const>
  138. : FalseType
  139. { };
  140. template<class ContainerAllocator>
  141. struct MD5Sum< ::cartographer_ros_msgs::TrajectoryOptions_<ContainerAllocator> >
  142. {
  143. static const char* value()
  144. {
  145. return "7eda9b62c16c18fa1563587e73501e47";
  146. }
  147. static const char* value(const ::cartographer_ros_msgs::TrajectoryOptions_<ContainerAllocator>&) { return value(); }
  148. static const uint64_t static_value1 = 0x7eda9b62c16c18faULL;
  149. static const uint64_t static_value2 = 0x1563587e73501e47ULL;
  150. };
  151. template<class ContainerAllocator>
  152. struct DataType< ::cartographer_ros_msgs::TrajectoryOptions_<ContainerAllocator> >
  153. {
  154. static const char* value()
  155. {
  156. return "cartographer_ros_msgs/TrajectoryOptions";
  157. }
  158. static const char* value(const ::cartographer_ros_msgs::TrajectoryOptions_<ContainerAllocator>&) { return value(); }
  159. };
  160. template<class ContainerAllocator>
  161. struct Definition< ::cartographer_ros_msgs::TrajectoryOptions_<ContainerAllocator> >
  162. {
  163. static const char* value()
  164. {
  165. return "# Copyright 2016 The Cartographer Authors\n\
  166. #\n\
  167. # Licensed under the Apache License, Version 2.0 (the \"License\");\n\
  168. # you may not use this file except in compliance with the License.\n\
  169. # You may obtain a copy of the License at\n\
  170. #\n\
  171. # http://www.apache.org/licenses/LICENSE-2.0\n\
  172. #\n\
  173. # Unless required by applicable law or agreed to in writing, software\n\
  174. # distributed under the License is distributed on an \"AS IS\" BASIS,\n\
  175. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n\
  176. # See the License for the specific language governing permissions and\n\
  177. # limitations under the License.\n\
  178. \n\
  179. string tracking_frame\n\
  180. string published_frame\n\
  181. string odom_frame\n\
  182. bool provide_odom_frame\n\
  183. bool use_odometry\n\
  184. bool use_nav_sat\n\
  185. bool use_landmarks\n\
  186. bool publish_frame_projected_to_2d\n\
  187. int32 num_laser_scans\n\
  188. int32 num_multi_echo_laser_scans\n\
  189. int32 num_subdivisions_per_laser_scan\n\
  190. int32 num_point_clouds\n\
  191. float64 rangefinder_sampling_ratio\n\
  192. float64 odometry_sampling_ratio\n\
  193. float64 fixed_frame_pose_sampling_ratio\n\
  194. float64 imu_sampling_ratio\n\
  195. float64 landmarks_sampling_ratio\n\
  196. \n\
  197. # This is a binary-encoded\n\
  198. # 'cartographer.mapping.proto.TrajectoryBuilderOptions' proto.\n\
  199. string trajectory_builder_options_proto\n\
  200. ";
  201. }
  202. static const char* value(const ::cartographer_ros_msgs::TrajectoryOptions_<ContainerAllocator>&) { return value(); }
  203. };
  204. } // namespace message_traits
  205. } // namespace ros
  206. namespace ros
  207. {
  208. namespace serialization
  209. {
  210. template<class ContainerAllocator> struct Serializer< ::cartographer_ros_msgs::TrajectoryOptions_<ContainerAllocator> >
  211. {
  212. template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
  213. {
  214. stream.next(m.tracking_frame);
  215. stream.next(m.published_frame);
  216. stream.next(m.odom_frame);
  217. stream.next(m.provide_odom_frame);
  218. stream.next(m.use_odometry);
  219. stream.next(m.use_nav_sat);
  220. stream.next(m.use_landmarks);
  221. stream.next(m.publish_frame_projected_to_2d);
  222. stream.next(m.num_laser_scans);
  223. stream.next(m.num_multi_echo_laser_scans);
  224. stream.next(m.num_subdivisions_per_laser_scan);
  225. stream.next(m.num_point_clouds);
  226. stream.next(m.rangefinder_sampling_ratio);
  227. stream.next(m.odometry_sampling_ratio);
  228. stream.next(m.fixed_frame_pose_sampling_ratio);
  229. stream.next(m.imu_sampling_ratio);
  230. stream.next(m.landmarks_sampling_ratio);
  231. stream.next(m.trajectory_builder_options_proto);
  232. }
  233. ROS_DECLARE_ALLINONE_SERIALIZER
  234. }; // struct TrajectoryOptions_
  235. } // namespace serialization
  236. } // namespace ros
  237. namespace ros
  238. {
  239. namespace message_operations
  240. {
  241. template<class ContainerAllocator>
  242. struct Printer< ::cartographer_ros_msgs::TrajectoryOptions_<ContainerAllocator> >
  243. {
  244. template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::cartographer_ros_msgs::TrajectoryOptions_<ContainerAllocator>& v)
  245. {
  246. s << indent << "tracking_frame: ";
  247. Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.tracking_frame);
  248. s << indent << "published_frame: ";
  249. Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.published_frame);
  250. s << indent << "odom_frame: ";
  251. Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.odom_frame);
  252. s << indent << "provide_odom_frame: ";
  253. Printer<uint8_t>::stream(s, indent + " ", v.provide_odom_frame);
  254. s << indent << "use_odometry: ";
  255. Printer<uint8_t>::stream(s, indent + " ", v.use_odometry);
  256. s << indent << "use_nav_sat: ";
  257. Printer<uint8_t>::stream(s, indent + " ", v.use_nav_sat);
  258. s << indent << "use_landmarks: ";
  259. Printer<uint8_t>::stream(s, indent + " ", v.use_landmarks);
  260. s << indent << "publish_frame_projected_to_2d: ";
  261. Printer<uint8_t>::stream(s, indent + " ", v.publish_frame_projected_to_2d);
  262. s << indent << "num_laser_scans: ";
  263. Printer<int32_t>::stream(s, indent + " ", v.num_laser_scans);
  264. s << indent << "num_multi_echo_laser_scans: ";
  265. Printer<int32_t>::stream(s, indent + " ", v.num_multi_echo_laser_scans);
  266. s << indent << "num_subdivisions_per_laser_scan: ";
  267. Printer<int32_t>::stream(s, indent + " ", v.num_subdivisions_per_laser_scan);
  268. s << indent << "num_point_clouds: ";
  269. Printer<int32_t>::stream(s, indent + " ", v.num_point_clouds);
  270. s << indent << "rangefinder_sampling_ratio: ";
  271. Printer<double>::stream(s, indent + " ", v.rangefinder_sampling_ratio);
  272. s << indent << "odometry_sampling_ratio: ";
  273. Printer<double>::stream(s, indent + " ", v.odometry_sampling_ratio);
  274. s << indent << "fixed_frame_pose_sampling_ratio: ";
  275. Printer<double>::stream(s, indent + " ", v.fixed_frame_pose_sampling_ratio);
  276. s << indent << "imu_sampling_ratio: ";
  277. Printer<double>::stream(s, indent + " ", v.imu_sampling_ratio);
  278. s << indent << "landmarks_sampling_ratio: ";
  279. Printer<double>::stream(s, indent + " ", v.landmarks_sampling_ratio);
  280. s << indent << "trajectory_builder_options_proto: ";
  281. Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.trajectory_builder_options_proto);
  282. }
  283. };
  284. } // namespace message_operations
  285. } // namespace ros
  286. #endif // CARTOGRAPHER_ROS_MSGS_MESSAGE_TRAJECTORYOPTIONS_H