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