00001
00002 #ifndef WGE100_CAMERA_SERVICE_BOARDCONFIG_H
00003 #define WGE100_CAMERA_SERVICE_BOARDCONFIG_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 "ros/service_traits.h"
00014
00015
00016
00017
00018 namespace wge100_camera
00019 {
00020 template <class ContainerAllocator>
00021 struct BoardConfigRequest_ : public ros::Message
00022 {
00023 typedef BoardConfigRequest_<ContainerAllocator> Type;
00024
00025 BoardConfigRequest_()
00026 : serial(0)
00027 , mac()
00028 {
00029 }
00030
00031 BoardConfigRequest_(const ContainerAllocator& _alloc)
00032 : serial(0)
00033 , mac(_alloc)
00034 {
00035 }
00036
00037 typedef uint32_t _serial_type;
00038 uint32_t serial;
00039
00040 typedef std::vector<uint8_t, typename ContainerAllocator::template rebind<uint8_t>::other > _mac_type;
00041 std::vector<uint8_t, typename ContainerAllocator::template rebind<uint8_t>::other > mac;
00042
00043
00044 ROS_DEPRECATED uint32_t get_mac_size() const { return (uint32_t)mac.size(); }
00045 ROS_DEPRECATED void set_mac_size(uint32_t size) { mac.resize((size_t)size); }
00046 ROS_DEPRECATED void get_mac_vec(std::vector<uint8_t, typename ContainerAllocator::template rebind<uint8_t>::other > & vec) const { vec = this->mac; }
00047 ROS_DEPRECATED void set_mac_vec(const std::vector<uint8_t, typename ContainerAllocator::template rebind<uint8_t>::other > & vec) { this->mac = vec; }
00048 private:
00049 static const char* __s_getDataType_() { return "wge100_camera/BoardConfigRequest"; }
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 "ec9bad54b410ebc79183d761c609dd76"; }
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_getServerMD5Sum_() { return "785c6974990d2659ed40a68807b3f3bd"; }
00064 public:
00065 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); }
00066
00067 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); }
00068
00069 private:
00070 static const char* __s_getMessageDefinition_() { return "\n\
00071 \n\
00072 uint32 serial\n\
00073 uint8[] mac\n\
00074 \n\
00075 "; }
00076 public:
00077 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00078
00079 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00080
00081 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00082 {
00083 ros::serialization::OStream stream(write_ptr, 1000000000);
00084 ros::serialization::serialize(stream, serial);
00085 ros::serialization::serialize(stream, mac);
00086 return stream.getData();
00087 }
00088
00089 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00090 {
00091 ros::serialization::IStream stream(read_ptr, 1000000000);
00092 ros::serialization::deserialize(stream, serial);
00093 ros::serialization::deserialize(stream, mac);
00094 return stream.getData();
00095 }
00096
00097 ROS_DEPRECATED virtual uint32_t serializationLength() const
00098 {
00099 uint32_t size = 0;
00100 size += ros::serialization::serializationLength(serial);
00101 size += ros::serialization::serializationLength(mac);
00102 return size;
00103 }
00104
00105 typedef boost::shared_ptr< ::wge100_camera::BoardConfigRequest_<ContainerAllocator> > Ptr;
00106 typedef boost::shared_ptr< ::wge100_camera::BoardConfigRequest_<ContainerAllocator> const> ConstPtr;
00107 };
00108 typedef ::wge100_camera::BoardConfigRequest_<std::allocator<void> > BoardConfigRequest;
00109
00110 typedef boost::shared_ptr< ::wge100_camera::BoardConfigRequest> BoardConfigRequestPtr;
00111 typedef boost::shared_ptr< ::wge100_camera::BoardConfigRequest const> BoardConfigRequestConstPtr;
00112
00113
00114 template <class ContainerAllocator>
00115 struct BoardConfigResponse_ : public ros::Message
00116 {
00117 typedef BoardConfigResponse_<ContainerAllocator> Type;
00118
00119 BoardConfigResponse_()
00120 : success(0)
00121 {
00122 }
00123
00124 BoardConfigResponse_(const ContainerAllocator& _alloc)
00125 : success(0)
00126 {
00127 }
00128
00129 typedef uint8_t _success_type;
00130 uint8_t success;
00131
00132
00133 private:
00134 static const char* __s_getDataType_() { return "wge100_camera/BoardConfigResponse"; }
00135 public:
00136 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00137
00138 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00139
00140 private:
00141 static const char* __s_getMD5Sum_() { return "6cca7c80398b8b31af04b80534923f16"; }
00142 public:
00143 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00144
00145 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00146
00147 private:
00148 static const char* __s_getServerMD5Sum_() { return "785c6974990d2659ed40a68807b3f3bd"; }
00149 public:
00150 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); }
00151
00152 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); }
00153
00154 private:
00155 static const char* __s_getMessageDefinition_() { return "uint8 success\n\
00156 \n\
00157 \n\
00158 "; }
00159 public:
00160 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00161
00162 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00163
00164 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00165 {
00166 ros::serialization::OStream stream(write_ptr, 1000000000);
00167 ros::serialization::serialize(stream, success);
00168 return stream.getData();
00169 }
00170
00171 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00172 {
00173 ros::serialization::IStream stream(read_ptr, 1000000000);
00174 ros::serialization::deserialize(stream, success);
00175 return stream.getData();
00176 }
00177
00178 ROS_DEPRECATED virtual uint32_t serializationLength() const
00179 {
00180 uint32_t size = 0;
00181 size += ros::serialization::serializationLength(success);
00182 return size;
00183 }
00184
00185 typedef boost::shared_ptr< ::wge100_camera::BoardConfigResponse_<ContainerAllocator> > Ptr;
00186 typedef boost::shared_ptr< ::wge100_camera::BoardConfigResponse_<ContainerAllocator> const> ConstPtr;
00187 };
00188 typedef ::wge100_camera::BoardConfigResponse_<std::allocator<void> > BoardConfigResponse;
00189
00190 typedef boost::shared_ptr< ::wge100_camera::BoardConfigResponse> BoardConfigResponsePtr;
00191 typedef boost::shared_ptr< ::wge100_camera::BoardConfigResponse const> BoardConfigResponseConstPtr;
00192
00193 struct BoardConfig
00194 {
00195
00196 typedef BoardConfigRequest Request;
00197 typedef BoardConfigResponse Response;
00198 Request request;
00199 Response response;
00200
00201 typedef Request RequestType;
00202 typedef Response ResponseType;
00203 };
00204 }
00205
00206 namespace ros
00207 {
00208 namespace message_traits
00209 {
00210 template<class ContainerAllocator>
00211 struct MD5Sum< ::wge100_camera::BoardConfigRequest_<ContainerAllocator> > {
00212 static const char* value()
00213 {
00214 return "ec9bad54b410ebc79183d761c609dd76";
00215 }
00216
00217 static const char* value(const ::wge100_camera::BoardConfigRequest_<ContainerAllocator> &) { return value(); }
00218 static const uint64_t static_value1 = 0xec9bad54b410ebc7ULL;
00219 static const uint64_t static_value2 = 0x9183d761c609dd76ULL;
00220 };
00221
00222 template<class ContainerAllocator>
00223 struct DataType< ::wge100_camera::BoardConfigRequest_<ContainerAllocator> > {
00224 static const char* value()
00225 {
00226 return "wge100_camera/BoardConfigRequest";
00227 }
00228
00229 static const char* value(const ::wge100_camera::BoardConfigRequest_<ContainerAllocator> &) { return value(); }
00230 };
00231
00232 template<class ContainerAllocator>
00233 struct Definition< ::wge100_camera::BoardConfigRequest_<ContainerAllocator> > {
00234 static const char* value()
00235 {
00236 return "\n\
00237 \n\
00238 uint32 serial\n\
00239 uint8[] mac\n\
00240 \n\
00241 ";
00242 }
00243
00244 static const char* value(const ::wge100_camera::BoardConfigRequest_<ContainerAllocator> &) { return value(); }
00245 };
00246
00247 }
00248 }
00249
00250
00251 namespace ros
00252 {
00253 namespace message_traits
00254 {
00255 template<class ContainerAllocator>
00256 struct MD5Sum< ::wge100_camera::BoardConfigResponse_<ContainerAllocator> > {
00257 static const char* value()
00258 {
00259 return "6cca7c80398b8b31af04b80534923f16";
00260 }
00261
00262 static const char* value(const ::wge100_camera::BoardConfigResponse_<ContainerAllocator> &) { return value(); }
00263 static const uint64_t static_value1 = 0x6cca7c80398b8b31ULL;
00264 static const uint64_t static_value2 = 0xaf04b80534923f16ULL;
00265 };
00266
00267 template<class ContainerAllocator>
00268 struct DataType< ::wge100_camera::BoardConfigResponse_<ContainerAllocator> > {
00269 static const char* value()
00270 {
00271 return "wge100_camera/BoardConfigResponse";
00272 }
00273
00274 static const char* value(const ::wge100_camera::BoardConfigResponse_<ContainerAllocator> &) { return value(); }
00275 };
00276
00277 template<class ContainerAllocator>
00278 struct Definition< ::wge100_camera::BoardConfigResponse_<ContainerAllocator> > {
00279 static const char* value()
00280 {
00281 return "uint8 success\n\
00282 \n\
00283 \n\
00284 ";
00285 }
00286
00287 static const char* value(const ::wge100_camera::BoardConfigResponse_<ContainerAllocator> &) { return value(); }
00288 };
00289
00290 template<class ContainerAllocator> struct IsFixedSize< ::wge100_camera::BoardConfigResponse_<ContainerAllocator> > : public TrueType {};
00291 }
00292 }
00293
00294 namespace ros
00295 {
00296 namespace serialization
00297 {
00298
00299 template<class ContainerAllocator> struct Serializer< ::wge100_camera::BoardConfigRequest_<ContainerAllocator> >
00300 {
00301 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00302 {
00303 stream.next(m.serial);
00304 stream.next(m.mac);
00305 }
00306
00307 ROS_DECLARE_ALLINONE_SERIALIZER;
00308 };
00309 }
00310 }
00311
00312
00313 namespace ros
00314 {
00315 namespace serialization
00316 {
00317
00318 template<class ContainerAllocator> struct Serializer< ::wge100_camera::BoardConfigResponse_<ContainerAllocator> >
00319 {
00320 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00321 {
00322 stream.next(m.success);
00323 }
00324
00325 ROS_DECLARE_ALLINONE_SERIALIZER;
00326 };
00327 }
00328 }
00329
00330 namespace ros
00331 {
00332 namespace service_traits
00333 {
00334 template<>
00335 struct MD5Sum<wge100_camera::BoardConfig> {
00336 static const char* value()
00337 {
00338 return "785c6974990d2659ed40a68807b3f3bd";
00339 }
00340
00341 static const char* value(const wge100_camera::BoardConfig&) { return value(); }
00342 };
00343
00344 template<>
00345 struct DataType<wge100_camera::BoardConfig> {
00346 static const char* value()
00347 {
00348 return "wge100_camera/BoardConfig";
00349 }
00350
00351 static const char* value(const wge100_camera::BoardConfig&) { return value(); }
00352 };
00353
00354 template<class ContainerAllocator>
00355 struct MD5Sum<wge100_camera::BoardConfigRequest_<ContainerAllocator> > {
00356 static const char* value()
00357 {
00358 return "785c6974990d2659ed40a68807b3f3bd";
00359 }
00360
00361 static const char* value(const wge100_camera::BoardConfigRequest_<ContainerAllocator> &) { return value(); }
00362 };
00363
00364 template<class ContainerAllocator>
00365 struct DataType<wge100_camera::BoardConfigRequest_<ContainerAllocator> > {
00366 static const char* value()
00367 {
00368 return "wge100_camera/BoardConfig";
00369 }
00370
00371 static const char* value(const wge100_camera::BoardConfigRequest_<ContainerAllocator> &) { return value(); }
00372 };
00373
00374 template<class ContainerAllocator>
00375 struct MD5Sum<wge100_camera::BoardConfigResponse_<ContainerAllocator> > {
00376 static const char* value()
00377 {
00378 return "785c6974990d2659ed40a68807b3f3bd";
00379 }
00380
00381 static const char* value(const wge100_camera::BoardConfigResponse_<ContainerAllocator> &) { return value(); }
00382 };
00383
00384 template<class ContainerAllocator>
00385 struct DataType<wge100_camera::BoardConfigResponse_<ContainerAllocator> > {
00386 static const char* value()
00387 {
00388 return "wge100_camera/BoardConfig";
00389 }
00390
00391 static const char* value(const wge100_camera::BoardConfigResponse_<ContainerAllocator> &) { return value(); }
00392 };
00393
00394 }
00395 }
00396
00397 #endif // WGE100_CAMERA_SERVICE_BOARDCONFIG_H
00398