// Generated by gencpp from file common_msgs/SysInfo.msg // DO NOT EDIT! #ifndef COMMON_MSGS_MESSAGE_SYSINFO_H #define COMMON_MSGS_MESSAGE_SYSINFO_H #include #include #include #include #include #include #include namespace common_msgs { template struct SysInfo_ { typedef SysInfo_ Type; SysInfo_() : cpu_occupied(0.0) , mem_occupied(0.0) , cur_mileage(0.0) , history_mileage(0.0) { } SysInfo_(const ContainerAllocator& _alloc) : cpu_occupied(0.0) , mem_occupied(0.0) , cur_mileage(0.0) , history_mileage(0.0) { (void)_alloc; } typedef float _cpu_occupied_type; _cpu_occupied_type cpu_occupied; typedef float _mem_occupied_type; _mem_occupied_type mem_occupied; typedef double _cur_mileage_type; _cur_mileage_type cur_mileage; typedef double _history_mileage_type; _history_mileage_type history_mileage; typedef boost::shared_ptr< ::common_msgs::SysInfo_ > Ptr; typedef boost::shared_ptr< ::common_msgs::SysInfo_ const> ConstPtr; }; // struct SysInfo_ typedef ::common_msgs::SysInfo_ > SysInfo; typedef boost::shared_ptr< ::common_msgs::SysInfo > SysInfoPtr; typedef boost::shared_ptr< ::common_msgs::SysInfo const> SysInfoConstPtr; // constants requiring out of line definition template std::ostream& operator<<(std::ostream& s, const ::common_msgs::SysInfo_ & v) { ros::message_operations::Printer< ::common_msgs::SysInfo_ >::stream(s, "", v); return s; } template bool operator==(const ::common_msgs::SysInfo_ & lhs, const ::common_msgs::SysInfo_ & rhs) { return lhs.cpu_occupied == rhs.cpu_occupied && lhs.mem_occupied == rhs.mem_occupied && lhs.cur_mileage == rhs.cur_mileage && lhs.history_mileage == rhs.history_mileage; } template bool operator!=(const ::common_msgs::SysInfo_ & lhs, const ::common_msgs::SysInfo_ & rhs) { return !(lhs == rhs); } } // namespace common_msgs namespace ros { namespace message_traits { template struct IsMessage< ::common_msgs::SysInfo_ > : TrueType { }; template struct IsMessage< ::common_msgs::SysInfo_ const> : TrueType { }; template struct IsFixedSize< ::common_msgs::SysInfo_ > : TrueType { }; template struct IsFixedSize< ::common_msgs::SysInfo_ const> : TrueType { }; template struct HasHeader< ::common_msgs::SysInfo_ > : FalseType { }; template struct HasHeader< ::common_msgs::SysInfo_ const> : FalseType { }; template struct MD5Sum< ::common_msgs::SysInfo_ > { static const char* value() { return "32c91a41efe8d7f00d4b592a7b9c6532"; } static const char* value(const ::common_msgs::SysInfo_&) { return value(); } static const uint64_t static_value1 = 0x32c91a41efe8d7f0ULL; static const uint64_t static_value2 = 0x0d4b592a7b9c6532ULL; }; template struct DataType< ::common_msgs::SysInfo_ > { static const char* value() { return "common_msgs/SysInfo"; } static const char* value(const ::common_msgs::SysInfo_&) { return value(); } }; template struct Definition< ::common_msgs::SysInfo_ > { static const char* value() { return "float32 cpu_occupied\n" "float32 mem_occupied\n" "float64 cur_mileage\n" "float64 history_mileage\n" ; } static const char* value(const ::common_msgs::SysInfo_&) { return value(); } }; } // namespace message_traits } // namespace ros namespace ros { namespace serialization { template struct Serializer< ::common_msgs::SysInfo_ > { template inline static void allInOne(Stream& stream, T m) { stream.next(m.cpu_occupied); stream.next(m.mem_occupied); stream.next(m.cur_mileage); stream.next(m.history_mileage); } ROS_DECLARE_ALLINONE_SERIALIZER }; // struct SysInfo_ } // namespace serialization } // namespace ros namespace ros { namespace message_operations { template struct Printer< ::common_msgs::SysInfo_ > { template static void stream(Stream& s, const std::string& indent, const ::common_msgs::SysInfo_& v) { s << indent << "cpu_occupied: "; Printer::stream(s, indent + " ", v.cpu_occupied); s << indent << "mem_occupied: "; Printer::stream(s, indent + " ", v.mem_occupied); s << indent << "cur_mileage: "; Printer::stream(s, indent + " ", v.cur_mileage); s << indent << "history_mileage: "; Printer::stream(s, indent + " ", v.history_mileage); } }; } // namespace message_operations } // namespace ros #endif // COMMON_MSGS_MESSAGE_SYSINFO_H