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