$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-erratic_robot/doc_stacks/2013-03-02_12-28-48.831118/erratic_robot/erratic_player/msg/BatteryState.msg */ 00002 #ifndef ERRATIC_PLAYER_MESSAGE_BATTERYSTATE_H 00003 #define ERRATIC_PLAYER_MESSAGE_BATTERYSTATE_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 #include "std_msgs/Header.h" 00018 00019 namespace erratic_player 00020 { 00021 template <class ContainerAllocator> 00022 struct BatteryState_ { 00023 typedef BatteryState_<ContainerAllocator> Type; 00024 00025 BatteryState_() 00026 : header() 00027 , charge(0.0) 00028 , capacity(0.0) 00029 { 00030 } 00031 00032 BatteryState_(const ContainerAllocator& _alloc) 00033 : header(_alloc) 00034 , charge(0.0) 00035 , capacity(0.0) 00036 { 00037 } 00038 00039 typedef ::std_msgs::Header_<ContainerAllocator> _header_type; 00040 ::std_msgs::Header_<ContainerAllocator> header; 00041 00042 typedef float _charge_type; 00043 float charge; 00044 00045 typedef float _capacity_type; 00046 float capacity; 00047 00048 00049 private: 00050 static const char* __s_getDataType_() { return "erratic_player/BatteryState"; } 00051 public: 00052 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00053 00054 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00055 00056 private: 00057 static const char* __s_getMD5Sum_() { return "df2a7089f2b6c7d531f3fa587a65bbf2"; } 00058 public: 00059 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00060 00061 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00062 00063 private: 00064 static const char* __s_getMessageDefinition_() { return "Header header\n\ 00065 float32 charge\n\ 00066 float32 capacity\n\ 00067 \n\ 00068 ================================================================================\n\ 00069 MSG: std_msgs/Header\n\ 00070 # Standard metadata for higher-level stamped data types.\n\ 00071 # This is generally used to communicate timestamped data \n\ 00072 # in a particular coordinate frame.\n\ 00073 # \n\ 00074 # sequence ID: consecutively increasing ID \n\ 00075 uint32 seq\n\ 00076 #Two-integer timestamp that is expressed as:\n\ 00077 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00078 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00079 # time-handling sugar is provided by the client library\n\ 00080 time stamp\n\ 00081 #Frame this data is associated with\n\ 00082 # 0: no frame\n\ 00083 # 1: global frame\n\ 00084 string frame_id\n\ 00085 \n\ 00086 "; } 00087 public: 00088 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00089 00090 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00091 00092 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00093 { 00094 ros::serialization::OStream stream(write_ptr, 1000000000); 00095 ros::serialization::serialize(stream, header); 00096 ros::serialization::serialize(stream, charge); 00097 ros::serialization::serialize(stream, capacity); 00098 return stream.getData(); 00099 } 00100 00101 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00102 { 00103 ros::serialization::IStream stream(read_ptr, 1000000000); 00104 ros::serialization::deserialize(stream, header); 00105 ros::serialization::deserialize(stream, charge); 00106 ros::serialization::deserialize(stream, capacity); 00107 return stream.getData(); 00108 } 00109 00110 ROS_DEPRECATED virtual uint32_t serializationLength() const 00111 { 00112 uint32_t size = 0; 00113 size += ros::serialization::serializationLength(header); 00114 size += ros::serialization::serializationLength(charge); 00115 size += ros::serialization::serializationLength(capacity); 00116 return size; 00117 } 00118 00119 typedef boost::shared_ptr< ::erratic_player::BatteryState_<ContainerAllocator> > Ptr; 00120 typedef boost::shared_ptr< ::erratic_player::BatteryState_<ContainerAllocator> const> ConstPtr; 00121 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00122 }; // struct BatteryState 00123 typedef ::erratic_player::BatteryState_<std::allocator<void> > BatteryState; 00124 00125 typedef boost::shared_ptr< ::erratic_player::BatteryState> BatteryStatePtr; 00126 typedef boost::shared_ptr< ::erratic_player::BatteryState const> BatteryStateConstPtr; 00127 00128 00129 template<typename ContainerAllocator> 00130 std::ostream& operator<<(std::ostream& s, const ::erratic_player::BatteryState_<ContainerAllocator> & v) 00131 { 00132 ros::message_operations::Printer< ::erratic_player::BatteryState_<ContainerAllocator> >::stream(s, "", v); 00133 return s;} 00134 00135 } // namespace erratic_player 00136 00137 namespace ros 00138 { 00139 namespace message_traits 00140 { 00141 template<class ContainerAllocator> struct IsMessage< ::erratic_player::BatteryState_<ContainerAllocator> > : public TrueType {}; 00142 template<class ContainerAllocator> struct IsMessage< ::erratic_player::BatteryState_<ContainerAllocator> const> : public TrueType {}; 00143 template<class ContainerAllocator> 00144 struct MD5Sum< ::erratic_player::BatteryState_<ContainerAllocator> > { 00145 static const char* value() 00146 { 00147 return "df2a7089f2b6c7d531f3fa587a65bbf2"; 00148 } 00149 00150 static const char* value(const ::erratic_player::BatteryState_<ContainerAllocator> &) { return value(); } 00151 static const uint64_t static_value1 = 0xdf2a7089f2b6c7d5ULL; 00152 static const uint64_t static_value2 = 0x31f3fa587a65bbf2ULL; 00153 }; 00154 00155 template<class ContainerAllocator> 00156 struct DataType< ::erratic_player::BatteryState_<ContainerAllocator> > { 00157 static const char* value() 00158 { 00159 return "erratic_player/BatteryState"; 00160 } 00161 00162 static const char* value(const ::erratic_player::BatteryState_<ContainerAllocator> &) { return value(); } 00163 }; 00164 00165 template<class ContainerAllocator> 00166 struct Definition< ::erratic_player::BatteryState_<ContainerAllocator> > { 00167 static const char* value() 00168 { 00169 return "Header header\n\ 00170 float32 charge\n\ 00171 float32 capacity\n\ 00172 \n\ 00173 ================================================================================\n\ 00174 MSG: std_msgs/Header\n\ 00175 # Standard metadata for higher-level stamped data types.\n\ 00176 # This is generally used to communicate timestamped data \n\ 00177 # in a particular coordinate frame.\n\ 00178 # \n\ 00179 # sequence ID: consecutively increasing ID \n\ 00180 uint32 seq\n\ 00181 #Two-integer timestamp that is expressed as:\n\ 00182 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00183 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00184 # time-handling sugar is provided by the client library\n\ 00185 time stamp\n\ 00186 #Frame this data is associated with\n\ 00187 # 0: no frame\n\ 00188 # 1: global frame\n\ 00189 string frame_id\n\ 00190 \n\ 00191 "; 00192 } 00193 00194 static const char* value(const ::erratic_player::BatteryState_<ContainerAllocator> &) { return value(); } 00195 }; 00196 00197 template<class ContainerAllocator> struct HasHeader< ::erratic_player::BatteryState_<ContainerAllocator> > : public TrueType {}; 00198 template<class ContainerAllocator> struct HasHeader< const ::erratic_player::BatteryState_<ContainerAllocator> > : public TrueType {}; 00199 } // namespace message_traits 00200 } // namespace ros 00201 00202 namespace ros 00203 { 00204 namespace serialization 00205 { 00206 00207 template<class ContainerAllocator> struct Serializer< ::erratic_player::BatteryState_<ContainerAllocator> > 00208 { 00209 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00210 { 00211 stream.next(m.header); 00212 stream.next(m.charge); 00213 stream.next(m.capacity); 00214 } 00215 00216 ROS_DECLARE_ALLINONE_SERIALIZER; 00217 }; // struct BatteryState_ 00218 } // namespace serialization 00219 } // namespace ros 00220 00221 namespace ros 00222 { 00223 namespace message_operations 00224 { 00225 00226 template<class ContainerAllocator> 00227 struct Printer< ::erratic_player::BatteryState_<ContainerAllocator> > 00228 { 00229 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::erratic_player::BatteryState_<ContainerAllocator> & v) 00230 { 00231 s << indent << "header: "; 00232 s << std::endl; 00233 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header); 00234 s << indent << "charge: "; 00235 Printer<float>::stream(s, indent + " ", v.charge); 00236 s << indent << "capacity: "; 00237 Printer<float>::stream(s, indent + " ", v.capacity); 00238 } 00239 }; 00240 00241 00242 } // namespace message_operations 00243 } // namespace ros 00244 00245 #endif // ERRATIC_PLAYER_MESSAGE_BATTERYSTATE_H 00246