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