Go to the documentation of this file.00001
00002 #ifndef TURTLEBOT_APP_MANAGER_MESSAGE_APP_H
00003 #define TURTLEBOT_APP_MANAGER_MESSAGE_APP_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 "turtlebot_app_manager/Icon.h"
00018 #include "turtlebot_app_manager/ClientApp.h"
00019
00020 namespace turtlebot_app_manager
00021 {
00022 template <class ContainerAllocator>
00023 struct App_ {
00024 typedef App_<ContainerAllocator> Type;
00025
00026 App_()
00027 : name()
00028 , display_name()
00029 , icon()
00030 , client_apps()
00031 {
00032 }
00033
00034 App_(const ContainerAllocator& _alloc)
00035 : name(_alloc)
00036 , display_name(_alloc)
00037 , icon(_alloc)
00038 , client_apps(_alloc)
00039 {
00040 }
00041
00042 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _name_type;
00043 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > name;
00044
00045 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _display_name_type;
00046 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > display_name;
00047
00048 typedef ::turtlebot_app_manager::Icon_<ContainerAllocator> _icon_type;
00049 ::turtlebot_app_manager::Icon_<ContainerAllocator> icon;
00050
00051 typedef std::vector< ::turtlebot_app_manager::ClientApp_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::turtlebot_app_manager::ClientApp_<ContainerAllocator> >::other > _client_apps_type;
00052 std::vector< ::turtlebot_app_manager::ClientApp_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::turtlebot_app_manager::ClientApp_<ContainerAllocator> >::other > client_apps;
00053
00054
00055 typedef boost::shared_ptr< ::turtlebot_app_manager::App_<ContainerAllocator> > Ptr;
00056 typedef boost::shared_ptr< ::turtlebot_app_manager::App_<ContainerAllocator> const> ConstPtr;
00057 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00058 };
00059 typedef ::turtlebot_app_manager::App_<std::allocator<void> > App;
00060
00061 typedef boost::shared_ptr< ::turtlebot_app_manager::App> AppPtr;
00062 typedef boost::shared_ptr< ::turtlebot_app_manager::App const> AppConstPtr;
00063
00064
00065 template<typename ContainerAllocator>
00066 std::ostream& operator<<(std::ostream& s, const ::turtlebot_app_manager::App_<ContainerAllocator> & v)
00067 {
00068 ros::message_operations::Printer< ::turtlebot_app_manager::App_<ContainerAllocator> >::stream(s, "", v);
00069 return s;}
00070
00071 }
00072
00073 namespace ros
00074 {
00075 namespace message_traits
00076 {
00077 template<class ContainerAllocator> struct IsMessage< ::turtlebot_app_manager::App_<ContainerAllocator> > : public TrueType {};
00078 template<class ContainerAllocator> struct IsMessage< ::turtlebot_app_manager::App_<ContainerAllocator> const> : public TrueType {};
00079 template<class ContainerAllocator>
00080 struct MD5Sum< ::turtlebot_app_manager::App_<ContainerAllocator> > {
00081 static const char* value()
00082 {
00083 return "643c1db5f71b615a47789ff5e190811e";
00084 }
00085
00086 static const char* value(const ::turtlebot_app_manager::App_<ContainerAllocator> &) { return value(); }
00087 static const uint64_t static_value1 = 0x643c1db5f71b615aULL;
00088 static const uint64_t static_value2 = 0x47789ff5e190811eULL;
00089 };
00090
00091 template<class ContainerAllocator>
00092 struct DataType< ::turtlebot_app_manager::App_<ContainerAllocator> > {
00093 static const char* value()
00094 {
00095 return "turtlebot_app_manager/App";
00096 }
00097
00098 static const char* value(const ::turtlebot_app_manager::App_<ContainerAllocator> &) { return value(); }
00099 };
00100
00101 template<class ContainerAllocator>
00102 struct Definition< ::turtlebot_app_manager::App_<ContainerAllocator> > {
00103 static const char* value()
00104 {
00105 return "# app name\n\
00106 string name\n\
00107 # user-friendly display name of application\n\
00108 string display_name\n\
00109 # icon for showing app\n\
00110 Icon icon\n\
00111 # ordered list (by preference) of client applications to interact with this robot app. \n\
00112 ClientApp[] client_apps\n\
00113 \n\
00114 ================================================================================\n\
00115 MSG: turtlebot_app_manager/Icon\n\
00116 # Image data format. \"jpeg\" or \"png\"\n\
00117 string format\n\
00118 \n\
00119 # Image data.\n\
00120 uint8[] data\n\
00121 \n\
00122 ================================================================================\n\
00123 MSG: turtlebot_app_manager/ClientApp\n\
00124 # like \"android\" or \"web\" or \"linux\"\n\
00125 string client_type\n\
00126 \n\
00127 # like \"intent = ros.android.teleop\" and \"accelerometer = true\", used to choose which ClientApp to use\n\
00128 KeyValue[] manager_data\n\
00129 \n\
00130 # parameters which just get passed through to the client app.\n\
00131 KeyValue[] app_data\n\
00132 \n\
00133 ================================================================================\n\
00134 MSG: turtlebot_app_manager/KeyValue\n\
00135 string key\n\
00136 string value\n\
00137 \n\
00138 ";
00139 }
00140
00141 static const char* value(const ::turtlebot_app_manager::App_<ContainerAllocator> &) { return value(); }
00142 };
00143
00144 }
00145 }
00146
00147 namespace ros
00148 {
00149 namespace serialization
00150 {
00151
00152 template<class ContainerAllocator> struct Serializer< ::turtlebot_app_manager::App_<ContainerAllocator> >
00153 {
00154 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00155 {
00156 stream.next(m.name);
00157 stream.next(m.display_name);
00158 stream.next(m.icon);
00159 stream.next(m.client_apps);
00160 }
00161
00162 ROS_DECLARE_ALLINONE_SERIALIZER;
00163 };
00164 }
00165 }
00166
00167 namespace ros
00168 {
00169 namespace message_operations
00170 {
00171
00172 template<class ContainerAllocator>
00173 struct Printer< ::turtlebot_app_manager::App_<ContainerAllocator> >
00174 {
00175 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::turtlebot_app_manager::App_<ContainerAllocator> & v)
00176 {
00177 s << indent << "name: ";
00178 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.name);
00179 s << indent << "display_name: ";
00180 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.display_name);
00181 s << indent << "icon: ";
00182 s << std::endl;
00183 Printer< ::turtlebot_app_manager::Icon_<ContainerAllocator> >::stream(s, indent + " ", v.icon);
00184 s << indent << "client_apps[]" << std::endl;
00185 for (size_t i = 0; i < v.client_apps.size(); ++i)
00186 {
00187 s << indent << " client_apps[" << i << "]: ";
00188 s << std::endl;
00189 s << indent;
00190 Printer< ::turtlebot_app_manager::ClientApp_<ContainerAllocator> >::stream(s, indent + " ", v.client_apps[i]);
00191 }
00192 }
00193 };
00194
00195
00196 }
00197 }
00198
00199 #endif // TURTLEBOT_APP_MANAGER_MESSAGE_APP_H
00200