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