00001
00002 #ifndef CONCERT_MSGS_MESSAGE_CONCERTCLIENT_H
00003 #define CONCERT_MSGS_MESSAGE_CONCERTCLIENT_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 "appmanager_msgs/AppDescription.h"
00018
00019 namespace concert_msgs
00020 {
00021 template <class ContainerAllocator>
00022 struct ConcertClient_ {
00023 typedef ConcertClient_<ContainerAllocator> Type;
00024
00025 ConcertClient_()
00026 : name()
00027 , platform()
00028 , system()
00029 , robot()
00030 , client_status()
00031 , app_status()
00032 , status()
00033 , last_connection_timestamp()
00034 , apps()
00035 {
00036 }
00037
00038 ConcertClient_(const ContainerAllocator& _alloc)
00039 : name(_alloc)
00040 , platform(_alloc)
00041 , system(_alloc)
00042 , robot(_alloc)
00043 , client_status(_alloc)
00044 , app_status(_alloc)
00045 , status(_alloc)
00046 , last_connection_timestamp()
00047 , apps(_alloc)
00048 {
00049 }
00050
00051 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _name_type;
00052 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > name;
00053
00054 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _platform_type;
00055 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > platform;
00056
00057 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _system_type;
00058 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > system;
00059
00060 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _robot_type;
00061 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > robot;
00062
00063 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _client_status_type;
00064 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > client_status;
00065
00066 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _app_status_type;
00067 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > app_status;
00068
00069 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _status_type;
00070 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > status;
00071
00072 typedef ros::Time _last_connection_timestamp_type;
00073 ros::Time last_connection_timestamp;
00074
00075 typedef std::vector< ::appmanager_msgs::AppDescription_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::appmanager_msgs::AppDescription_<ContainerAllocator> >::other > _apps_type;
00076 std::vector< ::appmanager_msgs::AppDescription_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::appmanager_msgs::AppDescription_<ContainerAllocator> >::other > apps;
00077
00078
00079 typedef boost::shared_ptr< ::concert_msgs::ConcertClient_<ContainerAllocator> > Ptr;
00080 typedef boost::shared_ptr< ::concert_msgs::ConcertClient_<ContainerAllocator> const> ConstPtr;
00081 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00082 };
00083 typedef ::concert_msgs::ConcertClient_<std::allocator<void> > ConcertClient;
00084
00085 typedef boost::shared_ptr< ::concert_msgs::ConcertClient> ConcertClientPtr;
00086 typedef boost::shared_ptr< ::concert_msgs::ConcertClient const> ConcertClientConstPtr;
00087
00088
00089 template<typename ContainerAllocator>
00090 std::ostream& operator<<(std::ostream& s, const ::concert_msgs::ConcertClient_<ContainerAllocator> & v)
00091 {
00092 ros::message_operations::Printer< ::concert_msgs::ConcertClient_<ContainerAllocator> >::stream(s, "", v);
00093 return s;}
00094
00095 }
00096
00097 namespace ros
00098 {
00099 namespace message_traits
00100 {
00101 template<class ContainerAllocator> struct IsMessage< ::concert_msgs::ConcertClient_<ContainerAllocator> > : public TrueType {};
00102 template<class ContainerAllocator> struct IsMessage< ::concert_msgs::ConcertClient_<ContainerAllocator> const> : public TrueType {};
00103 template<class ContainerAllocator>
00104 struct MD5Sum< ::concert_msgs::ConcertClient_<ContainerAllocator> > {
00105 static const char* value()
00106 {
00107 return "39c6065c65d300f6c193a61ede194d03";
00108 }
00109
00110 static const char* value(const ::concert_msgs::ConcertClient_<ContainerAllocator> &) { return value(); }
00111 static const uint64_t static_value1 = 0x39c6065c65d300f6ULL;
00112 static const uint64_t static_value2 = 0xc193a61ede194d03ULL;
00113 };
00114
00115 template<class ContainerAllocator>
00116 struct DataType< ::concert_msgs::ConcertClient_<ContainerAllocator> > {
00117 static const char* value()
00118 {
00119 return "concert_msgs/ConcertClient";
00120 }
00121
00122 static const char* value(const ::concert_msgs::ConcertClient_<ContainerAllocator> &) { return value(); }
00123 };
00124
00125 template<class ContainerAllocator>
00126 struct Definition< ::concert_msgs::ConcertClient_<ContainerAllocator> > {
00127 static const char* value()
00128 {
00129 return "# \n\
00130 # Describes a concert client - used only on the concert side\n\
00131 #\n\
00132 # Unique name (comes from the gateway systems unique naming system)\n\
00133 string name\n\
00134 \n\
00135 # The platform id triple (refer to concert_clients/PlatformInfo.msg for string values)\n\
00136 string platform\n\
00137 string system\n\
00138 string robot\n\
00139 \n\
00140 # Current status of the concert client (refer to concert_msgs/ConcertClient.msg for mode strings)\n\
00141 string client_status\n\
00142 string app_status\n\
00143 \n\
00144 # Depracate this\n\
00145 string status\n\
00146 \n\
00147 # Statistics\n\
00148 time last_connection_timestamp\n\
00149 \n\
00150 appmanager_msgs/AppDescription[] apps\n\
00151 \n\
00152 ================================================================================\n\
00153 MSG: appmanager_msgs/AppDescription\n\
00154 string name\n\
00155 string display\n\
00156 string description\n\
00157 string platform\n\
00158 string status\n\
00159 \n\
00160 ";
00161 }
00162
00163 static const char* value(const ::concert_msgs::ConcertClient_<ContainerAllocator> &) { return value(); }
00164 };
00165
00166 }
00167 }
00168
00169 namespace ros
00170 {
00171 namespace serialization
00172 {
00173
00174 template<class ContainerAllocator> struct Serializer< ::concert_msgs::ConcertClient_<ContainerAllocator> >
00175 {
00176 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00177 {
00178 stream.next(m.name);
00179 stream.next(m.platform);
00180 stream.next(m.system);
00181 stream.next(m.robot);
00182 stream.next(m.client_status);
00183 stream.next(m.app_status);
00184 stream.next(m.status);
00185 stream.next(m.last_connection_timestamp);
00186 stream.next(m.apps);
00187 }
00188
00189 ROS_DECLARE_ALLINONE_SERIALIZER;
00190 };
00191 }
00192 }
00193
00194 namespace ros
00195 {
00196 namespace message_operations
00197 {
00198
00199 template<class ContainerAllocator>
00200 struct Printer< ::concert_msgs::ConcertClient_<ContainerAllocator> >
00201 {
00202 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::concert_msgs::ConcertClient_<ContainerAllocator> & v)
00203 {
00204 s << indent << "name: ";
00205 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.name);
00206 s << indent << "platform: ";
00207 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.platform);
00208 s << indent << "system: ";
00209 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.system);
00210 s << indent << "robot: ";
00211 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.robot);
00212 s << indent << "client_status: ";
00213 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.client_status);
00214 s << indent << "app_status: ";
00215 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.app_status);
00216 s << indent << "status: ";
00217 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.status);
00218 s << indent << "last_connection_timestamp: ";
00219 Printer<ros::Time>::stream(s, indent + " ", v.last_connection_timestamp);
00220 s << indent << "apps[]" << std::endl;
00221 for (size_t i = 0; i < v.apps.size(); ++i)
00222 {
00223 s << indent << " apps[" << i << "]: ";
00224 s << std::endl;
00225 s << indent;
00226 Printer< ::appmanager_msgs::AppDescription_<ContainerAllocator> >::stream(s, indent + " ", v.apps[i]);
00227 }
00228 }
00229 };
00230
00231
00232 }
00233 }
00234
00235 #endif // CONCERT_MSGS_MESSAGE_CONCERTCLIENT_H
00236