SysInfo.h 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225
  1. // Generated by gencpp from file common_msgs/SysInfo.msg
  2. // DO NOT EDIT!
  3. #ifndef COMMON_MSGS_MESSAGE_SYSINFO_H
  4. #define COMMON_MSGS_MESSAGE_SYSINFO_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 SysInfo_
  16. {
  17. typedef SysInfo_<ContainerAllocator> Type;
  18. SysInfo_()
  19. : cpu_occupied(0.0)
  20. , mem_occupied(0.0)
  21. , cur_mileage(0.0)
  22. , history_mileage(0.0) {
  23. }
  24. SysInfo_(const ContainerAllocator& _alloc)
  25. : cpu_occupied(0.0)
  26. , mem_occupied(0.0)
  27. , cur_mileage(0.0)
  28. , history_mileage(0.0) {
  29. (void)_alloc;
  30. }
  31. typedef float _cpu_occupied_type;
  32. _cpu_occupied_type cpu_occupied;
  33. typedef float _mem_occupied_type;
  34. _mem_occupied_type mem_occupied;
  35. typedef double _cur_mileage_type;
  36. _cur_mileage_type cur_mileage;
  37. typedef double _history_mileage_type;
  38. _history_mileage_type history_mileage;
  39. typedef boost::shared_ptr< ::common_msgs::SysInfo_<ContainerAllocator> > Ptr;
  40. typedef boost::shared_ptr< ::common_msgs::SysInfo_<ContainerAllocator> const> ConstPtr;
  41. }; // struct SysInfo_
  42. typedef ::common_msgs::SysInfo_<std::allocator<void> > SysInfo;
  43. typedef boost::shared_ptr< ::common_msgs::SysInfo > SysInfoPtr;
  44. typedef boost::shared_ptr< ::common_msgs::SysInfo const> SysInfoConstPtr;
  45. // constants requiring out of line definition
  46. template<typename ContainerAllocator>
  47. std::ostream& operator<<(std::ostream& s, const ::common_msgs::SysInfo_<ContainerAllocator> & v)
  48. {
  49. ros::message_operations::Printer< ::common_msgs::SysInfo_<ContainerAllocator> >::stream(s, "", v);
  50. return s;
  51. }
  52. template<typename ContainerAllocator1, typename ContainerAllocator2>
  53. bool operator==(const ::common_msgs::SysInfo_<ContainerAllocator1> & lhs, const ::common_msgs::SysInfo_<ContainerAllocator2> & rhs)
  54. {
  55. return lhs.cpu_occupied == rhs.cpu_occupied &&
  56. lhs.mem_occupied == rhs.mem_occupied &&
  57. lhs.cur_mileage == rhs.cur_mileage &&
  58. lhs.history_mileage == rhs.history_mileage;
  59. }
  60. template<typename ContainerAllocator1, typename ContainerAllocator2>
  61. bool operator!=(const ::common_msgs::SysInfo_<ContainerAllocator1> & lhs, const ::common_msgs::SysInfo_<ContainerAllocator2> & rhs)
  62. {
  63. return !(lhs == rhs);
  64. }
  65. } // namespace common_msgs
  66. namespace ros
  67. {
  68. namespace message_traits
  69. {
  70. template <class ContainerAllocator>
  71. struct IsMessage< ::common_msgs::SysInfo_<ContainerAllocator> >
  72. : TrueType
  73. { };
  74. template <class ContainerAllocator>
  75. struct IsMessage< ::common_msgs::SysInfo_<ContainerAllocator> const>
  76. : TrueType
  77. { };
  78. template <class ContainerAllocator>
  79. struct IsFixedSize< ::common_msgs::SysInfo_<ContainerAllocator> >
  80. : TrueType
  81. { };
  82. template <class ContainerAllocator>
  83. struct IsFixedSize< ::common_msgs::SysInfo_<ContainerAllocator> const>
  84. : TrueType
  85. { };
  86. template <class ContainerAllocator>
  87. struct HasHeader< ::common_msgs::SysInfo_<ContainerAllocator> >
  88. : FalseType
  89. { };
  90. template <class ContainerAllocator>
  91. struct HasHeader< ::common_msgs::SysInfo_<ContainerAllocator> const>
  92. : FalseType
  93. { };
  94. template<class ContainerAllocator>
  95. struct MD5Sum< ::common_msgs::SysInfo_<ContainerAllocator> >
  96. {
  97. static const char* value()
  98. {
  99. return "32c91a41efe8d7f00d4b592a7b9c6532";
  100. }
  101. static const char* value(const ::common_msgs::SysInfo_<ContainerAllocator>&) { return value(); }
  102. static const uint64_t static_value1 = 0x32c91a41efe8d7f0ULL;
  103. static const uint64_t static_value2 = 0x0d4b592a7b9c6532ULL;
  104. };
  105. template<class ContainerAllocator>
  106. struct DataType< ::common_msgs::SysInfo_<ContainerAllocator> >
  107. {
  108. static const char* value()
  109. {
  110. return "common_msgs/SysInfo";
  111. }
  112. static const char* value(const ::common_msgs::SysInfo_<ContainerAllocator>&) { return value(); }
  113. };
  114. template<class ContainerAllocator>
  115. struct Definition< ::common_msgs::SysInfo_<ContainerAllocator> >
  116. {
  117. static const char* value()
  118. {
  119. return "float32 cpu_occupied\n"
  120. "float32 mem_occupied\n"
  121. "float64 cur_mileage\n"
  122. "float64 history_mileage\n"
  123. ;
  124. }
  125. static const char* value(const ::common_msgs::SysInfo_<ContainerAllocator>&) { return value(); }
  126. };
  127. } // namespace message_traits
  128. } // namespace ros
  129. namespace ros
  130. {
  131. namespace serialization
  132. {
  133. template<class ContainerAllocator> struct Serializer< ::common_msgs::SysInfo_<ContainerAllocator> >
  134. {
  135. template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
  136. {
  137. stream.next(m.cpu_occupied);
  138. stream.next(m.mem_occupied);
  139. stream.next(m.cur_mileage);
  140. stream.next(m.history_mileage);
  141. }
  142. ROS_DECLARE_ALLINONE_SERIALIZER
  143. }; // struct SysInfo_
  144. } // namespace serialization
  145. } // namespace ros
  146. namespace ros
  147. {
  148. namespace message_operations
  149. {
  150. template<class ContainerAllocator>
  151. struct Printer< ::common_msgs::SysInfo_<ContainerAllocator> >
  152. {
  153. template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::common_msgs::SysInfo_<ContainerAllocator>& v)
  154. {
  155. s << indent << "cpu_occupied: ";
  156. Printer<float>::stream(s, indent + " ", v.cpu_occupied);
  157. s << indent << "mem_occupied: ";
  158. Printer<float>::stream(s, indent + " ", v.mem_occupied);
  159. s << indent << "cur_mileage: ";
  160. Printer<double>::stream(s, indent + " ", v.cur_mileage);
  161. s << indent << "history_mileage: ";
  162. Printer<double>::stream(s, indent + " ", v.history_mileage);
  163. }
  164. };
  165. } // namespace message_operations
  166. } // namespace ros
  167. #endif // COMMON_MSGS_MESSAGE_SYSINFO_H