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