TrajectoryStates.h 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266
  1. // Generated by gencpp from file cartographer_ros_msgs/TrajectoryStates.msg
  2. // DO NOT EDIT!
  3. #ifndef CARTOGRAPHER_ROS_MSGS_MESSAGE_TRAJECTORYSTATES_H
  4. #define CARTOGRAPHER_ROS_MSGS_MESSAGE_TRAJECTORYSTATES_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 <std_msgs/Header.h>
  13. namespace cartographer_ros_msgs
  14. {
  15. template <class ContainerAllocator>
  16. struct TrajectoryStates_
  17. {
  18. typedef TrajectoryStates_<ContainerAllocator> Type;
  19. TrajectoryStates_()
  20. : header()
  21. , trajectory_id()
  22. , trajectory_state() {
  23. }
  24. TrajectoryStates_(const ContainerAllocator& _alloc)
  25. : header(_alloc)
  26. , trajectory_id(_alloc)
  27. , trajectory_state(_alloc) {
  28. (void)_alloc;
  29. }
  30. typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
  31. _header_type header;
  32. typedef std::vector<int32_t, typename ContainerAllocator::template rebind<int32_t>::other > _trajectory_id_type;
  33. _trajectory_id_type trajectory_id;
  34. typedef std::vector<uint8_t, typename ContainerAllocator::template rebind<uint8_t>::other > _trajectory_state_type;
  35. _trajectory_state_type trajectory_state;
  36. enum {
  37. ACTIVE = 0u,
  38. FINISHED = 1u,
  39. FROZEN = 2u,
  40. DELETED = 3u,
  41. };
  42. typedef boost::shared_ptr< ::cartographer_ros_msgs::TrajectoryStates_<ContainerAllocator> > Ptr;
  43. typedef boost::shared_ptr< ::cartographer_ros_msgs::TrajectoryStates_<ContainerAllocator> const> ConstPtr;
  44. }; // struct TrajectoryStates_
  45. typedef ::cartographer_ros_msgs::TrajectoryStates_<std::allocator<void> > TrajectoryStates;
  46. typedef boost::shared_ptr< ::cartographer_ros_msgs::TrajectoryStates > TrajectoryStatesPtr;
  47. typedef boost::shared_ptr< ::cartographer_ros_msgs::TrajectoryStates const> TrajectoryStatesConstPtr;
  48. // constants requiring out of line definition
  49. template<typename ContainerAllocator>
  50. std::ostream& operator<<(std::ostream& s, const ::cartographer_ros_msgs::TrajectoryStates_<ContainerAllocator> & v)
  51. {
  52. ros::message_operations::Printer< ::cartographer_ros_msgs::TrajectoryStates_<ContainerAllocator> >::stream(s, "", v);
  53. return s;
  54. }
  55. } // namespace cartographer_ros_msgs
  56. namespace ros
  57. {
  58. namespace message_traits
  59. {
  60. // BOOLTRAITS {'IsFixedSize': False, 'IsMessage': True, 'HasHeader': True}
  61. // {'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']}
  62. // !!!!!!!!!!! ['__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']
  63. template <class ContainerAllocator>
  64. struct IsFixedSize< ::cartographer_ros_msgs::TrajectoryStates_<ContainerAllocator> >
  65. : FalseType
  66. { };
  67. template <class ContainerAllocator>
  68. struct IsFixedSize< ::cartographer_ros_msgs::TrajectoryStates_<ContainerAllocator> const>
  69. : FalseType
  70. { };
  71. template <class ContainerAllocator>
  72. struct IsMessage< ::cartographer_ros_msgs::TrajectoryStates_<ContainerAllocator> >
  73. : TrueType
  74. { };
  75. template <class ContainerAllocator>
  76. struct IsMessage< ::cartographer_ros_msgs::TrajectoryStates_<ContainerAllocator> const>
  77. : TrueType
  78. { };
  79. template <class ContainerAllocator>
  80. struct HasHeader< ::cartographer_ros_msgs::TrajectoryStates_<ContainerAllocator> >
  81. : TrueType
  82. { };
  83. template <class ContainerAllocator>
  84. struct HasHeader< ::cartographer_ros_msgs::TrajectoryStates_<ContainerAllocator> const>
  85. : TrueType
  86. { };
  87. template<class ContainerAllocator>
  88. struct MD5Sum< ::cartographer_ros_msgs::TrajectoryStates_<ContainerAllocator> >
  89. {
  90. static const char* value()
  91. {
  92. return "85efdd795e95b57a59cb785ecb152345";
  93. }
  94. static const char* value(const ::cartographer_ros_msgs::TrajectoryStates_<ContainerAllocator>&) { return value(); }
  95. static const uint64_t static_value1 = 0x85efdd795e95b57aULL;
  96. static const uint64_t static_value2 = 0x59cb785ecb152345ULL;
  97. };
  98. template<class ContainerAllocator>
  99. struct DataType< ::cartographer_ros_msgs::TrajectoryStates_<ContainerAllocator> >
  100. {
  101. static const char* value()
  102. {
  103. return "cartographer_ros_msgs/TrajectoryStates";
  104. }
  105. static const char* value(const ::cartographer_ros_msgs::TrajectoryStates_<ContainerAllocator>&) { return value(); }
  106. };
  107. template<class ContainerAllocator>
  108. struct Definition< ::cartographer_ros_msgs::TrajectoryStates_<ContainerAllocator> >
  109. {
  110. static const char* value()
  111. {
  112. return "# Copyright 2018 The Cartographer Authors\n\
  113. #\n\
  114. # Licensed under the Apache License, Version 2.0 (the 'License');\n\
  115. # you may not use this file except in compliance with the License.\n\
  116. # You may obtain a copy of the License at\n\
  117. #\n\
  118. # http://www.apache.org/licenses/LICENSE-2.0\n\
  119. #\n\
  120. # Unless required by applicable law or agreed to in writing, software\n\
  121. # distributed under the License is distributed on an 'AS IS' BASIS,\n\
  122. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n\
  123. # See the License for the specific language governing permissions and\n\
  124. # limitations under the License.\n\
  125. \n\
  126. uint8 ACTIVE = 0\n\
  127. uint8 FINISHED = 1\n\
  128. uint8 FROZEN = 2\n\
  129. uint8 DELETED = 3\n\
  130. \n\
  131. std_msgs/Header header\n\
  132. int32[] trajectory_id\n\
  133. uint8[] trajectory_state\n\
  134. \n\
  135. ================================================================================\n\
  136. MSG: std_msgs/Header\n\
  137. # Standard metadata for higher-level stamped data types.\n\
  138. # This is generally used to communicate timestamped data \n\
  139. # in a particular coordinate frame.\n\
  140. # \n\
  141. # sequence ID: consecutively increasing ID \n\
  142. uint32 seq\n\
  143. #Two-integer timestamp that is expressed as:\n\
  144. # * stamp.sec: seconds (stamp_secs) since epoch (in Python the variable is called 'secs')\n\
  145. # * stamp.nsec: nanoseconds since stamp_secs (in Python the variable is called 'nsecs')\n\
  146. # time-handling sugar is provided by the client library\n\
  147. time stamp\n\
  148. #Frame this data is associated with\n\
  149. # 0: no frame\n\
  150. # 1: global frame\n\
  151. string frame_id\n\
  152. ";
  153. }
  154. static const char* value(const ::cartographer_ros_msgs::TrajectoryStates_<ContainerAllocator>&) { return value(); }
  155. };
  156. } // namespace message_traits
  157. } // namespace ros
  158. namespace ros
  159. {
  160. namespace serialization
  161. {
  162. template<class ContainerAllocator> struct Serializer< ::cartographer_ros_msgs::TrajectoryStates_<ContainerAllocator> >
  163. {
  164. template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
  165. {
  166. stream.next(m.header);
  167. stream.next(m.trajectory_id);
  168. stream.next(m.trajectory_state);
  169. }
  170. ROS_DECLARE_ALLINONE_SERIALIZER
  171. }; // struct TrajectoryStates_
  172. } // namespace serialization
  173. } // namespace ros
  174. namespace ros
  175. {
  176. namespace message_operations
  177. {
  178. template<class ContainerAllocator>
  179. struct Printer< ::cartographer_ros_msgs::TrajectoryStates_<ContainerAllocator> >
  180. {
  181. template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::cartographer_ros_msgs::TrajectoryStates_<ContainerAllocator>& v)
  182. {
  183. s << indent << "header: ";
  184. s << std::endl;
  185. Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header);
  186. s << indent << "trajectory_id[]" << std::endl;
  187. for (size_t i = 0; i < v.trajectory_id.size(); ++i)
  188. {
  189. s << indent << " trajectory_id[" << i << "]: ";
  190. Printer<int32_t>::stream(s, indent + " ", v.trajectory_id[i]);
  191. }
  192. s << indent << "trajectory_state[]" << std::endl;
  193. for (size_t i = 0; i < v.trajectory_state.size(); ++i)
  194. {
  195. s << indent << " trajectory_state[" << i << "]: ";
  196. Printer<uint8_t>::stream(s, indent + " ", v.trajectory_state[i]);
  197. }
  198. }
  199. };
  200. } // namespace message_operations
  201. } // namespace ros
  202. #endif // CARTOGRAPHER_ROS_MSGS_MESSAGE_TRAJECTORYSTATES_H