StatusResponse.h 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211
  1. // Generated by gencpp from file cartographer_ros_msgs/StatusResponse.msg
  2. // DO NOT EDIT!
  3. #ifndef CARTOGRAPHER_ROS_MSGS_MESSAGE_STATUSRESPONSE_H
  4. #define CARTOGRAPHER_ROS_MSGS_MESSAGE_STATUSRESPONSE_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 StatusResponse_
  16. {
  17. typedef StatusResponse_<ContainerAllocator> Type;
  18. StatusResponse_()
  19. : code(0)
  20. , message() {
  21. }
  22. StatusResponse_(const ContainerAllocator& _alloc)
  23. : code(0)
  24. , message(_alloc) {
  25. (void)_alloc;
  26. }
  27. typedef uint8_t _code_type;
  28. _code_type code;
  29. typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _message_type;
  30. _message_type message;
  31. typedef boost::shared_ptr< ::cartographer_ros_msgs::StatusResponse_<ContainerAllocator> > Ptr;
  32. typedef boost::shared_ptr< ::cartographer_ros_msgs::StatusResponse_<ContainerAllocator> const> ConstPtr;
  33. }; // struct StatusResponse_
  34. typedef ::cartographer_ros_msgs::StatusResponse_<std::allocator<void> > StatusResponse;
  35. typedef boost::shared_ptr< ::cartographer_ros_msgs::StatusResponse > StatusResponsePtr;
  36. typedef boost::shared_ptr< ::cartographer_ros_msgs::StatusResponse const> StatusResponseConstPtr;
  37. // constants requiring out of line definition
  38. template<typename ContainerAllocator>
  39. std::ostream& operator<<(std::ostream& s, const ::cartographer_ros_msgs::StatusResponse_<ContainerAllocator> & v)
  40. {
  41. ros::message_operations::Printer< ::cartographer_ros_msgs::StatusResponse_<ContainerAllocator> >::stream(s, "", v);
  42. return s;
  43. }
  44. } // namespace cartographer_ros_msgs
  45. namespace ros
  46. {
  47. namespace message_traits
  48. {
  49. // BOOLTRAITS {'IsFixedSize': False, 'IsMessage': True, 'HasHeader': False}
  50. // {'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']}
  51. // !!!!!!!!!!! ['__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']
  52. template <class ContainerAllocator>
  53. struct IsFixedSize< ::cartographer_ros_msgs::StatusResponse_<ContainerAllocator> >
  54. : FalseType
  55. { };
  56. template <class ContainerAllocator>
  57. struct IsFixedSize< ::cartographer_ros_msgs::StatusResponse_<ContainerAllocator> const>
  58. : FalseType
  59. { };
  60. template <class ContainerAllocator>
  61. struct IsMessage< ::cartographer_ros_msgs::StatusResponse_<ContainerAllocator> >
  62. : TrueType
  63. { };
  64. template <class ContainerAllocator>
  65. struct IsMessage< ::cartographer_ros_msgs::StatusResponse_<ContainerAllocator> const>
  66. : TrueType
  67. { };
  68. template <class ContainerAllocator>
  69. struct HasHeader< ::cartographer_ros_msgs::StatusResponse_<ContainerAllocator> >
  70. : FalseType
  71. { };
  72. template <class ContainerAllocator>
  73. struct HasHeader< ::cartographer_ros_msgs::StatusResponse_<ContainerAllocator> const>
  74. : FalseType
  75. { };
  76. template<class ContainerAllocator>
  77. struct MD5Sum< ::cartographer_ros_msgs::StatusResponse_<ContainerAllocator> >
  78. {
  79. static const char* value()
  80. {
  81. return "f45eaca0a8effd52a8b18d39434a6627";
  82. }
  83. static const char* value(const ::cartographer_ros_msgs::StatusResponse_<ContainerAllocator>&) { return value(); }
  84. static const uint64_t static_value1 = 0xf45eaca0a8effd52ULL;
  85. static const uint64_t static_value2 = 0xa8b18d39434a6627ULL;
  86. };
  87. template<class ContainerAllocator>
  88. struct DataType< ::cartographer_ros_msgs::StatusResponse_<ContainerAllocator> >
  89. {
  90. static const char* value()
  91. {
  92. return "cartographer_ros_msgs/StatusResponse";
  93. }
  94. static const char* value(const ::cartographer_ros_msgs::StatusResponse_<ContainerAllocator>&) { return value(); }
  95. };
  96. template<class ContainerAllocator>
  97. struct Definition< ::cartographer_ros_msgs::StatusResponse_<ContainerAllocator> >
  98. {
  99. static const char* value()
  100. {
  101. return "# Copyright 2018 The Cartographer Authors\n\
  102. #\n\
  103. # Licensed under the Apache License, Version 2.0 (the \"License\");\n\
  104. # you may not use this file except in compliance with the License.\n\
  105. # You may obtain a copy of the License at\n\
  106. #\n\
  107. # http://www.apache.org/licenses/LICENSE-2.0\n\
  108. #\n\
  109. # Unless required by applicable law or agreed to in writing, software\n\
  110. # distributed under the License is distributed on an \"AS IS\" BASIS,\n\
  111. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n\
  112. # See the License for the specific language governing permissions and\n\
  113. # limitations under the License.\n\
  114. \n\
  115. # A common message type to indicate the outcome of a service call.\n\
  116. uint8 code\n\
  117. string message\n\
  118. ";
  119. }
  120. static const char* value(const ::cartographer_ros_msgs::StatusResponse_<ContainerAllocator>&) { return value(); }
  121. };
  122. } // namespace message_traits
  123. } // namespace ros
  124. namespace ros
  125. {
  126. namespace serialization
  127. {
  128. template<class ContainerAllocator> struct Serializer< ::cartographer_ros_msgs::StatusResponse_<ContainerAllocator> >
  129. {
  130. template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
  131. {
  132. stream.next(m.code);
  133. stream.next(m.message);
  134. }
  135. ROS_DECLARE_ALLINONE_SERIALIZER
  136. }; // struct StatusResponse_
  137. } // namespace serialization
  138. } // namespace ros
  139. namespace ros
  140. {
  141. namespace message_operations
  142. {
  143. template<class ContainerAllocator>
  144. struct Printer< ::cartographer_ros_msgs::StatusResponse_<ContainerAllocator> >
  145. {
  146. template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::cartographer_ros_msgs::StatusResponse_<ContainerAllocator>& v)
  147. {
  148. s << indent << "code: ";
  149. Printer<uint8_t>::stream(s, indent + " ", v.code);
  150. s << indent << "message: ";
  151. Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.message);
  152. }
  153. };
  154. } // namespace message_operations
  155. } // namespace ros
  156. #endif // CARTOGRAPHER_ROS_MSGS_MESSAGE_STATUSRESPONSE_H