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