00001
00002 #ifndef UDPMULTI_TRANSPORT_SERVICE_UDPMULTGETTOPICLIST_H
00003 #define UDPMULTI_TRANSPORT_SERVICE_UDPMULTGETTOPICLIST_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 "ros/service_traits.h"
00014
00015
00016
00017 #include "udpmulti_transport/UDPMultTopic.h"
00018
00019 namespace udpmulti_transport
00020 {
00021 template <class ContainerAllocator>
00022 struct UDPMultGetTopicListRequest_ : public ros::Message
00023 {
00024 typedef UDPMultGetTopicListRequest_<ContainerAllocator> Type;
00025
00026 UDPMultGetTopicListRequest_()
00027 {
00028 }
00029
00030 UDPMultGetTopicListRequest_(const ContainerAllocator& _alloc)
00031 {
00032 }
00033
00034
00035 private:
00036 static const char* __s_getDataType_() { return "udpmulti_transport/UDPMultGetTopicListRequest"; }
00037 public:
00038 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00039
00040 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00041
00042 private:
00043 static const char* __s_getMD5Sum_() { return "d41d8cd98f00b204e9800998ecf8427e"; }
00044 public:
00045 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00046
00047 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00048
00049 private:
00050 static const char* __s_getServerMD5Sum_() { return "22672cb98b49fe101a321cb17bceec21"; }
00051 public:
00052 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); }
00053
00054 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); }
00055
00056 private:
00057 static const char* __s_getMessageDefinition_() { return "\n\
00058 "; }
00059 public:
00060 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00061
00062 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00063
00064 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00065 {
00066 ros::serialization::OStream stream(write_ptr, 1000000000);
00067 return stream.getData();
00068 }
00069
00070 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00071 {
00072 ros::serialization::IStream stream(read_ptr, 1000000000);
00073 return stream.getData();
00074 }
00075
00076 ROS_DEPRECATED virtual uint32_t serializationLength() const
00077 {
00078 uint32_t size = 0;
00079 return size;
00080 }
00081
00082 typedef boost::shared_ptr< ::udpmulti_transport::UDPMultGetTopicListRequest_<ContainerAllocator> > Ptr;
00083 typedef boost::shared_ptr< ::udpmulti_transport::UDPMultGetTopicListRequest_<ContainerAllocator> const> ConstPtr;
00084 };
00085 typedef ::udpmulti_transport::UDPMultGetTopicListRequest_<std::allocator<void> > UDPMultGetTopicListRequest;
00086
00087 typedef boost::shared_ptr< ::udpmulti_transport::UDPMultGetTopicListRequest> UDPMultGetTopicListRequestPtr;
00088 typedef boost::shared_ptr< ::udpmulti_transport::UDPMultGetTopicListRequest const> UDPMultGetTopicListRequestConstPtr;
00089
00090
00091 template <class ContainerAllocator>
00092 struct UDPMultGetTopicListResponse_ : public ros::Message
00093 {
00094 typedef UDPMultGetTopicListResponse_<ContainerAllocator> Type;
00095
00096 UDPMultGetTopicListResponse_()
00097 : multicast_address()
00098 , topics()
00099 {
00100 }
00101
00102 UDPMultGetTopicListResponse_(const ContainerAllocator& _alloc)
00103 : multicast_address(_alloc)
00104 , topics(_alloc)
00105 {
00106 }
00107
00108 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _multicast_address_type;
00109 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > multicast_address;
00110
00111 typedef std::vector< ::udpmulti_transport::UDPMultTopic_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::udpmulti_transport::UDPMultTopic_<ContainerAllocator> >::other > _topics_type;
00112 std::vector< ::udpmulti_transport::UDPMultTopic_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::udpmulti_transport::UDPMultTopic_<ContainerAllocator> >::other > topics;
00113
00114
00115 ROS_DEPRECATED uint32_t get_topics_size() const { return (uint32_t)topics.size(); }
00116 ROS_DEPRECATED void set_topics_size(uint32_t size) { topics.resize((size_t)size); }
00117 ROS_DEPRECATED void get_topics_vec(std::vector< ::udpmulti_transport::UDPMultTopic_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::udpmulti_transport::UDPMultTopic_<ContainerAllocator> >::other > & vec) const { vec = this->topics; }
00118 ROS_DEPRECATED void set_topics_vec(const std::vector< ::udpmulti_transport::UDPMultTopic_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::udpmulti_transport::UDPMultTopic_<ContainerAllocator> >::other > & vec) { this->topics = vec; }
00119 private:
00120 static const char* __s_getDataType_() { return "udpmulti_transport/UDPMultGetTopicListResponse"; }
00121 public:
00122 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00123
00124 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00125
00126 private:
00127 static const char* __s_getMD5Sum_() { return "22672cb98b49fe101a321cb17bceec21"; }
00128 public:
00129 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00130
00131 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00132
00133 private:
00134 static const char* __s_getServerMD5Sum_() { return "22672cb98b49fe101a321cb17bceec21"; }
00135 public:
00136 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); }
00137
00138 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); }
00139
00140 private:
00141 static const char* __s_getMessageDefinition_() { return "string multicast_address\n\
00142 udpmulti_transport/UDPMultTopic[] topics\n\
00143 \n\
00144 \n\
00145 ================================================================================\n\
00146 MSG: udpmulti_transport/UDPMultTopic\n\
00147 string topic\n\
00148 uint16 port\n\
00149 \n\
00150 "; }
00151 public:
00152 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00153
00154 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00155
00156 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00157 {
00158 ros::serialization::OStream stream(write_ptr, 1000000000);
00159 ros::serialization::serialize(stream, multicast_address);
00160 ros::serialization::serialize(stream, topics);
00161 return stream.getData();
00162 }
00163
00164 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00165 {
00166 ros::serialization::IStream stream(read_ptr, 1000000000);
00167 ros::serialization::deserialize(stream, multicast_address);
00168 ros::serialization::deserialize(stream, topics);
00169 return stream.getData();
00170 }
00171
00172 ROS_DEPRECATED virtual uint32_t serializationLength() const
00173 {
00174 uint32_t size = 0;
00175 size += ros::serialization::serializationLength(multicast_address);
00176 size += ros::serialization::serializationLength(topics);
00177 return size;
00178 }
00179
00180 typedef boost::shared_ptr< ::udpmulti_transport::UDPMultGetTopicListResponse_<ContainerAllocator> > Ptr;
00181 typedef boost::shared_ptr< ::udpmulti_transport::UDPMultGetTopicListResponse_<ContainerAllocator> const> ConstPtr;
00182 };
00183 typedef ::udpmulti_transport::UDPMultGetTopicListResponse_<std::allocator<void> > UDPMultGetTopicListResponse;
00184
00185 typedef boost::shared_ptr< ::udpmulti_transport::UDPMultGetTopicListResponse> UDPMultGetTopicListResponsePtr;
00186 typedef boost::shared_ptr< ::udpmulti_transport::UDPMultGetTopicListResponse const> UDPMultGetTopicListResponseConstPtr;
00187
00188 struct UDPMultGetTopicList
00189 {
00190
00191 typedef UDPMultGetTopicListRequest Request;
00192 typedef UDPMultGetTopicListResponse Response;
00193 Request request;
00194 Response response;
00195
00196 typedef Request RequestType;
00197 typedef Response ResponseType;
00198 };
00199 }
00200
00201 namespace ros
00202 {
00203 namespace message_traits
00204 {
00205 template<class ContainerAllocator>
00206 struct MD5Sum< ::udpmulti_transport::UDPMultGetTopicListRequest_<ContainerAllocator> > {
00207 static const char* value()
00208 {
00209 return "d41d8cd98f00b204e9800998ecf8427e";
00210 }
00211
00212 static const char* value(const ::udpmulti_transport::UDPMultGetTopicListRequest_<ContainerAllocator> &) { return value(); }
00213 static const uint64_t static_value1 = 0xd41d8cd98f00b204ULL;
00214 static const uint64_t static_value2 = 0xe9800998ecf8427eULL;
00215 };
00216
00217 template<class ContainerAllocator>
00218 struct DataType< ::udpmulti_transport::UDPMultGetTopicListRequest_<ContainerAllocator> > {
00219 static const char* value()
00220 {
00221 return "udpmulti_transport/UDPMultGetTopicListRequest";
00222 }
00223
00224 static const char* value(const ::udpmulti_transport::UDPMultGetTopicListRequest_<ContainerAllocator> &) { return value(); }
00225 };
00226
00227 template<class ContainerAllocator>
00228 struct Definition< ::udpmulti_transport::UDPMultGetTopicListRequest_<ContainerAllocator> > {
00229 static const char* value()
00230 {
00231 return "\n\
00232 ";
00233 }
00234
00235 static const char* value(const ::udpmulti_transport::UDPMultGetTopicListRequest_<ContainerAllocator> &) { return value(); }
00236 };
00237
00238 template<class ContainerAllocator> struct IsFixedSize< ::udpmulti_transport::UDPMultGetTopicListRequest_<ContainerAllocator> > : public TrueType {};
00239 }
00240 }
00241
00242
00243 namespace ros
00244 {
00245 namespace message_traits
00246 {
00247 template<class ContainerAllocator>
00248 struct MD5Sum< ::udpmulti_transport::UDPMultGetTopicListResponse_<ContainerAllocator> > {
00249 static const char* value()
00250 {
00251 return "22672cb98b49fe101a321cb17bceec21";
00252 }
00253
00254 static const char* value(const ::udpmulti_transport::UDPMultGetTopicListResponse_<ContainerAllocator> &) { return value(); }
00255 static const uint64_t static_value1 = 0x22672cb98b49fe10ULL;
00256 static const uint64_t static_value2 = 0x1a321cb17bceec21ULL;
00257 };
00258
00259 template<class ContainerAllocator>
00260 struct DataType< ::udpmulti_transport::UDPMultGetTopicListResponse_<ContainerAllocator> > {
00261 static const char* value()
00262 {
00263 return "udpmulti_transport/UDPMultGetTopicListResponse";
00264 }
00265
00266 static const char* value(const ::udpmulti_transport::UDPMultGetTopicListResponse_<ContainerAllocator> &) { return value(); }
00267 };
00268
00269 template<class ContainerAllocator>
00270 struct Definition< ::udpmulti_transport::UDPMultGetTopicListResponse_<ContainerAllocator> > {
00271 static const char* value()
00272 {
00273 return "string multicast_address\n\
00274 udpmulti_transport/UDPMultTopic[] topics\n\
00275 \n\
00276 \n\
00277 ================================================================================\n\
00278 MSG: udpmulti_transport/UDPMultTopic\n\
00279 string topic\n\
00280 uint16 port\n\
00281 \n\
00282 ";
00283 }
00284
00285 static const char* value(const ::udpmulti_transport::UDPMultGetTopicListResponse_<ContainerAllocator> &) { return value(); }
00286 };
00287
00288 }
00289 }
00290
00291 namespace ros
00292 {
00293 namespace serialization
00294 {
00295
00296 template<class ContainerAllocator> struct Serializer< ::udpmulti_transport::UDPMultGetTopicListRequest_<ContainerAllocator> >
00297 {
00298 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00299 {
00300 }
00301
00302 ROS_DECLARE_ALLINONE_SERIALIZER;
00303 };
00304 }
00305 }
00306
00307
00308 namespace ros
00309 {
00310 namespace serialization
00311 {
00312
00313 template<class ContainerAllocator> struct Serializer< ::udpmulti_transport::UDPMultGetTopicListResponse_<ContainerAllocator> >
00314 {
00315 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00316 {
00317 stream.next(m.multicast_address);
00318 stream.next(m.topics);
00319 }
00320
00321 ROS_DECLARE_ALLINONE_SERIALIZER;
00322 };
00323 }
00324 }
00325
00326 namespace ros
00327 {
00328 namespace service_traits
00329 {
00330 template<>
00331 struct MD5Sum<udpmulti_transport::UDPMultGetTopicList> {
00332 static const char* value()
00333 {
00334 return "22672cb98b49fe101a321cb17bceec21";
00335 }
00336
00337 static const char* value(const udpmulti_transport::UDPMultGetTopicList&) { return value(); }
00338 };
00339
00340 template<>
00341 struct DataType<udpmulti_transport::UDPMultGetTopicList> {
00342 static const char* value()
00343 {
00344 return "udpmulti_transport/UDPMultGetTopicList";
00345 }
00346
00347 static const char* value(const udpmulti_transport::UDPMultGetTopicList&) { return value(); }
00348 };
00349
00350 template<class ContainerAllocator>
00351 struct MD5Sum<udpmulti_transport::UDPMultGetTopicListRequest_<ContainerAllocator> > {
00352 static const char* value()
00353 {
00354 return "22672cb98b49fe101a321cb17bceec21";
00355 }
00356
00357 static const char* value(const udpmulti_transport::UDPMultGetTopicListRequest_<ContainerAllocator> &) { return value(); }
00358 };
00359
00360 template<class ContainerAllocator>
00361 struct DataType<udpmulti_transport::UDPMultGetTopicListRequest_<ContainerAllocator> > {
00362 static const char* value()
00363 {
00364 return "udpmulti_transport/UDPMultGetTopicList";
00365 }
00366
00367 static const char* value(const udpmulti_transport::UDPMultGetTopicListRequest_<ContainerAllocator> &) { return value(); }
00368 };
00369
00370 template<class ContainerAllocator>
00371 struct MD5Sum<udpmulti_transport::UDPMultGetTopicListResponse_<ContainerAllocator> > {
00372 static const char* value()
00373 {
00374 return "22672cb98b49fe101a321cb17bceec21";
00375 }
00376
00377 static const char* value(const udpmulti_transport::UDPMultGetTopicListResponse_<ContainerAllocator> &) { return value(); }
00378 };
00379
00380 template<class ContainerAllocator>
00381 struct DataType<udpmulti_transport::UDPMultGetTopicListResponse_<ContainerAllocator> > {
00382 static const char* value()
00383 {
00384 return "udpmulti_transport/UDPMultGetTopicList";
00385 }
00386
00387 static const char* value(const udpmulti_transport::UDPMultGetTopicListResponse_<ContainerAllocator> &) { return value(); }
00388 };
00389
00390 }
00391 }
00392
00393 #endif // UDPMULTI_TRANSPORT_SERVICE_UDPMULTGETTOPICLIST_H
00394