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