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