$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-multimaster_experimental/doc_stacks/2013-03-01_16-04-40.976361/multimaster_experimental/app_manager/srv/ListApps.srv */ 00002 #ifndef APP_MANAGER_SERVICE_LISTAPPS_H 00003 #define APP_MANAGER_SERVICE_LISTAPPS_H 00004 #include <string> 00005 #include <vector> 00006 #include <map> 00007 #include <ostream> 00008 #include "ros/serialization.h" 00009 #include "ros/builtin_message_traits.h" 00010 #include "ros/message_operations.h" 00011 #include "ros/time.h" 00012 00013 #include "ros/macros.h" 00014 00015 #include "ros/assert.h" 00016 00017 #include "ros/service_traits.h" 00018 00019 00020 00021 #include "app_manager/App.h" 00022 #include "app_manager/App.h" 00023 00024 namespace app_manager 00025 { 00026 template <class ContainerAllocator> 00027 struct ListAppsRequest_ { 00028 typedef ListAppsRequest_<ContainerAllocator> Type; 00029 00030 ListAppsRequest_() 00031 { 00032 } 00033 00034 ListAppsRequest_(const ContainerAllocator& _alloc) 00035 { 00036 } 00037 00038 00039 private: 00040 static const char* __s_getDataType_() { return "app_manager/ListAppsRequest"; } 00041 public: 00042 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00043 00044 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00045 00046 private: 00047 static const char* __s_getMD5Sum_() { return "d41d8cd98f00b204e9800998ecf8427e"; } 00048 public: 00049 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00050 00051 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00052 00053 private: 00054 static const char* __s_getServerMD5Sum_() { return "8a71ede6bf51909653c7c551f462cb30"; } 00055 public: 00056 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } 00057 00058 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } 00059 00060 private: 00061 static const char* __s_getMessageDefinition_() { return "\n\ 00062 "; } 00063 public: 00064 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00065 00066 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00067 00068 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00069 { 00070 ros::serialization::OStream stream(write_ptr, 1000000000); 00071 return stream.getData(); 00072 } 00073 00074 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00075 { 00076 ros::serialization::IStream stream(read_ptr, 1000000000); 00077 return stream.getData(); 00078 } 00079 00080 ROS_DEPRECATED virtual uint32_t serializationLength() const 00081 { 00082 uint32_t size = 0; 00083 return size; 00084 } 00085 00086 typedef boost::shared_ptr< ::app_manager::ListAppsRequest_<ContainerAllocator> > Ptr; 00087 typedef boost::shared_ptr< ::app_manager::ListAppsRequest_<ContainerAllocator> const> ConstPtr; 00088 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00089 }; // struct ListAppsRequest 00090 typedef ::app_manager::ListAppsRequest_<std::allocator<void> > ListAppsRequest; 00091 00092 typedef boost::shared_ptr< ::app_manager::ListAppsRequest> ListAppsRequestPtr; 00093 typedef boost::shared_ptr< ::app_manager::ListAppsRequest const> ListAppsRequestConstPtr; 00094 00095 00096 template <class ContainerAllocator> 00097 struct ListAppsResponse_ { 00098 typedef ListAppsResponse_<ContainerAllocator> Type; 00099 00100 ListAppsResponse_() 00101 : running_apps() 00102 , available_apps() 00103 { 00104 } 00105 00106 ListAppsResponse_(const ContainerAllocator& _alloc) 00107 : running_apps(_alloc) 00108 , available_apps(_alloc) 00109 { 00110 } 00111 00112 typedef std::vector< ::app_manager::App_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::app_manager::App_<ContainerAllocator> >::other > _running_apps_type; 00113 std::vector< ::app_manager::App_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::app_manager::App_<ContainerAllocator> >::other > running_apps; 00114 00115 typedef std::vector< ::app_manager::App_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::app_manager::App_<ContainerAllocator> >::other > _available_apps_type; 00116 std::vector< ::app_manager::App_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::app_manager::App_<ContainerAllocator> >::other > available_apps; 00117 00118 00119 ROS_DEPRECATED uint32_t get_running_apps_size() const { return (uint32_t)running_apps.size(); } 00120 ROS_DEPRECATED void set_running_apps_size(uint32_t size) { running_apps.resize((size_t)size); } 00121 ROS_DEPRECATED void get_running_apps_vec(std::vector< ::app_manager::App_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::app_manager::App_<ContainerAllocator> >::other > & vec) const { vec = this->running_apps; } 00122 ROS_DEPRECATED void set_running_apps_vec(const std::vector< ::app_manager::App_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::app_manager::App_<ContainerAllocator> >::other > & vec) { this->running_apps = vec; } 00123 ROS_DEPRECATED uint32_t get_available_apps_size() const { return (uint32_t)available_apps.size(); } 00124 ROS_DEPRECATED void set_available_apps_size(uint32_t size) { available_apps.resize((size_t)size); } 00125 ROS_DEPRECATED void get_available_apps_vec(std::vector< ::app_manager::App_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::app_manager::App_<ContainerAllocator> >::other > & vec) const { vec = this->available_apps; } 00126 ROS_DEPRECATED void set_available_apps_vec(const std::vector< ::app_manager::App_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::app_manager::App_<ContainerAllocator> >::other > & vec) { this->available_apps = vec; } 00127 private: 00128 static const char* __s_getDataType_() { return "app_manager/ListAppsResponse"; } 00129 public: 00130 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00131 00132 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00133 00134 private: 00135 static const char* __s_getMD5Sum_() { return "8a71ede6bf51909653c7c551f462cb30"; } 00136 public: 00137 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00138 00139 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00140 00141 private: 00142 static const char* __s_getServerMD5Sum_() { return "8a71ede6bf51909653c7c551f462cb30"; } 00143 public: 00144 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } 00145 00146 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } 00147 00148 private: 00149 static const char* __s_getMessageDefinition_() { return "App[] running_apps\n\ 00150 App[] available_apps\n\ 00151 \n\ 00152 ================================================================================\n\ 00153 MSG: app_manager/App\n\ 00154 # app name\n\ 00155 string name\n\ 00156 # user-friendly display name of application\n\ 00157 string display_name\n\ 00158 # icon for showing app\n\ 00159 Icon icon\n\ 00160 # ordered list (by preference) of client applications to interact with this robot app. \n\ 00161 ClientApp[] client_apps\n\ 00162 \n\ 00163 ================================================================================\n\ 00164 MSG: app_manager/Icon\n\ 00165 # Image data format. \"jpeg\" or \"png\"\n\ 00166 string format\n\ 00167 \n\ 00168 # Image data.\n\ 00169 uint8[] data\n\ 00170 \n\ 00171 ================================================================================\n\ 00172 MSG: app_manager/ClientApp\n\ 00173 # like \"android\" or \"web\" or \"linux\"\n\ 00174 string client_type\n\ 00175 \n\ 00176 # like \"intent = ros.android.teleop\" and \"accelerometer = true\", used to choose which ClientApp to use\n\ 00177 KeyValue[] manager_data\n\ 00178 \n\ 00179 # parameters which just get passed through to the client app.\n\ 00180 KeyValue[] app_data\n\ 00181 \n\ 00182 ================================================================================\n\ 00183 MSG: app_manager/KeyValue\n\ 00184 string key\n\ 00185 string value\n\ 00186 \n\ 00187 "; } 00188 public: 00189 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00190 00191 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00192 00193 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00194 { 00195 ros::serialization::OStream stream(write_ptr, 1000000000); 00196 ros::serialization::serialize(stream, running_apps); 00197 ros::serialization::serialize(stream, available_apps); 00198 return stream.getData(); 00199 } 00200 00201 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00202 { 00203 ros::serialization::IStream stream(read_ptr, 1000000000); 00204 ros::serialization::deserialize(stream, running_apps); 00205 ros::serialization::deserialize(stream, available_apps); 00206 return stream.getData(); 00207 } 00208 00209 ROS_DEPRECATED virtual uint32_t serializationLength() const 00210 { 00211 uint32_t size = 0; 00212 size += ros::serialization::serializationLength(running_apps); 00213 size += ros::serialization::serializationLength(available_apps); 00214 return size; 00215 } 00216 00217 typedef boost::shared_ptr< ::app_manager::ListAppsResponse_<ContainerAllocator> > Ptr; 00218 typedef boost::shared_ptr< ::app_manager::ListAppsResponse_<ContainerAllocator> const> ConstPtr; 00219 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00220 }; // struct ListAppsResponse 00221 typedef ::app_manager::ListAppsResponse_<std::allocator<void> > ListAppsResponse; 00222 00223 typedef boost::shared_ptr< ::app_manager::ListAppsResponse> ListAppsResponsePtr; 00224 typedef boost::shared_ptr< ::app_manager::ListAppsResponse const> ListAppsResponseConstPtr; 00225 00226 struct ListApps 00227 { 00228 00229 typedef ListAppsRequest Request; 00230 typedef ListAppsResponse Response; 00231 Request request; 00232 Response response; 00233 00234 typedef Request RequestType; 00235 typedef Response ResponseType; 00236 }; // struct ListApps 00237 } // namespace app_manager 00238 00239 namespace ros 00240 { 00241 namespace message_traits 00242 { 00243 template<class ContainerAllocator> struct IsMessage< ::app_manager::ListAppsRequest_<ContainerAllocator> > : public TrueType {}; 00244 template<class ContainerAllocator> struct IsMessage< ::app_manager::ListAppsRequest_<ContainerAllocator> const> : public TrueType {}; 00245 template<class ContainerAllocator> 00246 struct MD5Sum< ::app_manager::ListAppsRequest_<ContainerAllocator> > { 00247 static const char* value() 00248 { 00249 return "d41d8cd98f00b204e9800998ecf8427e"; 00250 } 00251 00252 static const char* value(const ::app_manager::ListAppsRequest_<ContainerAllocator> &) { return value(); } 00253 static const uint64_t static_value1 = 0xd41d8cd98f00b204ULL; 00254 static const uint64_t static_value2 = 0xe9800998ecf8427eULL; 00255 }; 00256 00257 template<class ContainerAllocator> 00258 struct DataType< ::app_manager::ListAppsRequest_<ContainerAllocator> > { 00259 static const char* value() 00260 { 00261 return "app_manager/ListAppsRequest"; 00262 } 00263 00264 static const char* value(const ::app_manager::ListAppsRequest_<ContainerAllocator> &) { return value(); } 00265 }; 00266 00267 template<class ContainerAllocator> 00268 struct Definition< ::app_manager::ListAppsRequest_<ContainerAllocator> > { 00269 static const char* value() 00270 { 00271 return "\n\ 00272 "; 00273 } 00274 00275 static const char* value(const ::app_manager::ListAppsRequest_<ContainerAllocator> &) { return value(); } 00276 }; 00277 00278 template<class ContainerAllocator> struct IsFixedSize< ::app_manager::ListAppsRequest_<ContainerAllocator> > : public TrueType {}; 00279 } // namespace message_traits 00280 } // namespace ros 00281 00282 00283 namespace ros 00284 { 00285 namespace message_traits 00286 { 00287 template<class ContainerAllocator> struct IsMessage< ::app_manager::ListAppsResponse_<ContainerAllocator> > : public TrueType {}; 00288 template<class ContainerAllocator> struct IsMessage< ::app_manager::ListAppsResponse_<ContainerAllocator> const> : public TrueType {}; 00289 template<class ContainerAllocator> 00290 struct MD5Sum< ::app_manager::ListAppsResponse_<ContainerAllocator> > { 00291 static const char* value() 00292 { 00293 return "8a71ede6bf51909653c7c551f462cb30"; 00294 } 00295 00296 static const char* value(const ::app_manager::ListAppsResponse_<ContainerAllocator> &) { return value(); } 00297 static const uint64_t static_value1 = 0x8a71ede6bf519096ULL; 00298 static const uint64_t static_value2 = 0x53c7c551f462cb30ULL; 00299 }; 00300 00301 template<class ContainerAllocator> 00302 struct DataType< ::app_manager::ListAppsResponse_<ContainerAllocator> > { 00303 static const char* value() 00304 { 00305 return "app_manager/ListAppsResponse"; 00306 } 00307 00308 static const char* value(const ::app_manager::ListAppsResponse_<ContainerAllocator> &) { return value(); } 00309 }; 00310 00311 template<class ContainerAllocator> 00312 struct Definition< ::app_manager::ListAppsResponse_<ContainerAllocator> > { 00313 static const char* value() 00314 { 00315 return "App[] running_apps\n\ 00316 App[] available_apps\n\ 00317 \n\ 00318 ================================================================================\n\ 00319 MSG: app_manager/App\n\ 00320 # app name\n\ 00321 string name\n\ 00322 # user-friendly display name of application\n\ 00323 string display_name\n\ 00324 # icon for showing app\n\ 00325 Icon icon\n\ 00326 # ordered list (by preference) of client applications to interact with this robot app. \n\ 00327 ClientApp[] client_apps\n\ 00328 \n\ 00329 ================================================================================\n\ 00330 MSG: app_manager/Icon\n\ 00331 # Image data format. \"jpeg\" or \"png\"\n\ 00332 string format\n\ 00333 \n\ 00334 # Image data.\n\ 00335 uint8[] data\n\ 00336 \n\ 00337 ================================================================================\n\ 00338 MSG: app_manager/ClientApp\n\ 00339 # like \"android\" or \"web\" or \"linux\"\n\ 00340 string client_type\n\ 00341 \n\ 00342 # like \"intent = ros.android.teleop\" and \"accelerometer = true\", used to choose which ClientApp to use\n\ 00343 KeyValue[] manager_data\n\ 00344 \n\ 00345 # parameters which just get passed through to the client app.\n\ 00346 KeyValue[] app_data\n\ 00347 \n\ 00348 ================================================================================\n\ 00349 MSG: app_manager/KeyValue\n\ 00350 string key\n\ 00351 string value\n\ 00352 \n\ 00353 "; 00354 } 00355 00356 static const char* value(const ::app_manager::ListAppsResponse_<ContainerAllocator> &) { return value(); } 00357 }; 00358 00359 } // namespace message_traits 00360 } // namespace ros 00361 00362 namespace ros 00363 { 00364 namespace serialization 00365 { 00366 00367 template<class ContainerAllocator> struct Serializer< ::app_manager::ListAppsRequest_<ContainerAllocator> > 00368 { 00369 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00370 { 00371 } 00372 00373 ROS_DECLARE_ALLINONE_SERIALIZER; 00374 }; // struct ListAppsRequest_ 00375 } // namespace serialization 00376 } // namespace ros 00377 00378 00379 namespace ros 00380 { 00381 namespace serialization 00382 { 00383 00384 template<class ContainerAllocator> struct Serializer< ::app_manager::ListAppsResponse_<ContainerAllocator> > 00385 { 00386 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00387 { 00388 stream.next(m.running_apps); 00389 stream.next(m.available_apps); 00390 } 00391 00392 ROS_DECLARE_ALLINONE_SERIALIZER; 00393 }; // struct ListAppsResponse_ 00394 } // namespace serialization 00395 } // namespace ros 00396 00397 namespace ros 00398 { 00399 namespace service_traits 00400 { 00401 template<> 00402 struct MD5Sum<app_manager::ListApps> { 00403 static const char* value() 00404 { 00405 return "8a71ede6bf51909653c7c551f462cb30"; 00406 } 00407 00408 static const char* value(const app_manager::ListApps&) { return value(); } 00409 }; 00410 00411 template<> 00412 struct DataType<app_manager::ListApps> { 00413 static const char* value() 00414 { 00415 return "app_manager/ListApps"; 00416 } 00417 00418 static const char* value(const app_manager::ListApps&) { return value(); } 00419 }; 00420 00421 template<class ContainerAllocator> 00422 struct MD5Sum<app_manager::ListAppsRequest_<ContainerAllocator> > { 00423 static const char* value() 00424 { 00425 return "8a71ede6bf51909653c7c551f462cb30"; 00426 } 00427 00428 static const char* value(const app_manager::ListAppsRequest_<ContainerAllocator> &) { return value(); } 00429 }; 00430 00431 template<class ContainerAllocator> 00432 struct DataType<app_manager::ListAppsRequest_<ContainerAllocator> > { 00433 static const char* value() 00434 { 00435 return "app_manager/ListApps"; 00436 } 00437 00438 static const char* value(const app_manager::ListAppsRequest_<ContainerAllocator> &) { return value(); } 00439 }; 00440 00441 template<class ContainerAllocator> 00442 struct MD5Sum<app_manager::ListAppsResponse_<ContainerAllocator> > { 00443 static const char* value() 00444 { 00445 return "8a71ede6bf51909653c7c551f462cb30"; 00446 } 00447 00448 static const char* value(const app_manager::ListAppsResponse_<ContainerAllocator> &) { return value(); } 00449 }; 00450 00451 template<class ContainerAllocator> 00452 struct DataType<app_manager::ListAppsResponse_<ContainerAllocator> > { 00453 static const char* value() 00454 { 00455 return "app_manager/ListApps"; 00456 } 00457 00458 static const char* value(const app_manager::ListAppsResponse_<ContainerAllocator> &) { return value(); } 00459 }; 00460 00461 } // namespace service_traits 00462 } // namespace ros 00463 00464 #endif // APP_MANAGER_SERVICE_LISTAPPS_H 00465