$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-srs_public/doc_stacks/2013-03-05_12-22-34.333426/srs_public/srs_env_model/srv/GetContext.srv */ 00002 #ifndef SRS_ENV_MODEL_SERVICE_GETCONTEXT_H 00003 #define SRS_ENV_MODEL_SERVICE_GETCONTEXT_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 #include "srs_env_model/Context.h" 00022 00023 namespace srs_env_model 00024 { 00025 template <class ContainerAllocator> 00026 struct GetContextRequest_ { 00027 typedef GetContextRequest_<ContainerAllocator> Type; 00028 00029 GetContextRequest_() 00030 { 00031 } 00032 00033 GetContextRequest_(const ContainerAllocator& _alloc) 00034 { 00035 } 00036 00037 00038 private: 00039 static const char* __s_getDataType_() { return "srs_env_model/GetContextRequest"; } 00040 public: 00041 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00042 00043 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00044 00045 private: 00046 static const char* __s_getMD5Sum_() { return "d41d8cd98f00b204e9800998ecf8427e"; } 00047 public: 00048 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00049 00050 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00051 00052 private: 00053 static const char* __s_getServerMD5Sum_() { return "6a74ccdc53283cd0eb91737b2475db86"; } 00054 public: 00055 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } 00056 00057 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } 00058 00059 private: 00060 static const char* __s_getMessageDefinition_() { return "\n\ 00061 "; } 00062 public: 00063 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00064 00065 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00066 00067 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00068 { 00069 ros::serialization::OStream stream(write_ptr, 1000000000); 00070 return stream.getData(); 00071 } 00072 00073 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00074 { 00075 ros::serialization::IStream stream(read_ptr, 1000000000); 00076 return stream.getData(); 00077 } 00078 00079 ROS_DEPRECATED virtual uint32_t serializationLength() const 00080 { 00081 uint32_t size = 0; 00082 return size; 00083 } 00084 00085 typedef boost::shared_ptr< ::srs_env_model::GetContextRequest_<ContainerAllocator> > Ptr; 00086 typedef boost::shared_ptr< ::srs_env_model::GetContextRequest_<ContainerAllocator> const> ConstPtr; 00087 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00088 }; // struct GetContextRequest 00089 typedef ::srs_env_model::GetContextRequest_<std::allocator<void> > GetContextRequest; 00090 00091 typedef boost::shared_ptr< ::srs_env_model::GetContextRequest> GetContextRequestPtr; 00092 typedef boost::shared_ptr< ::srs_env_model::GetContextRequest const> GetContextRequestConstPtr; 00093 00094 00095 template <class ContainerAllocator> 00096 struct GetContextResponse_ { 00097 typedef GetContextResponse_<ContainerAllocator> Type; 00098 00099 GetContextResponse_() 00100 : context() 00101 { 00102 } 00103 00104 GetContextResponse_(const ContainerAllocator& _alloc) 00105 : context(_alloc) 00106 { 00107 } 00108 00109 typedef ::srs_env_model::Context_<ContainerAllocator> _context_type; 00110 ::srs_env_model::Context_<ContainerAllocator> context; 00111 00112 00113 private: 00114 static const char* __s_getDataType_() { return "srs_env_model/GetContextResponse"; } 00115 public: 00116 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00117 00118 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00119 00120 private: 00121 static const char* __s_getMD5Sum_() { return "6a74ccdc53283cd0eb91737b2475db86"; } 00122 public: 00123 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00124 00125 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00126 00127 private: 00128 static const char* __s_getServerMD5Sum_() { return "6a74ccdc53283cd0eb91737b2475db86"; } 00129 public: 00130 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } 00131 00132 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } 00133 00134 private: 00135 static const char* __s_getMessageDefinition_() { return "srs_env_model/Context context\n\ 00136 \n\ 00137 \n\ 00138 ================================================================================\n\ 00139 MSG: srs_env_model/Context\n\ 00140 # context tags\n\ 00141 uint8 status_tag\n\ 00142 uint8 action_tag\n\ 00143 uint8 connection_tag\n\ 00144 uint8 collision_hazard_tag\n\ 00145 \n\ 00146 # status tags\n\ 00147 uint8 OK=0\n\ 00148 uint8 EMERGENCY=1\n\ 00149 \n\ 00150 # action tags\n\ 00151 uint8 DEFAULT=0\n\ 00152 uint8 GRASPING=1\n\ 00153 uint8 MOVING=2\n\ 00154 \n\ 00155 # connection tags\n\ 00156 uint8 UNKNOWN=0\n\ 00157 uint8 LAN=1\n\ 00158 uint8 WIFI=2\n\ 00159 \n\ 00160 # collision hazard tags\n\ 00161 uint8 NONE=0 \n\ 00162 uint8 LOW=1\n\ 00163 uint8 MEDIUM=2\n\ 00164 uint8 HIGH=3\n\ 00165 uint8 COLLISION=4\n\ 00166 \n\ 00167 "; } 00168 public: 00169 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00170 00171 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00172 00173 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00174 { 00175 ros::serialization::OStream stream(write_ptr, 1000000000); 00176 ros::serialization::serialize(stream, context); 00177 return stream.getData(); 00178 } 00179 00180 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00181 { 00182 ros::serialization::IStream stream(read_ptr, 1000000000); 00183 ros::serialization::deserialize(stream, context); 00184 return stream.getData(); 00185 } 00186 00187 ROS_DEPRECATED virtual uint32_t serializationLength() const 00188 { 00189 uint32_t size = 0; 00190 size += ros::serialization::serializationLength(context); 00191 return size; 00192 } 00193 00194 typedef boost::shared_ptr< ::srs_env_model::GetContextResponse_<ContainerAllocator> > Ptr; 00195 typedef boost::shared_ptr< ::srs_env_model::GetContextResponse_<ContainerAllocator> const> ConstPtr; 00196 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00197 }; // struct GetContextResponse 00198 typedef ::srs_env_model::GetContextResponse_<std::allocator<void> > GetContextResponse; 00199 00200 typedef boost::shared_ptr< ::srs_env_model::GetContextResponse> GetContextResponsePtr; 00201 typedef boost::shared_ptr< ::srs_env_model::GetContextResponse const> GetContextResponseConstPtr; 00202 00203 struct GetContext 00204 { 00205 00206 typedef GetContextRequest Request; 00207 typedef GetContextResponse Response; 00208 Request request; 00209 Response response; 00210 00211 typedef Request RequestType; 00212 typedef Response ResponseType; 00213 }; // struct GetContext 00214 } // namespace srs_env_model 00215 00216 namespace ros 00217 { 00218 namespace message_traits 00219 { 00220 template<class ContainerAllocator> struct IsMessage< ::srs_env_model::GetContextRequest_<ContainerAllocator> > : public TrueType {}; 00221 template<class ContainerAllocator> struct IsMessage< ::srs_env_model::GetContextRequest_<ContainerAllocator> const> : public TrueType {}; 00222 template<class ContainerAllocator> 00223 struct MD5Sum< ::srs_env_model::GetContextRequest_<ContainerAllocator> > { 00224 static const char* value() 00225 { 00226 return "d41d8cd98f00b204e9800998ecf8427e"; 00227 } 00228 00229 static const char* value(const ::srs_env_model::GetContextRequest_<ContainerAllocator> &) { return value(); } 00230 static const uint64_t static_value1 = 0xd41d8cd98f00b204ULL; 00231 static const uint64_t static_value2 = 0xe9800998ecf8427eULL; 00232 }; 00233 00234 template<class ContainerAllocator> 00235 struct DataType< ::srs_env_model::GetContextRequest_<ContainerAllocator> > { 00236 static const char* value() 00237 { 00238 return "srs_env_model/GetContextRequest"; 00239 } 00240 00241 static const char* value(const ::srs_env_model::GetContextRequest_<ContainerAllocator> &) { return value(); } 00242 }; 00243 00244 template<class ContainerAllocator> 00245 struct Definition< ::srs_env_model::GetContextRequest_<ContainerAllocator> > { 00246 static const char* value() 00247 { 00248 return "\n\ 00249 "; 00250 } 00251 00252 static const char* value(const ::srs_env_model::GetContextRequest_<ContainerAllocator> &) { return value(); } 00253 }; 00254 00255 template<class ContainerAllocator> struct IsFixedSize< ::srs_env_model::GetContextRequest_<ContainerAllocator> > : public TrueType {}; 00256 } // namespace message_traits 00257 } // namespace ros 00258 00259 00260 namespace ros 00261 { 00262 namespace message_traits 00263 { 00264 template<class ContainerAllocator> struct IsMessage< ::srs_env_model::GetContextResponse_<ContainerAllocator> > : public TrueType {}; 00265 template<class ContainerAllocator> struct IsMessage< ::srs_env_model::GetContextResponse_<ContainerAllocator> const> : public TrueType {}; 00266 template<class ContainerAllocator> 00267 struct MD5Sum< ::srs_env_model::GetContextResponse_<ContainerAllocator> > { 00268 static const char* value() 00269 { 00270 return "6a74ccdc53283cd0eb91737b2475db86"; 00271 } 00272 00273 static const char* value(const ::srs_env_model::GetContextResponse_<ContainerAllocator> &) { return value(); } 00274 static const uint64_t static_value1 = 0x6a74ccdc53283cd0ULL; 00275 static const uint64_t static_value2 = 0xeb91737b2475db86ULL; 00276 }; 00277 00278 template<class ContainerAllocator> 00279 struct DataType< ::srs_env_model::GetContextResponse_<ContainerAllocator> > { 00280 static const char* value() 00281 { 00282 return "srs_env_model/GetContextResponse"; 00283 } 00284 00285 static const char* value(const ::srs_env_model::GetContextResponse_<ContainerAllocator> &) { return value(); } 00286 }; 00287 00288 template<class ContainerAllocator> 00289 struct Definition< ::srs_env_model::GetContextResponse_<ContainerAllocator> > { 00290 static const char* value() 00291 { 00292 return "srs_env_model/Context context\n\ 00293 \n\ 00294 \n\ 00295 ================================================================================\n\ 00296 MSG: srs_env_model/Context\n\ 00297 # context tags\n\ 00298 uint8 status_tag\n\ 00299 uint8 action_tag\n\ 00300 uint8 connection_tag\n\ 00301 uint8 collision_hazard_tag\n\ 00302 \n\ 00303 # status tags\n\ 00304 uint8 OK=0\n\ 00305 uint8 EMERGENCY=1\n\ 00306 \n\ 00307 # action tags\n\ 00308 uint8 DEFAULT=0\n\ 00309 uint8 GRASPING=1\n\ 00310 uint8 MOVING=2\n\ 00311 \n\ 00312 # connection tags\n\ 00313 uint8 UNKNOWN=0\n\ 00314 uint8 LAN=1\n\ 00315 uint8 WIFI=2\n\ 00316 \n\ 00317 # collision hazard tags\n\ 00318 uint8 NONE=0 \n\ 00319 uint8 LOW=1\n\ 00320 uint8 MEDIUM=2\n\ 00321 uint8 HIGH=3\n\ 00322 uint8 COLLISION=4\n\ 00323 \n\ 00324 "; 00325 } 00326 00327 static const char* value(const ::srs_env_model::GetContextResponse_<ContainerAllocator> &) { return value(); } 00328 }; 00329 00330 template<class ContainerAllocator> struct IsFixedSize< ::srs_env_model::GetContextResponse_<ContainerAllocator> > : public TrueType {}; 00331 } // namespace message_traits 00332 } // namespace ros 00333 00334 namespace ros 00335 { 00336 namespace serialization 00337 { 00338 00339 template<class ContainerAllocator> struct Serializer< ::srs_env_model::GetContextRequest_<ContainerAllocator> > 00340 { 00341 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00342 { 00343 } 00344 00345 ROS_DECLARE_ALLINONE_SERIALIZER; 00346 }; // struct GetContextRequest_ 00347 } // namespace serialization 00348 } // namespace ros 00349 00350 00351 namespace ros 00352 { 00353 namespace serialization 00354 { 00355 00356 template<class ContainerAllocator> struct Serializer< ::srs_env_model::GetContextResponse_<ContainerAllocator> > 00357 { 00358 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00359 { 00360 stream.next(m.context); 00361 } 00362 00363 ROS_DECLARE_ALLINONE_SERIALIZER; 00364 }; // struct GetContextResponse_ 00365 } // namespace serialization 00366 } // namespace ros 00367 00368 namespace ros 00369 { 00370 namespace service_traits 00371 { 00372 template<> 00373 struct MD5Sum<srs_env_model::GetContext> { 00374 static const char* value() 00375 { 00376 return "6a74ccdc53283cd0eb91737b2475db86"; 00377 } 00378 00379 static const char* value(const srs_env_model::GetContext&) { return value(); } 00380 }; 00381 00382 template<> 00383 struct DataType<srs_env_model::GetContext> { 00384 static const char* value() 00385 { 00386 return "srs_env_model/GetContext"; 00387 } 00388 00389 static const char* value(const srs_env_model::GetContext&) { return value(); } 00390 }; 00391 00392 template<class ContainerAllocator> 00393 struct MD5Sum<srs_env_model::GetContextRequest_<ContainerAllocator> > { 00394 static const char* value() 00395 { 00396 return "6a74ccdc53283cd0eb91737b2475db86"; 00397 } 00398 00399 static const char* value(const srs_env_model::GetContextRequest_<ContainerAllocator> &) { return value(); } 00400 }; 00401 00402 template<class ContainerAllocator> 00403 struct DataType<srs_env_model::GetContextRequest_<ContainerAllocator> > { 00404 static const char* value() 00405 { 00406 return "srs_env_model/GetContext"; 00407 } 00408 00409 static const char* value(const srs_env_model::GetContextRequest_<ContainerAllocator> &) { return value(); } 00410 }; 00411 00412 template<class ContainerAllocator> 00413 struct MD5Sum<srs_env_model::GetContextResponse_<ContainerAllocator> > { 00414 static const char* value() 00415 { 00416 return "6a74ccdc53283cd0eb91737b2475db86"; 00417 } 00418 00419 static const char* value(const srs_env_model::GetContextResponse_<ContainerAllocator> &) { return value(); } 00420 }; 00421 00422 template<class ContainerAllocator> 00423 struct DataType<srs_env_model::GetContextResponse_<ContainerAllocator> > { 00424 static const char* value() 00425 { 00426 return "srs_env_model/GetContext"; 00427 } 00428 00429 static const char* value(const srs_env_model::GetContextResponse_<ContainerAllocator> &) { return value(); } 00430 }; 00431 00432 } // namespace service_traits 00433 } // namespace ros 00434 00435 #endif // SRS_ENV_MODEL_SERVICE_GETCONTEXT_H 00436