00001
00002 #ifndef APP_MANAGER_MESSAGE_APP_H
00003 #define APP_MANAGER_MESSAGE_APP_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 "app_manager/Icon.h"
00014 #include "app_manager/ClientApp.h"
00015
00016 namespace app_manager
00017 {
00018 template <class ContainerAllocator>
00019 struct App_ : public ros::Message
00020 {
00021 typedef App_<ContainerAllocator> Type;
00022
00023 App_()
00024 : name()
00025 , display_name()
00026 , icon()
00027 , client_apps()
00028 {
00029 }
00030
00031 App_(const ContainerAllocator& _alloc)
00032 : name(_alloc)
00033 , display_name(_alloc)
00034 , icon(_alloc)
00035 , client_apps(_alloc)
00036 {
00037 }
00038
00039 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _name_type;
00040 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > name;
00041
00042 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _display_name_type;
00043 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > display_name;
00044
00045 typedef ::app_manager::Icon_<ContainerAllocator> _icon_type;
00046 ::app_manager::Icon_<ContainerAllocator> icon;
00047
00048 typedef std::vector< ::app_manager::ClientApp_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::app_manager::ClientApp_<ContainerAllocator> >::other > _client_apps_type;
00049 std::vector< ::app_manager::ClientApp_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::app_manager::ClientApp_<ContainerAllocator> >::other > client_apps;
00050
00051
00052 ROS_DEPRECATED uint32_t get_client_apps_size() const { return (uint32_t)client_apps.size(); }
00053 ROS_DEPRECATED void set_client_apps_size(uint32_t size) { client_apps.resize((size_t)size); }
00054 ROS_DEPRECATED void get_client_apps_vec(std::vector< ::app_manager::ClientApp_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::app_manager::ClientApp_<ContainerAllocator> >::other > & vec) const { vec = this->client_apps; }
00055 ROS_DEPRECATED void set_client_apps_vec(const std::vector< ::app_manager::ClientApp_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::app_manager::ClientApp_<ContainerAllocator> >::other > & vec) { this->client_apps = vec; }
00056 private:
00057 static const char* __s_getDataType_() { return "app_manager/App"; }
00058 public:
00059 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00060
00061 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00062
00063 private:
00064 static const char* __s_getMD5Sum_() { return "643c1db5f71b615a47789ff5e190811e"; }
00065 public:
00066 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00067
00068 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00069
00070 private:
00071 static const char* __s_getMessageDefinition_() { return "# app name\n\
00072 string name\n\
00073 # user-friendly display name of application\n\
00074 string display_name\n\
00075 # icon for showing app\n\
00076 Icon icon\n\
00077 # ordered list (by preference) of client applications to interact with this robot app. \n\
00078 ClientApp[] client_apps\n\
00079 \n\
00080 ================================================================================\n\
00081 MSG: app_manager/Icon\n\
00082 # Image data format. \"jpeg\" or \"png\"\n\
00083 string format\n\
00084 \n\
00085 # Image data.\n\
00086 uint8[] data\n\
00087 \n\
00088 ================================================================================\n\
00089 MSG: app_manager/ClientApp\n\
00090 # like \"android\" or \"web\" or \"linux\"\n\
00091 string client_type\n\
00092 \n\
00093 # like \"intent = ros.android.teleop\" and \"accelerometer = true\", used to choose which ClientApp to use\n\
00094 KeyValue[] manager_data\n\
00095 \n\
00096 # parameters which just get passed through to the client app.\n\
00097 KeyValue[] app_data\n\
00098 \n\
00099 ================================================================================\n\
00100 MSG: app_manager/KeyValue\n\
00101 string key\n\
00102 string value\n\
00103 \n\
00104 "; }
00105 public:
00106 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00107
00108 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00109
00110 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00111 {
00112 ros::serialization::OStream stream(write_ptr, 1000000000);
00113 ros::serialization::serialize(stream, name);
00114 ros::serialization::serialize(stream, display_name);
00115 ros::serialization::serialize(stream, icon);
00116 ros::serialization::serialize(stream, client_apps);
00117 return stream.getData();
00118 }
00119
00120 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00121 {
00122 ros::serialization::IStream stream(read_ptr, 1000000000);
00123 ros::serialization::deserialize(stream, name);
00124 ros::serialization::deserialize(stream, display_name);
00125 ros::serialization::deserialize(stream, icon);
00126 ros::serialization::deserialize(stream, client_apps);
00127 return stream.getData();
00128 }
00129
00130 ROS_DEPRECATED virtual uint32_t serializationLength() const
00131 {
00132 uint32_t size = 0;
00133 size += ros::serialization::serializationLength(name);
00134 size += ros::serialization::serializationLength(display_name);
00135 size += ros::serialization::serializationLength(icon);
00136 size += ros::serialization::serializationLength(client_apps);
00137 return size;
00138 }
00139
00140 typedef boost::shared_ptr< ::app_manager::App_<ContainerAllocator> > Ptr;
00141 typedef boost::shared_ptr< ::app_manager::App_<ContainerAllocator> const> ConstPtr;
00142 };
00143 typedef ::app_manager::App_<std::allocator<void> > App;
00144
00145 typedef boost::shared_ptr< ::app_manager::App> AppPtr;
00146 typedef boost::shared_ptr< ::app_manager::App const> AppConstPtr;
00147
00148
00149 template<typename ContainerAllocator>
00150 std::ostream& operator<<(std::ostream& s, const ::app_manager::App_<ContainerAllocator> & v)
00151 {
00152 ros::message_operations::Printer< ::app_manager::App_<ContainerAllocator> >::stream(s, "", v);
00153 return s;}
00154
00155 }
00156
00157 namespace ros
00158 {
00159 namespace message_traits
00160 {
00161 template<class ContainerAllocator>
00162 struct MD5Sum< ::app_manager::App_<ContainerAllocator> > {
00163 static const char* value()
00164 {
00165 return "643c1db5f71b615a47789ff5e190811e";
00166 }
00167
00168 static const char* value(const ::app_manager::App_<ContainerAllocator> &) { return value(); }
00169 static const uint64_t static_value1 = 0x643c1db5f71b615aULL;
00170 static const uint64_t static_value2 = 0x47789ff5e190811eULL;
00171 };
00172
00173 template<class ContainerAllocator>
00174 struct DataType< ::app_manager::App_<ContainerAllocator> > {
00175 static const char* value()
00176 {
00177 return "app_manager/App";
00178 }
00179
00180 static const char* value(const ::app_manager::App_<ContainerAllocator> &) { return value(); }
00181 };
00182
00183 template<class ContainerAllocator>
00184 struct Definition< ::app_manager::App_<ContainerAllocator> > {
00185 static const char* value()
00186 {
00187 return "# app name\n\
00188 string name\n\
00189 # user-friendly display name of application\n\
00190 string display_name\n\
00191 # icon for showing app\n\
00192 Icon icon\n\
00193 # ordered list (by preference) of client applications to interact with this robot app. \n\
00194 ClientApp[] client_apps\n\
00195 \n\
00196 ================================================================================\n\
00197 MSG: app_manager/Icon\n\
00198 # Image data format. \"jpeg\" or \"png\"\n\
00199 string format\n\
00200 \n\
00201 # Image data.\n\
00202 uint8[] data\n\
00203 \n\
00204 ================================================================================\n\
00205 MSG: app_manager/ClientApp\n\
00206 # like \"android\" or \"web\" or \"linux\"\n\
00207 string client_type\n\
00208 \n\
00209 # like \"intent = ros.android.teleop\" and \"accelerometer = true\", used to choose which ClientApp to use\n\
00210 KeyValue[] manager_data\n\
00211 \n\
00212 # parameters which just get passed through to the client app.\n\
00213 KeyValue[] app_data\n\
00214 \n\
00215 ================================================================================\n\
00216 MSG: app_manager/KeyValue\n\
00217 string key\n\
00218 string value\n\
00219 \n\
00220 ";
00221 }
00222
00223 static const char* value(const ::app_manager::App_<ContainerAllocator> &) { return value(); }
00224 };
00225
00226 }
00227 }
00228
00229 namespace ros
00230 {
00231 namespace serialization
00232 {
00233
00234 template<class ContainerAllocator> struct Serializer< ::app_manager::App_<ContainerAllocator> >
00235 {
00236 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00237 {
00238 stream.next(m.name);
00239 stream.next(m.display_name);
00240 stream.next(m.icon);
00241 stream.next(m.client_apps);
00242 }
00243
00244 ROS_DECLARE_ALLINONE_SERIALIZER;
00245 };
00246 }
00247 }
00248
00249 namespace ros
00250 {
00251 namespace message_operations
00252 {
00253
00254 template<class ContainerAllocator>
00255 struct Printer< ::app_manager::App_<ContainerAllocator> >
00256 {
00257 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::app_manager::App_<ContainerAllocator> & v)
00258 {
00259 s << indent << "name: ";
00260 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.name);
00261 s << indent << "display_name: ";
00262 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.display_name);
00263 s << indent << "icon: ";
00264 s << std::endl;
00265 Printer< ::app_manager::Icon_<ContainerAllocator> >::stream(s, indent + " ", v.icon);
00266 s << indent << "client_apps[]" << std::endl;
00267 for (size_t i = 0; i < v.client_apps.size(); ++i)
00268 {
00269 s << indent << " client_apps[" << i << "]: ";
00270 s << std::endl;
00271 s << indent;
00272 Printer< ::app_manager::ClientApp_<ContainerAllocator> >::stream(s, indent + " ", v.client_apps[i]);
00273 }
00274 }
00275 };
00276
00277
00278 }
00279 }
00280
00281 #endif // APP_MANAGER_MESSAGE_APP_H
00282