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