$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-continuous_ops/doc_stacks/2013-03-01_15-04-55.848441/continuous_ops/continuous_ops_msgs/msg/ChargeStatus.msg */ 00002 #ifndef CONTINUOUS_OPS_MSGS_MESSAGE_CHARGESTATUS_H 00003 #define CONTINUOUS_OPS_MSGS_MESSAGE_CHARGESTATUS_H 00004 #include <string> 00005 #include <vector> 00006 #include <map> 00007 #include <ostream> 00008 #include "ros/serialization.h" 00009 #include "ros/builtin_message_traits.h" 00010 #include "ros/message_operations.h" 00011 #include "ros/time.h" 00012 00013 #include "ros/macros.h" 00014 00015 #include "ros/assert.h" 00016 00017 00018 namespace continuous_ops_msgs 00019 { 00020 template <class ContainerAllocator> 00021 struct ChargeStatus_ { 00022 typedef ChargeStatus_<ContainerAllocator> Type; 00023 00024 ChargeStatus_() 00025 : battery_status(0) 00026 , charge_status(0) 00027 { 00028 } 00029 00030 ChargeStatus_(const ContainerAllocator& _alloc) 00031 : battery_status(0) 00032 , charge_status(0) 00033 { 00034 } 00035 00036 typedef uint8_t _battery_status_type; 00037 uint8_t battery_status; 00038 00039 typedef uint8_t _charge_status_type; 00040 uint8_t charge_status; 00041 00042 enum { HAPPY = 0 }; 00043 enum { HUNGRY = 1 }; 00044 enum { STUFFED = 2 }; 00045 enum { UNPLUGGED = 0 }; 00046 enum { CHARGING = 1 }; 00047 00048 private: 00049 static const char* __s_getDataType_() { return "continuous_ops_msgs/ChargeStatus"; } 00050 public: 00051 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00052 00053 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00054 00055 private: 00056 static const char* __s_getMD5Sum_() { return "e45642af2ff8b37fd2f04277141299c7"; } 00057 public: 00058 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00059 00060 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00061 00062 private: 00063 static const char* __s_getMessageDefinition_() { return "uint8 HAPPY = 0\n\ 00064 uint8 HUNGRY = 1\n\ 00065 uint8 STUFFED = 2\n\ 00066 uint8 battery_status\n\ 00067 \n\ 00068 uint8 UNPLUGGED = 0\n\ 00069 uint8 CHARGING = 1\n\ 00070 uint8 charge_status\n\ 00071 \n\ 00072 "; } 00073 public: 00074 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00075 00076 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00077 00078 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00079 { 00080 ros::serialization::OStream stream(write_ptr, 1000000000); 00081 ros::serialization::serialize(stream, battery_status); 00082 ros::serialization::serialize(stream, charge_status); 00083 return stream.getData(); 00084 } 00085 00086 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00087 { 00088 ros::serialization::IStream stream(read_ptr, 1000000000); 00089 ros::serialization::deserialize(stream, battery_status); 00090 ros::serialization::deserialize(stream, charge_status); 00091 return stream.getData(); 00092 } 00093 00094 ROS_DEPRECATED virtual uint32_t serializationLength() const 00095 { 00096 uint32_t size = 0; 00097 size += ros::serialization::serializationLength(battery_status); 00098 size += ros::serialization::serializationLength(charge_status); 00099 return size; 00100 } 00101 00102 typedef boost::shared_ptr< ::continuous_ops_msgs::ChargeStatus_<ContainerAllocator> > Ptr; 00103 typedef boost::shared_ptr< ::continuous_ops_msgs::ChargeStatus_<ContainerAllocator> const> ConstPtr; 00104 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00105 }; // struct ChargeStatus 00106 typedef ::continuous_ops_msgs::ChargeStatus_<std::allocator<void> > ChargeStatus; 00107 00108 typedef boost::shared_ptr< ::continuous_ops_msgs::ChargeStatus> ChargeStatusPtr; 00109 typedef boost::shared_ptr< ::continuous_ops_msgs::ChargeStatus const> ChargeStatusConstPtr; 00110 00111 00112 template<typename ContainerAllocator> 00113 std::ostream& operator<<(std::ostream& s, const ::continuous_ops_msgs::ChargeStatus_<ContainerAllocator> & v) 00114 { 00115 ros::message_operations::Printer< ::continuous_ops_msgs::ChargeStatus_<ContainerAllocator> >::stream(s, "", v); 00116 return s;} 00117 00118 } // namespace continuous_ops_msgs 00119 00120 namespace ros 00121 { 00122 namespace message_traits 00123 { 00124 template<class ContainerAllocator> struct IsMessage< ::continuous_ops_msgs::ChargeStatus_<ContainerAllocator> > : public TrueType {}; 00125 template<class ContainerAllocator> struct IsMessage< ::continuous_ops_msgs::ChargeStatus_<ContainerAllocator> const> : public TrueType {}; 00126 template<class ContainerAllocator> 00127 struct MD5Sum< ::continuous_ops_msgs::ChargeStatus_<ContainerAllocator> > { 00128 static const char* value() 00129 { 00130 return "e45642af2ff8b37fd2f04277141299c7"; 00131 } 00132 00133 static const char* value(const ::continuous_ops_msgs::ChargeStatus_<ContainerAllocator> &) { return value(); } 00134 static const uint64_t static_value1 = 0xe45642af2ff8b37fULL; 00135 static const uint64_t static_value2 = 0xd2f04277141299c7ULL; 00136 }; 00137 00138 template<class ContainerAllocator> 00139 struct DataType< ::continuous_ops_msgs::ChargeStatus_<ContainerAllocator> > { 00140 static const char* value() 00141 { 00142 return "continuous_ops_msgs/ChargeStatus"; 00143 } 00144 00145 static const char* value(const ::continuous_ops_msgs::ChargeStatus_<ContainerAllocator> &) { return value(); } 00146 }; 00147 00148 template<class ContainerAllocator> 00149 struct Definition< ::continuous_ops_msgs::ChargeStatus_<ContainerAllocator> > { 00150 static const char* value() 00151 { 00152 return "uint8 HAPPY = 0\n\ 00153 uint8 HUNGRY = 1\n\ 00154 uint8 STUFFED = 2\n\ 00155 uint8 battery_status\n\ 00156 \n\ 00157 uint8 UNPLUGGED = 0\n\ 00158 uint8 CHARGING = 1\n\ 00159 uint8 charge_status\n\ 00160 \n\ 00161 "; 00162 } 00163 00164 static const char* value(const ::continuous_ops_msgs::ChargeStatus_<ContainerAllocator> &) { return value(); } 00165 }; 00166 00167 template<class ContainerAllocator> struct IsFixedSize< ::continuous_ops_msgs::ChargeStatus_<ContainerAllocator> > : public TrueType {}; 00168 } // namespace message_traits 00169 } // namespace ros 00170 00171 namespace ros 00172 { 00173 namespace serialization 00174 { 00175 00176 template<class ContainerAllocator> struct Serializer< ::continuous_ops_msgs::ChargeStatus_<ContainerAllocator> > 00177 { 00178 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00179 { 00180 stream.next(m.battery_status); 00181 stream.next(m.charge_status); 00182 } 00183 00184 ROS_DECLARE_ALLINONE_SERIALIZER; 00185 }; // struct ChargeStatus_ 00186 } // namespace serialization 00187 } // namespace ros 00188 00189 namespace ros 00190 { 00191 namespace message_operations 00192 { 00193 00194 template<class ContainerAllocator> 00195 struct Printer< ::continuous_ops_msgs::ChargeStatus_<ContainerAllocator> > 00196 { 00197 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::continuous_ops_msgs::ChargeStatus_<ContainerAllocator> & v) 00198 { 00199 s << indent << "battery_status: "; 00200 Printer<uint8_t>::stream(s, indent + " ", v.battery_status); 00201 s << indent << "charge_status: "; 00202 Printer<uint8_t>::stream(s, indent + " ", v.charge_status); 00203 } 00204 }; 00205 00206 00207 } // namespace message_operations 00208 } // namespace ros 00209 00210 #endif // CONTINUOUS_OPS_MSGS_MESSAGE_CHARGESTATUS_H 00211