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