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