SonarInfo.h 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  1. // Generated by gencpp from file common_msgs/SonarInfo.msg
  2. // DO NOT EDIT!
  3. #ifndef COMMON_MSGS_MESSAGE_SONARINFO_H
  4. #define COMMON_MSGS_MESSAGE_SONARINFO_H
  5. #include <string>
  6. #include <vector>
  7. #include <memory>
  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 common_msgs
  13. {
  14. template <class ContainerAllocator>
  15. struct SonarInfo_
  16. {
  17. typedef SonarInfo_<ContainerAllocator> Type;
  18. SonarInfo_()
  19. : sonarStatus() {
  20. }
  21. SonarInfo_(const ContainerAllocator& _alloc)
  22. : sonarStatus(_alloc) {
  23. (void)_alloc;
  24. }
  25. typedef std::vector<int8_t, typename std::allocator_traits<ContainerAllocator>::template rebind_alloc<int8_t>> _sonarStatus_type;
  26. _sonarStatus_type sonarStatus;
  27. typedef boost::shared_ptr< ::common_msgs::SonarInfo_<ContainerAllocator> > Ptr;
  28. typedef boost::shared_ptr< ::common_msgs::SonarInfo_<ContainerAllocator> const> ConstPtr;
  29. }; // struct SonarInfo_
  30. typedef ::common_msgs::SonarInfo_<std::allocator<void> > SonarInfo;
  31. typedef boost::shared_ptr< ::common_msgs::SonarInfo > SonarInfoPtr;
  32. typedef boost::shared_ptr< ::common_msgs::SonarInfo const> SonarInfoConstPtr;
  33. // constants requiring out of line definition
  34. template<typename ContainerAllocator>
  35. std::ostream& operator<<(std::ostream& s, const ::common_msgs::SonarInfo_<ContainerAllocator> & v)
  36. {
  37. ros::message_operations::Printer< ::common_msgs::SonarInfo_<ContainerAllocator> >::stream(s, "", v);
  38. return s;
  39. }
  40. template<typename ContainerAllocator1, typename ContainerAllocator2>
  41. bool operator==(const ::common_msgs::SonarInfo_<ContainerAllocator1> & lhs, const ::common_msgs::SonarInfo_<ContainerAllocator2> & rhs)
  42. {
  43. return lhs.sonarStatus == rhs.sonarStatus;
  44. }
  45. template<typename ContainerAllocator1, typename ContainerAllocator2>
  46. bool operator!=(const ::common_msgs::SonarInfo_<ContainerAllocator1> & lhs, const ::common_msgs::SonarInfo_<ContainerAllocator2> & rhs)
  47. {
  48. return !(lhs == rhs);
  49. }
  50. } // namespace common_msgs
  51. namespace ros
  52. {
  53. namespace message_traits
  54. {
  55. template <class ContainerAllocator>
  56. struct IsFixedSize< ::common_msgs::SonarInfo_<ContainerAllocator> >
  57. : FalseType
  58. { };
  59. template <class ContainerAllocator>
  60. struct IsFixedSize< ::common_msgs::SonarInfo_<ContainerAllocator> const>
  61. : FalseType
  62. { };
  63. template <class ContainerAllocator>
  64. struct IsMessage< ::common_msgs::SonarInfo_<ContainerAllocator> >
  65. : TrueType
  66. { };
  67. template <class ContainerAllocator>
  68. struct IsMessage< ::common_msgs::SonarInfo_<ContainerAllocator> const>
  69. : TrueType
  70. { };
  71. template <class ContainerAllocator>
  72. struct HasHeader< ::common_msgs::SonarInfo_<ContainerAllocator> >
  73. : FalseType
  74. { };
  75. template <class ContainerAllocator>
  76. struct HasHeader< ::common_msgs::SonarInfo_<ContainerAllocator> const>
  77. : FalseType
  78. { };
  79. template<class ContainerAllocator>
  80. struct MD5Sum< ::common_msgs::SonarInfo_<ContainerAllocator> >
  81. {
  82. static const char* value()
  83. {
  84. return "4590c910b92ed5c942464aba2d7434f2";
  85. }
  86. static const char* value(const ::common_msgs::SonarInfo_<ContainerAllocator>&) { return value(); }
  87. static const uint64_t static_value1 = 0x4590c910b92ed5c9ULL;
  88. static const uint64_t static_value2 = 0x42464aba2d7434f2ULL;
  89. };
  90. template<class ContainerAllocator>
  91. struct DataType< ::common_msgs::SonarInfo_<ContainerAllocator> >
  92. {
  93. static const char* value()
  94. {
  95. return "common_msgs/SonarInfo";
  96. }
  97. static const char* value(const ::common_msgs::SonarInfo_<ContainerAllocator>&) { return value(); }
  98. };
  99. template<class ContainerAllocator>
  100. struct Definition< ::common_msgs::SonarInfo_<ContainerAllocator> >
  101. {
  102. static const char* value()
  103. {
  104. return "int8[] sonarStatus\n"
  105. ;
  106. }
  107. static const char* value(const ::common_msgs::SonarInfo_<ContainerAllocator>&) { return value(); }
  108. };
  109. } // namespace message_traits
  110. } // namespace ros
  111. namespace ros
  112. {
  113. namespace serialization
  114. {
  115. template<class ContainerAllocator> struct Serializer< ::common_msgs::SonarInfo_<ContainerAllocator> >
  116. {
  117. template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
  118. {
  119. stream.next(m.sonarStatus);
  120. }
  121. ROS_DECLARE_ALLINONE_SERIALIZER
  122. }; // struct SonarInfo_
  123. } // namespace serialization
  124. } // namespace ros
  125. namespace ros
  126. {
  127. namespace message_operations
  128. {
  129. template<class ContainerAllocator>
  130. struct Printer< ::common_msgs::SonarInfo_<ContainerAllocator> >
  131. {
  132. template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::common_msgs::SonarInfo_<ContainerAllocator>& v)
  133. {
  134. s << indent << "sonarStatus[]" << std::endl;
  135. for (size_t i = 0; i < v.sonarStatus.size(); ++i)
  136. {
  137. s << indent << " sonarStatus[" << i << "]: ";
  138. Printer<int8_t>::stream(s, indent + " ", v.sonarStatus[i]);
  139. }
  140. }
  141. };
  142. } // namespace message_operations
  143. } // namespace ros
  144. #endif // COMMON_MSGS_MESSAGE_SONARINFO_H