00001
00002 #ifndef NODELET_SERVICE_NODELETLIST_H
00003 #define NODELET_SERVICE_NODELETLIST_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 nodelet
00019 {
00020 template <class ContainerAllocator>
00021 struct NodeletListRequest_ : public ros::Message
00022 {
00023 typedef NodeletListRequest_<ContainerAllocator> Type;
00024
00025 NodeletListRequest_()
00026 {
00027 }
00028
00029 NodeletListRequest_(const ContainerAllocator& _alloc)
00030 {
00031 }
00032
00033
00034 private:
00035 static const char* __s_getDataType_() { return "nodelet/NodeletListRequest"; }
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 "99c7b10e794f5600b8030e697e946ca7"; }
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< ::nodelet::NodeletListRequest_<ContainerAllocator> > Ptr;
00082 typedef boost::shared_ptr< ::nodelet::NodeletListRequest_<ContainerAllocator> const> ConstPtr;
00083 };
00084 typedef ::nodelet::NodeletListRequest_<std::allocator<void> > NodeletListRequest;
00085
00086 typedef boost::shared_ptr< ::nodelet::NodeletListRequest> NodeletListRequestPtr;
00087 typedef boost::shared_ptr< ::nodelet::NodeletListRequest const> NodeletListRequestConstPtr;
00088
00089
00090 template <class ContainerAllocator>
00091 struct NodeletListResponse_ : public ros::Message
00092 {
00093 typedef NodeletListResponse_<ContainerAllocator> Type;
00094
00095 NodeletListResponse_()
00096 : nodelets()
00097 {
00098 }
00099
00100 NodeletListResponse_(const ContainerAllocator& _alloc)
00101 : nodelets(_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 > _nodelets_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 > nodelets;
00107
00108
00109 ROS_DEPRECATED uint32_t get_nodelets_size() const { return (uint32_t)nodelets.size(); }
00110 ROS_DEPRECATED void set_nodelets_size(uint32_t size) { nodelets.resize((size_t)size); }
00111 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; }
00112 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; }
00113 private:
00114 static const char* __s_getDataType_() { return "nodelet/NodeletListResponse"; }
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 "99c7b10e794f5600b8030e697e946ca7"; }
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 "99c7b10e794f5600b8030e697e946ca7"; }
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[] nodelets\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, nodelets);
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, nodelets);
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(nodelets);
00162 return size;
00163 }
00164
00165 typedef boost::shared_ptr< ::nodelet::NodeletListResponse_<ContainerAllocator> > Ptr;
00166 typedef boost::shared_ptr< ::nodelet::NodeletListResponse_<ContainerAllocator> const> ConstPtr;
00167 };
00168 typedef ::nodelet::NodeletListResponse_<std::allocator<void> > NodeletListResponse;
00169
00170 typedef boost::shared_ptr< ::nodelet::NodeletListResponse> NodeletListResponsePtr;
00171 typedef boost::shared_ptr< ::nodelet::NodeletListResponse const> NodeletListResponseConstPtr;
00172
00173 struct NodeletList
00174 {
00175
00176 typedef NodeletListRequest Request;
00177 typedef NodeletListResponse 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< ::nodelet::NodeletListRequest_<ContainerAllocator> > {
00192 static const char* value()
00193 {
00194 return "d41d8cd98f00b204e9800998ecf8427e";
00195 }
00196
00197 static const char* value(const ::nodelet::NodeletListRequest_<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< ::nodelet::NodeletListRequest_<ContainerAllocator> > {
00204 static const char* value()
00205 {
00206 return "nodelet/NodeletListRequest";
00207 }
00208
00209 static const char* value(const ::nodelet::NodeletListRequest_<ContainerAllocator> &) { return value(); }
00210 };
00211
00212 template<class ContainerAllocator>
00213 struct Definition< ::nodelet::NodeletListRequest_<ContainerAllocator> > {
00214 static const char* value()
00215 {
00216 return "\n\
00217 ";
00218 }
00219
00220 static const char* value(const ::nodelet::NodeletListRequest_<ContainerAllocator> &) { return value(); }
00221 };
00222
00223 template<class ContainerAllocator> struct IsFixedSize< ::nodelet::NodeletListRequest_<ContainerAllocator> > : public TrueType {};
00224 }
00225 }
00226
00227
00228 namespace ros
00229 {
00230 namespace message_traits
00231 {
00232 template<class ContainerAllocator>
00233 struct MD5Sum< ::nodelet::NodeletListResponse_<ContainerAllocator> > {
00234 static const char* value()
00235 {
00236 return "99c7b10e794f5600b8030e697e946ca7";
00237 }
00238
00239 static const char* value(const ::nodelet::NodeletListResponse_<ContainerAllocator> &) { return value(); }
00240 static const uint64_t static_value1 = 0x99c7b10e794f5600ULL;
00241 static const uint64_t static_value2 = 0xb8030e697e946ca7ULL;
00242 };
00243
00244 template<class ContainerAllocator>
00245 struct DataType< ::nodelet::NodeletListResponse_<ContainerAllocator> > {
00246 static const char* value()
00247 {
00248 return "nodelet/NodeletListResponse";
00249 }
00250
00251 static const char* value(const ::nodelet::NodeletListResponse_<ContainerAllocator> &) { return value(); }
00252 };
00253
00254 template<class ContainerAllocator>
00255 struct Definition< ::nodelet::NodeletListResponse_<ContainerAllocator> > {
00256 static const char* value()
00257 {
00258 return "string[] nodelets\n\
00259 \n\
00260 \n\
00261 ";
00262 }
00263
00264 static const char* value(const ::nodelet::NodeletListResponse_<ContainerAllocator> &) { return value(); }
00265 };
00266
00267 }
00268 }
00269
00270 namespace ros
00271 {
00272 namespace serialization
00273 {
00274
00275 template<class ContainerAllocator> struct Serializer< ::nodelet::NodeletListRequest_<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< ::nodelet::NodeletListResponse_<ContainerAllocator> >
00293 {
00294 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00295 {
00296 stream.next(m.nodelets);
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<nodelet::NodeletList> {
00310 static const char* value()
00311 {
00312 return "99c7b10e794f5600b8030e697e946ca7";
00313 }
00314
00315 static const char* value(const nodelet::NodeletList&) { return value(); }
00316 };
00317
00318 template<>
00319 struct DataType<nodelet::NodeletList> {
00320 static const char* value()
00321 {
00322 return "nodelet/NodeletList";
00323 }
00324
00325 static const char* value(const nodelet::NodeletList&) { return value(); }
00326 };
00327
00328 template<class ContainerAllocator>
00329 struct MD5Sum<nodelet::NodeletListRequest_<ContainerAllocator> > {
00330 static const char* value()
00331 {
00332 return "99c7b10e794f5600b8030e697e946ca7";
00333 }
00334
00335 static const char* value(const nodelet::NodeletListRequest_<ContainerAllocator> &) { return value(); }
00336 };
00337
00338 template<class ContainerAllocator>
00339 struct DataType<nodelet::NodeletListRequest_<ContainerAllocator> > {
00340 static const char* value()
00341 {
00342 return "nodelet/NodeletList";
00343 }
00344
00345 static const char* value(const nodelet::NodeletListRequest_<ContainerAllocator> &) { return value(); }
00346 };
00347
00348 template<class ContainerAllocator>
00349 struct MD5Sum<nodelet::NodeletListResponse_<ContainerAllocator> > {
00350 static const char* value()
00351 {
00352 return "99c7b10e794f5600b8030e697e946ca7";
00353 }
00354
00355 static const char* value(const nodelet::NodeletListResponse_<ContainerAllocator> &) { return value(); }
00356 };
00357
00358 template<class ContainerAllocator>
00359 struct DataType<nodelet::NodeletListResponse_<ContainerAllocator> > {
00360 static const char* value()
00361 {
00362 return "nodelet/NodeletList";
00363 }
00364
00365 static const char* value(const nodelet::NodeletListResponse_<ContainerAllocator> &) { return value(); }
00366 };
00367
00368 }
00369 }
00370
00371 #endif // NODELET_SERVICE_NODELETLIST_H
00372