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