Go to the documentation of this file.00001
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 typedef boost::shared_ptr< ::app_manager::ListAppsRequest_<ContainerAllocator> > Ptr;
00040 typedef boost::shared_ptr< ::app_manager::ListAppsRequest_<ContainerAllocator> const> ConstPtr;
00041 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00042 };
00043 typedef ::app_manager::ListAppsRequest_<std::allocator<void> > ListAppsRequest;
00044
00045 typedef boost::shared_ptr< ::app_manager::ListAppsRequest> ListAppsRequestPtr;
00046 typedef boost::shared_ptr< ::app_manager::ListAppsRequest const> ListAppsRequestConstPtr;
00047
00048
00049 template <class ContainerAllocator>
00050 struct ListAppsResponse_ {
00051 typedef ListAppsResponse_<ContainerAllocator> Type;
00052
00053 ListAppsResponse_()
00054 : running_apps()
00055 , available_apps()
00056 {
00057 }
00058
00059 ListAppsResponse_(const ContainerAllocator& _alloc)
00060 : running_apps(_alloc)
00061 , available_apps(_alloc)
00062 {
00063 }
00064
00065 typedef std::vector< ::app_manager::App_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::app_manager::App_<ContainerAllocator> >::other > _running_apps_type;
00066 std::vector< ::app_manager::App_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::app_manager::App_<ContainerAllocator> >::other > running_apps;
00067
00068 typedef std::vector< ::app_manager::App_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::app_manager::App_<ContainerAllocator> >::other > _available_apps_type;
00069 std::vector< ::app_manager::App_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::app_manager::App_<ContainerAllocator> >::other > available_apps;
00070
00071
00072 typedef boost::shared_ptr< ::app_manager::ListAppsResponse_<ContainerAllocator> > Ptr;
00073 typedef boost::shared_ptr< ::app_manager::ListAppsResponse_<ContainerAllocator> const> ConstPtr;
00074 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00075 };
00076 typedef ::app_manager::ListAppsResponse_<std::allocator<void> > ListAppsResponse;
00077
00078 typedef boost::shared_ptr< ::app_manager::ListAppsResponse> ListAppsResponsePtr;
00079 typedef boost::shared_ptr< ::app_manager::ListAppsResponse const> ListAppsResponseConstPtr;
00080
00081 struct ListApps
00082 {
00083
00084 typedef ListAppsRequest Request;
00085 typedef ListAppsResponse Response;
00086 Request request;
00087 Response response;
00088
00089 typedef Request RequestType;
00090 typedef Response ResponseType;
00091 };
00092 }
00093
00094 namespace ros
00095 {
00096 namespace message_traits
00097 {
00098 template<class ContainerAllocator> struct IsMessage< ::app_manager::ListAppsRequest_<ContainerAllocator> > : public TrueType {};
00099 template<class ContainerAllocator> struct IsMessage< ::app_manager::ListAppsRequest_<ContainerAllocator> const> : public TrueType {};
00100 template<class ContainerAllocator>
00101 struct MD5Sum< ::app_manager::ListAppsRequest_<ContainerAllocator> > {
00102 static const char* value()
00103 {
00104 return "d41d8cd98f00b204e9800998ecf8427e";
00105 }
00106
00107 static const char* value(const ::app_manager::ListAppsRequest_<ContainerAllocator> &) { return value(); }
00108 static const uint64_t static_value1 = 0xd41d8cd98f00b204ULL;
00109 static const uint64_t static_value2 = 0xe9800998ecf8427eULL;
00110 };
00111
00112 template<class ContainerAllocator>
00113 struct DataType< ::app_manager::ListAppsRequest_<ContainerAllocator> > {
00114 static const char* value()
00115 {
00116 return "app_manager/ListAppsRequest";
00117 }
00118
00119 static const char* value(const ::app_manager::ListAppsRequest_<ContainerAllocator> &) { return value(); }
00120 };
00121
00122 template<class ContainerAllocator>
00123 struct Definition< ::app_manager::ListAppsRequest_<ContainerAllocator> > {
00124 static const char* value()
00125 {
00126 return "\n\
00127 ";
00128 }
00129
00130 static const char* value(const ::app_manager::ListAppsRequest_<ContainerAllocator> &) { return value(); }
00131 };
00132
00133 template<class ContainerAllocator> struct IsFixedSize< ::app_manager::ListAppsRequest_<ContainerAllocator> > : public TrueType {};
00134 }
00135 }
00136
00137
00138 namespace ros
00139 {
00140 namespace message_traits
00141 {
00142 template<class ContainerAllocator> struct IsMessage< ::app_manager::ListAppsResponse_<ContainerAllocator> > : public TrueType {};
00143 template<class ContainerAllocator> struct IsMessage< ::app_manager::ListAppsResponse_<ContainerAllocator> const> : public TrueType {};
00144 template<class ContainerAllocator>
00145 struct MD5Sum< ::app_manager::ListAppsResponse_<ContainerAllocator> > {
00146 static const char* value()
00147 {
00148 return "8a71ede6bf51909653c7c551f462cb30";
00149 }
00150
00151 static const char* value(const ::app_manager::ListAppsResponse_<ContainerAllocator> &) { return value(); }
00152 static const uint64_t static_value1 = 0x8a71ede6bf519096ULL;
00153 static const uint64_t static_value2 = 0x53c7c551f462cb30ULL;
00154 };
00155
00156 template<class ContainerAllocator>
00157 struct DataType< ::app_manager::ListAppsResponse_<ContainerAllocator> > {
00158 static const char* value()
00159 {
00160 return "app_manager/ListAppsResponse";
00161 }
00162
00163 static const char* value(const ::app_manager::ListAppsResponse_<ContainerAllocator> &) { return value(); }
00164 };
00165
00166 template<class ContainerAllocator>
00167 struct Definition< ::app_manager::ListAppsResponse_<ContainerAllocator> > {
00168 static const char* value()
00169 {
00170 return "App[] running_apps\n\
00171 App[] available_apps\n\
00172 \n\
00173 ================================================================================\n\
00174 MSG: app_manager/App\n\
00175 # app name\n\
00176 string name\n\
00177 # user-friendly display name of application\n\
00178 string display_name\n\
00179 # icon for showing app\n\
00180 Icon icon\n\
00181 # ordered list (by preference) of client applications to interact with this robot app. \n\
00182 ClientApp[] client_apps\n\
00183 \n\
00184 ================================================================================\n\
00185 MSG: app_manager/Icon\n\
00186 # Image data format. \"jpeg\" or \"png\"\n\
00187 string format\n\
00188 \n\
00189 # Image data.\n\
00190 uint8[] data\n\
00191 \n\
00192 ================================================================================\n\
00193 MSG: app_manager/ClientApp\n\
00194 # like \"android\" or \"web\" or \"linux\"\n\
00195 string client_type\n\
00196 \n\
00197 # like \"intent = ros.android.teleop\" and \"accelerometer = true\", used to choose which ClientApp to use\n\
00198 KeyValue[] manager_data\n\
00199 \n\
00200 # parameters which just get passed through to the client app.\n\
00201 KeyValue[] app_data\n\
00202 \n\
00203 ================================================================================\n\
00204 MSG: app_manager/KeyValue\n\
00205 string key\n\
00206 string value\n\
00207 \n\
00208 ";
00209 }
00210
00211 static const char* value(const ::app_manager::ListAppsResponse_<ContainerAllocator> &) { return value(); }
00212 };
00213
00214 }
00215 }
00216
00217 namespace ros
00218 {
00219 namespace serialization
00220 {
00221
00222 template<class ContainerAllocator> struct Serializer< ::app_manager::ListAppsRequest_<ContainerAllocator> >
00223 {
00224 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00225 {
00226 }
00227
00228 ROS_DECLARE_ALLINONE_SERIALIZER;
00229 };
00230 }
00231 }
00232
00233
00234 namespace ros
00235 {
00236 namespace serialization
00237 {
00238
00239 template<class ContainerAllocator> struct Serializer< ::app_manager::ListAppsResponse_<ContainerAllocator> >
00240 {
00241 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00242 {
00243 stream.next(m.running_apps);
00244 stream.next(m.available_apps);
00245 }
00246
00247 ROS_DECLARE_ALLINONE_SERIALIZER;
00248 };
00249 }
00250 }
00251
00252 namespace ros
00253 {
00254 namespace service_traits
00255 {
00256 template<>
00257 struct MD5Sum<app_manager::ListApps> {
00258 static const char* value()
00259 {
00260 return "8a71ede6bf51909653c7c551f462cb30";
00261 }
00262
00263 static const char* value(const app_manager::ListApps&) { return value(); }
00264 };
00265
00266 template<>
00267 struct DataType<app_manager::ListApps> {
00268 static const char* value()
00269 {
00270 return "app_manager/ListApps";
00271 }
00272
00273 static const char* value(const app_manager::ListApps&) { return value(); }
00274 };
00275
00276 template<class ContainerAllocator>
00277 struct MD5Sum<app_manager::ListAppsRequest_<ContainerAllocator> > {
00278 static const char* value()
00279 {
00280 return "8a71ede6bf51909653c7c551f462cb30";
00281 }
00282
00283 static const char* value(const app_manager::ListAppsRequest_<ContainerAllocator> &) { return value(); }
00284 };
00285
00286 template<class ContainerAllocator>
00287 struct DataType<app_manager::ListAppsRequest_<ContainerAllocator> > {
00288 static const char* value()
00289 {
00290 return "app_manager/ListApps";
00291 }
00292
00293 static const char* value(const app_manager::ListAppsRequest_<ContainerAllocator> &) { return value(); }
00294 };
00295
00296 template<class ContainerAllocator>
00297 struct MD5Sum<app_manager::ListAppsResponse_<ContainerAllocator> > {
00298 static const char* value()
00299 {
00300 return "8a71ede6bf51909653c7c551f462cb30";
00301 }
00302
00303 static const char* value(const app_manager::ListAppsResponse_<ContainerAllocator> &) { return value(); }
00304 };
00305
00306 template<class ContainerAllocator>
00307 struct DataType<app_manager::ListAppsResponse_<ContainerAllocator> > {
00308 static const char* value()
00309 {
00310 return "app_manager/ListApps";
00311 }
00312
00313 static const char* value(const app_manager::ListAppsResponse_<ContainerAllocator> &) { return value(); }
00314 };
00315
00316 }
00317 }
00318
00319 #endif // APP_MANAGER_SERVICE_LISTAPPS_H
00320