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