Project: bml_srvs License: BSD Dependencies: Used by: |
bml_srvs/srv_gen/cpp/include/bml_srvs/BMLRealization.hGo to the documentation of this file.00001 /* Auto-generated by genmsg_cpp for file /home/mel/workspace/ros_stacks/bml/bml_srvs/srv/BMLRealization.srv */ 00002 #ifndef BML_SRVS_SERVICE_BMLREALIZATION_H 00003 #define BML_SRVS_SERVICE_BMLREALIZATION_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 #include "bml_msgs/Flag.h" 00018 #include "bml_msgs/BehaviorResult.h" 00019 00020 namespace bml_srvs 00021 { 00022 template <class ContainerAllocator> 00023 struct BMLRealizationRequest_ : public ros::Message 00024 { 00025 typedef BMLRealizationRequest_<ContainerAllocator> Type; 00026 00027 BMLRealizationRequest_() 00028 : bml() 00029 { 00030 } 00031 00032 BMLRealizationRequest_(const ContainerAllocator& _alloc) 00033 : bml(_alloc) 00034 { 00035 } 00036 00037 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _bml_type; 00038 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > bml; 00039 00040 00041 private: 00042 static const char* __s_getDataType_() { return "bml_srvs/BMLRealizationRequest"; } 00043 public: 00044 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00045 00046 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00047 00048 private: 00049 static const char* __s_getMD5Sum_() { return "20958fc417a1ccaa0f83d49e81d39686"; } 00050 public: 00051 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00052 00053 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00054 00055 private: 00056 static const char* __s_getServerMD5Sum_() { return "7c3064286033efc4132764d2907dd179"; } 00057 public: 00058 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } 00059 00060 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } 00061 00062 private: 00063 static const char* __s_getMessageDefinition_() { return "\n\ 00064 string bml\n\ 00065 \n\ 00066 \n\ 00067 "; } 00068 public: 00069 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00070 00071 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00072 00073 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00074 { 00075 ros::serialization::OStream stream(write_ptr, 1000000000); 00076 ros::serialization::serialize(stream, bml); 00077 return stream.getData(); 00078 } 00079 00080 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00081 { 00082 ros::serialization::IStream stream(read_ptr, 1000000000); 00083 ros::serialization::deserialize(stream, bml); 00084 return stream.getData(); 00085 } 00086 00087 ROS_DEPRECATED virtual uint32_t serializationLength() const 00088 { 00089 uint32_t size = 0; 00090 size += ros::serialization::serializationLength(bml); 00091 return size; 00092 } 00093 00094 typedef boost::shared_ptr< ::bml_srvs::BMLRealizationRequest_<ContainerAllocator> > Ptr; 00095 typedef boost::shared_ptr< ::bml_srvs::BMLRealizationRequest_<ContainerAllocator> const> ConstPtr; 00096 }; // struct BMLRealizationRequest 00097 typedef ::bml_srvs::BMLRealizationRequest_<std::allocator<void> > BMLRealizationRequest; 00098 00099 typedef boost::shared_ptr< ::bml_srvs::BMLRealizationRequest> BMLRealizationRequestPtr; 00100 typedef boost::shared_ptr< ::bml_srvs::BMLRealizationRequest const> BMLRealizationRequestConstPtr; 00101 00102 00103 template <class ContainerAllocator> 00104 struct BMLRealizationResponse_ : public ros::Message 00105 { 00106 typedef BMLRealizationResponse_<ContainerAllocator> Type; 00107 00108 BMLRealizationResponse_() 00109 : success() 00110 , behaviors() 00111 { 00112 } 00113 00114 BMLRealizationResponse_(const ContainerAllocator& _alloc) 00115 : success(_alloc) 00116 , behaviors(_alloc) 00117 { 00118 } 00119 00120 typedef ::bml_msgs::Flag_<ContainerAllocator> _success_type; 00121 ::bml_msgs::Flag_<ContainerAllocator> success; 00122 00123 typedef std::vector< ::bml_msgs::BehaviorResult_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::bml_msgs::BehaviorResult_<ContainerAllocator> >::other > _behaviors_type; 00124 std::vector< ::bml_msgs::BehaviorResult_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::bml_msgs::BehaviorResult_<ContainerAllocator> >::other > behaviors; 00125 00126 00127 ROS_DEPRECATED uint32_t get_behaviors_size() const { return (uint32_t)behaviors.size(); } 00128 ROS_DEPRECATED void set_behaviors_size(uint32_t size) { behaviors.resize((size_t)size); } 00129 ROS_DEPRECATED void get_behaviors_vec(std::vector< ::bml_msgs::BehaviorResult_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::bml_msgs::BehaviorResult_<ContainerAllocator> >::other > & vec) const { vec = this->behaviors; } 00130 ROS_DEPRECATED void set_behaviors_vec(const std::vector< ::bml_msgs::BehaviorResult_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::bml_msgs::BehaviorResult_<ContainerAllocator> >::other > & vec) { this->behaviors = vec; } 00131 private: 00132 static const char* __s_getDataType_() { return "bml_srvs/BMLRealizationResponse"; } 00133 public: 00134 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00135 00136 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00137 00138 private: 00139 static const char* __s_getMD5Sum_() { return "bed86125cab4a857b17310fc08631b13"; } 00140 public: 00141 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00142 00143 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00144 00145 private: 00146 static const char* __s_getServerMD5Sum_() { return "7c3064286033efc4132764d2907dd179"; } 00147 public: 00148 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } 00149 00150 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } 00151 00152 private: 00153 static const char* __s_getMessageDefinition_() { return "\n\ 00154 bml_msgs/Flag success\n\ 00155 bml_msgs/BehaviorResult[] behaviors\n\ 00156 \n\ 00157 \n\ 00158 ================================================================================\n\ 00159 MSG: bml_msgs/Flag\n\ 00160 # A flag which determines between TRUE and FALSE\n\ 00161 int8 value\n\ 00162 \n\ 00163 # Constant for an invalid value\n\ 00164 int8 INVALID=-1\n\ 00165 \n\ 00166 # Constants which define the values for true\n\ 00167 int8 TRUE=1\n\ 00168 int8 START=1\n\ 00169 int8 BEGIN=1\n\ 00170 int8 SUCCESS=1\n\ 00171 int8 DONE=1\n\ 00172 \n\ 00173 # Constants which define the values for false\n\ 00174 int8 FALSE=0\n\ 00175 int8 STOP=0\n\ 00176 int8 END=0\n\ 00177 int8 FAILURE=0\n\ 00178 int8 NOT_DONE=0\n\ 00179 \n\ 00180 # Constants for response types\n\ 00181 int8 OPTIONAL_RESPONSE=0\n\ 00182 int8 IS_A_RESPONSE=1\n\ 00183 int8 REQUIRES_RESPONSE=2\n\ 00184 int8 BACKCHANNEL=3\n\ 00185 \n\ 00186 # Constants which define the values for the side to use\n\ 00187 int8 NEITHER=0\n\ 00188 int8 LEFT=1\n\ 00189 int8 RIGHT=2\n\ 00190 int8 EITHER=3\n\ 00191 \n\ 00192 ================================================================================\n\ 00193 MSG: bml_msgs/BehaviorResult\n\ 00194 # this message is used to link a result flag to an id\n\ 00195 Behavior behavior\n\ 00196 Flag result\n\ 00197 \n\ 00198 ================================================================================\n\ 00199 MSG: bml_msgs/Behavior\n\ 00200 # this message type contains the information for basic behavior types\n\ 00201 \n\ 00202 #constants for the synch point\n\ 00203 uint8 START=0\n\ 00204 uint8 READY=1\n\ 00205 uint8 STROKE_START=2\n\ 00206 uint8 STROKE=3\n\ 00207 uint8 STROKE_END=4\n\ 00208 uint8 RELAX=5\n\ 00209 uint8 END=6\n\ 00210 \n\ 00211 # the fields\n\ 00212 string id\n\ 00213 uint8 synchPoint\n\ 00214 \n\ 00215 "; } 00216 public: 00217 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00218 00219 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00220 00221 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00222 { 00223 ros::serialization::OStream stream(write_ptr, 1000000000); 00224 ros::serialization::serialize(stream, success); 00225 ros::serialization::serialize(stream, behaviors); 00226 return stream.getData(); 00227 } 00228 00229 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00230 { 00231 ros::serialization::IStream stream(read_ptr, 1000000000); 00232 ros::serialization::deserialize(stream, success); 00233 ros::serialization::deserialize(stream, behaviors); 00234 return stream.getData(); 00235 } 00236 00237 ROS_DEPRECATED virtual uint32_t serializationLength() const 00238 { 00239 uint32_t size = 0; 00240 size += ros::serialization::serializationLength(success); 00241 size += ros::serialization::serializationLength(behaviors); 00242 return size; 00243 } 00244 00245 typedef boost::shared_ptr< ::bml_srvs::BMLRealizationResponse_<ContainerAllocator> > Ptr; 00246 typedef boost::shared_ptr< ::bml_srvs::BMLRealizationResponse_<ContainerAllocator> const> ConstPtr; 00247 }; // struct BMLRealizationResponse 00248 typedef ::bml_srvs::BMLRealizationResponse_<std::allocator<void> > BMLRealizationResponse; 00249 00250 typedef boost::shared_ptr< ::bml_srvs::BMLRealizationResponse> BMLRealizationResponsePtr; 00251 typedef boost::shared_ptr< ::bml_srvs::BMLRealizationResponse const> BMLRealizationResponseConstPtr; 00252 00253 struct BMLRealization 00254 { 00255 00256 typedef BMLRealizationRequest Request; 00257 typedef BMLRealizationResponse Response; 00258 Request request; 00259 Response response; 00260 00261 typedef Request RequestType; 00262 typedef Response ResponseType; 00263 }; // struct BMLRealization 00264 } // namespace bml_srvs 00265 00266 namespace ros 00267 { 00268 namespace message_traits 00269 { 00270 template<class ContainerAllocator> 00271 struct MD5Sum< ::bml_srvs::BMLRealizationRequest_<ContainerAllocator> > { 00272 static const char* value() 00273 { 00274 return "20958fc417a1ccaa0f83d49e81d39686"; 00275 } 00276 00277 static const char* value(const ::bml_srvs::BMLRealizationRequest_<ContainerAllocator> &) { return value(); } 00278 static const uint64_t static_value1 = 0x20958fc417a1ccaaULL; 00279 static const uint64_t static_value2 = 0x0f83d49e81d39686ULL; 00280 }; 00281 00282 template<class ContainerAllocator> 00283 struct DataType< ::bml_srvs::BMLRealizationRequest_<ContainerAllocator> > { 00284 static const char* value() 00285 { 00286 return "bml_srvs/BMLRealizationRequest"; 00287 } 00288 00289 static const char* value(const ::bml_srvs::BMLRealizationRequest_<ContainerAllocator> &) { return value(); } 00290 }; 00291 00292 template<class ContainerAllocator> 00293 struct Definition< ::bml_srvs::BMLRealizationRequest_<ContainerAllocator> > { 00294 static const char* value() 00295 { 00296 return "\n\ 00297 string bml\n\ 00298 \n\ 00299 \n\ 00300 "; 00301 } 00302 00303 static const char* value(const ::bml_srvs::BMLRealizationRequest_<ContainerAllocator> &) { return value(); } 00304 }; 00305 00306 } // namespace message_traits 00307 } // namespace ros 00308 00309 00310 namespace ros 00311 { 00312 namespace message_traits 00313 { 00314 template<class ContainerAllocator> 00315 struct MD5Sum< ::bml_srvs::BMLRealizationResponse_<ContainerAllocator> > { 00316 static const char* value() 00317 { 00318 return "bed86125cab4a857b17310fc08631b13"; 00319 } 00320 00321 static const char* value(const ::bml_srvs::BMLRealizationResponse_<ContainerAllocator> &) { return value(); } 00322 static const uint64_t static_value1 = 0xbed86125cab4a857ULL; 00323 static const uint64_t static_value2 = 0xb17310fc08631b13ULL; 00324 }; 00325 00326 template<class ContainerAllocator> 00327 struct DataType< ::bml_srvs::BMLRealizationResponse_<ContainerAllocator> > { 00328 static const char* value() 00329 { 00330 return "bml_srvs/BMLRealizationResponse"; 00331 } 00332 00333 static const char* value(const ::bml_srvs::BMLRealizationResponse_<ContainerAllocator> &) { return value(); } 00334 }; 00335 00336 template<class ContainerAllocator> 00337 struct Definition< ::bml_srvs::BMLRealizationResponse_<ContainerAllocator> > { 00338 static const char* value() 00339 { 00340 return "\n\ 00341 bml_msgs/Flag success\n\ 00342 bml_msgs/BehaviorResult[] behaviors\n\ 00343 \n\ 00344 \n\ 00345 ================================================================================\n\ 00346 MSG: bml_msgs/Flag\n\ 00347 # A flag which determines between TRUE and FALSE\n\ 00348 int8 value\n\ 00349 \n\ 00350 # Constant for an invalid value\n\ 00351 int8 INVALID=-1\n\ 00352 \n\ 00353 # Constants which define the values for true\n\ 00354 int8 TRUE=1\n\ 00355 int8 START=1\n\ 00356 int8 BEGIN=1\n\ 00357 int8 SUCCESS=1\n\ 00358 int8 DONE=1\n\ 00359 \n\ 00360 # Constants which define the values for false\n\ 00361 int8 FALSE=0\n\ 00362 int8 STOP=0\n\ 00363 int8 END=0\n\ 00364 int8 FAILURE=0\n\ 00365 int8 NOT_DONE=0\n\ 00366 \n\ 00367 # Constants for response types\n\ 00368 int8 OPTIONAL_RESPONSE=0\n\ 00369 int8 IS_A_RESPONSE=1\n\ 00370 int8 REQUIRES_RESPONSE=2\n\ 00371 int8 BACKCHANNEL=3\n\ 00372 \n\ 00373 # Constants which define the values for the side to use\n\ 00374 int8 NEITHER=0\n\ 00375 int8 LEFT=1\n\ 00376 int8 RIGHT=2\n\ 00377 int8 EITHER=3\n\ 00378 \n\ 00379 ================================================================================\n\ 00380 MSG: bml_msgs/BehaviorResult\n\ 00381 # this message is used to link a result flag to an id\n\ 00382 Behavior behavior\n\ 00383 Flag result\n\ 00384 \n\ 00385 ================================================================================\n\ 00386 MSG: bml_msgs/Behavior\n\ 00387 # this message type contains the information for basic behavior types\n\ 00388 \n\ 00389 #constants for the synch point\n\ 00390 uint8 START=0\n\ 00391 uint8 READY=1\n\ 00392 uint8 STROKE_START=2\n\ 00393 uint8 STROKE=3\n\ 00394 uint8 STROKE_END=4\n\ 00395 uint8 RELAX=5\n\ 00396 uint8 END=6\n\ 00397 \n\ 00398 # the fields\n\ 00399 string id\n\ 00400 uint8 synchPoint\n\ 00401 \n\ 00402 "; 00403 } 00404 00405 static const char* value(const ::bml_srvs::BMLRealizationResponse_<ContainerAllocator> &) { return value(); } 00406 }; 00407 00408 } // namespace message_traits 00409 } // namespace ros 00410 00411 namespace ros 00412 { 00413 namespace serialization 00414 { 00415 00416 template<class ContainerAllocator> struct Serializer< ::bml_srvs::BMLRealizationRequest_<ContainerAllocator> > 00417 { 00418 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00419 { 00420 stream.next(m.bml); 00421 } 00422 00423 ROS_DECLARE_ALLINONE_SERIALIZER; 00424 }; // struct BMLRealizationRequest_ 00425 } // namespace serialization 00426 } // namespace ros 00427 00428 00429 namespace ros 00430 { 00431 namespace serialization 00432 { 00433 00434 template<class ContainerAllocator> struct Serializer< ::bml_srvs::BMLRealizationResponse_<ContainerAllocator> > 00435 { 00436 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00437 { 00438 stream.next(m.success); 00439 stream.next(m.behaviors); 00440 } 00441 00442 ROS_DECLARE_ALLINONE_SERIALIZER; 00443 }; // struct BMLRealizationResponse_ 00444 } // namespace serialization 00445 } // namespace ros 00446 00447 namespace ros 00448 { 00449 namespace service_traits 00450 { 00451 template<> 00452 struct MD5Sum<bml_srvs::BMLRealization> { 00453 static const char* value() 00454 { 00455 return "7c3064286033efc4132764d2907dd179"; 00456 } 00457 00458 static const char* value(const bml_srvs::BMLRealization&) { return value(); } 00459 }; 00460 00461 template<> 00462 struct DataType<bml_srvs::BMLRealization> { 00463 static const char* value() 00464 { 00465 return "bml_srvs/BMLRealization"; 00466 } 00467 00468 static const char* value(const bml_srvs::BMLRealization&) { return value(); } 00469 }; 00470 00471 template<class ContainerAllocator> 00472 struct MD5Sum<bml_srvs::BMLRealizationRequest_<ContainerAllocator> > { 00473 static const char* value() 00474 { 00475 return "7c3064286033efc4132764d2907dd179"; 00476 } 00477 00478 static const char* value(const bml_srvs::BMLRealizationRequest_<ContainerAllocator> &) { return value(); } 00479 }; 00480 00481 template<class ContainerAllocator> 00482 struct DataType<bml_srvs::BMLRealizationRequest_<ContainerAllocator> > { 00483 static const char* value() 00484 { 00485 return "bml_srvs/BMLRealization"; 00486 } 00487 00488 static const char* value(const bml_srvs::BMLRealizationRequest_<ContainerAllocator> &) { return value(); } 00489 }; 00490 00491 template<class ContainerAllocator> 00492 struct MD5Sum<bml_srvs::BMLRealizationResponse_<ContainerAllocator> > { 00493 static const char* value() 00494 { 00495 return "7c3064286033efc4132764d2907dd179"; 00496 } 00497 00498 static const char* value(const bml_srvs::BMLRealizationResponse_<ContainerAllocator> &) { return value(); } 00499 }; 00500 00501 template<class ContainerAllocator> 00502 struct DataType<bml_srvs::BMLRealizationResponse_<ContainerAllocator> > { 00503 static const char* value() 00504 { 00505 return "bml_srvs/BMLRealization"; 00506 } 00507 00508 static const char* value(const bml_srvs::BMLRealizationResponse_<ContainerAllocator> &) { return value(); } 00509 }; 00510 00511 } // namespace service_traits 00512 } // namespace ros 00513 00514 #endif // BML_SRVS_SERVICE_BMLREALIZATION_H 00515 |