00001
00002 #ifndef EVART_BRIDGE_SERVICE_LIST_H
00003 #define EVART_BRIDGE_SERVICE_LIST_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 "evart_bridge/Body.h"
00018
00019 namespace evart_bridge
00020 {
00021 template <class ContainerAllocator>
00022 struct ListRequest_ : public ros::Message
00023 {
00024 typedef ListRequest_<ContainerAllocator> Type;
00025
00026 ListRequest_()
00027 {
00028 }
00029
00030 ListRequest_(const ContainerAllocator& _alloc)
00031 {
00032 }
00033
00034
00035 private:
00036 static const char* __s_getDataType_() { return "evart_bridge/ListRequest"; }
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 "cdde6a1d7468c550da91c6fb8ed86aa0"; }
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< ::evart_bridge::ListRequest_<ContainerAllocator> > Ptr;
00083 typedef boost::shared_ptr< ::evart_bridge::ListRequest_<ContainerAllocator> const> ConstPtr;
00084 };
00085 typedef ::evart_bridge::ListRequest_<std::allocator<void> > ListRequest;
00086
00087 typedef boost::shared_ptr< ::evart_bridge::ListRequest> ListRequestPtr;
00088 typedef boost::shared_ptr< ::evart_bridge::ListRequest const> ListRequestConstPtr;
00089
00090
00091 template <class ContainerAllocator>
00092 struct ListResponse_ : public ros::Message
00093 {
00094 typedef ListResponse_<ContainerAllocator> Type;
00095
00096 ListResponse_()
00097 : bodies()
00098 {
00099 }
00100
00101 ListResponse_(const ContainerAllocator& _alloc)
00102 : bodies(_alloc)
00103 {
00104 }
00105
00106 typedef std::vector< ::evart_bridge::Body_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::evart_bridge::Body_<ContainerAllocator> >::other > _bodies_type;
00107 std::vector< ::evart_bridge::Body_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::evart_bridge::Body_<ContainerAllocator> >::other > bodies;
00108
00109
00110 ROS_DEPRECATED uint32_t get_bodies_size() const { return (uint32_t)bodies.size(); }
00111 ROS_DEPRECATED void set_bodies_size(uint32_t size) { bodies.resize((size_t)size); }
00112 ROS_DEPRECATED void get_bodies_vec(std::vector< ::evart_bridge::Body_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::evart_bridge::Body_<ContainerAllocator> >::other > & vec) const { vec = this->bodies; }
00113 ROS_DEPRECATED void set_bodies_vec(const std::vector< ::evart_bridge::Body_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::evart_bridge::Body_<ContainerAllocator> >::other > & vec) { this->bodies = vec; }
00114 private:
00115 static const char* __s_getDataType_() { return "evart_bridge/ListResponse"; }
00116 public:
00117 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00118
00119 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00120
00121 private:
00122 static const char* __s_getMD5Sum_() { return "cdde6a1d7468c550da91c6fb8ed86aa0"; }
00123 public:
00124 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00125
00126 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00127
00128 private:
00129 static const char* __s_getServerMD5Sum_() { return "cdde6a1d7468c550da91c6fb8ed86aa0"; }
00130 public:
00131 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); }
00132
00133 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); }
00134
00135 private:
00136 static const char* __s_getMessageDefinition_() { return "Body[] bodies\n\
00137 \n\
00138 \n\
00139 ================================================================================\n\
00140 MSG: evart_bridge/Body\n\
00141 string name\n\
00142 Segment[] segments\n\
00143 Dof[] dofs\n\
00144 \n\
00145 ================================================================================\n\
00146 MSG: evart_bridge/Segment\n\
00147 string name\n\
00148 uint32 parent\n\
00149 \n\
00150 ================================================================================\n\
00151 MSG: evart_bridge/Dof\n\
00152 string name\n\
00153 \n\
00154 "; }
00155 public:
00156 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00157
00158 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00159
00160 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00161 {
00162 ros::serialization::OStream stream(write_ptr, 1000000000);
00163 ros::serialization::serialize(stream, bodies);
00164 return stream.getData();
00165 }
00166
00167 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00168 {
00169 ros::serialization::IStream stream(read_ptr, 1000000000);
00170 ros::serialization::deserialize(stream, bodies);
00171 return stream.getData();
00172 }
00173
00174 ROS_DEPRECATED virtual uint32_t serializationLength() const
00175 {
00176 uint32_t size = 0;
00177 size += ros::serialization::serializationLength(bodies);
00178 return size;
00179 }
00180
00181 typedef boost::shared_ptr< ::evart_bridge::ListResponse_<ContainerAllocator> > Ptr;
00182 typedef boost::shared_ptr< ::evart_bridge::ListResponse_<ContainerAllocator> const> ConstPtr;
00183 };
00184 typedef ::evart_bridge::ListResponse_<std::allocator<void> > ListResponse;
00185
00186 typedef boost::shared_ptr< ::evart_bridge::ListResponse> ListResponsePtr;
00187 typedef boost::shared_ptr< ::evart_bridge::ListResponse const> ListResponseConstPtr;
00188
00189 struct List
00190 {
00191
00192 typedef ListRequest Request;
00193 typedef ListResponse Response;
00194 Request request;
00195 Response response;
00196
00197 typedef Request RequestType;
00198 typedef Response ResponseType;
00199 };
00200 }
00201
00202 namespace ros
00203 {
00204 namespace message_traits
00205 {
00206 template<class ContainerAllocator>
00207 struct MD5Sum< ::evart_bridge::ListRequest_<ContainerAllocator> > {
00208 static const char* value()
00209 {
00210 return "d41d8cd98f00b204e9800998ecf8427e";
00211 }
00212
00213 static const char* value(const ::evart_bridge::ListRequest_<ContainerAllocator> &) { return value(); }
00214 static const uint64_t static_value1 = 0xd41d8cd98f00b204ULL;
00215 static const uint64_t static_value2 = 0xe9800998ecf8427eULL;
00216 };
00217
00218 template<class ContainerAllocator>
00219 struct DataType< ::evart_bridge::ListRequest_<ContainerAllocator> > {
00220 static const char* value()
00221 {
00222 return "evart_bridge/ListRequest";
00223 }
00224
00225 static const char* value(const ::evart_bridge::ListRequest_<ContainerAllocator> &) { return value(); }
00226 };
00227
00228 template<class ContainerAllocator>
00229 struct Definition< ::evart_bridge::ListRequest_<ContainerAllocator> > {
00230 static const char* value()
00231 {
00232 return "\n\
00233 ";
00234 }
00235
00236 static const char* value(const ::evart_bridge::ListRequest_<ContainerAllocator> &) { return value(); }
00237 };
00238
00239 template<class ContainerAllocator> struct IsFixedSize< ::evart_bridge::ListRequest_<ContainerAllocator> > : public TrueType {};
00240 }
00241 }
00242
00243
00244 namespace ros
00245 {
00246 namespace message_traits
00247 {
00248 template<class ContainerAllocator>
00249 struct MD5Sum< ::evart_bridge::ListResponse_<ContainerAllocator> > {
00250 static const char* value()
00251 {
00252 return "cdde6a1d7468c550da91c6fb8ed86aa0";
00253 }
00254
00255 static const char* value(const ::evart_bridge::ListResponse_<ContainerAllocator> &) { return value(); }
00256 static const uint64_t static_value1 = 0xcdde6a1d7468c550ULL;
00257 static const uint64_t static_value2 = 0xda91c6fb8ed86aa0ULL;
00258 };
00259
00260 template<class ContainerAllocator>
00261 struct DataType< ::evart_bridge::ListResponse_<ContainerAllocator> > {
00262 static const char* value()
00263 {
00264 return "evart_bridge/ListResponse";
00265 }
00266
00267 static const char* value(const ::evart_bridge::ListResponse_<ContainerAllocator> &) { return value(); }
00268 };
00269
00270 template<class ContainerAllocator>
00271 struct Definition< ::evart_bridge::ListResponse_<ContainerAllocator> > {
00272 static const char* value()
00273 {
00274 return "Body[] bodies\n\
00275 \n\
00276 \n\
00277 ================================================================================\n\
00278 MSG: evart_bridge/Body\n\
00279 string name\n\
00280 Segment[] segments\n\
00281 Dof[] dofs\n\
00282 \n\
00283 ================================================================================\n\
00284 MSG: evart_bridge/Segment\n\
00285 string name\n\
00286 uint32 parent\n\
00287 \n\
00288 ================================================================================\n\
00289 MSG: evart_bridge/Dof\n\
00290 string name\n\
00291 \n\
00292 ";
00293 }
00294
00295 static const char* value(const ::evart_bridge::ListResponse_<ContainerAllocator> &) { return value(); }
00296 };
00297
00298 }
00299 }
00300
00301 namespace ros
00302 {
00303 namespace serialization
00304 {
00305
00306 template<class ContainerAllocator> struct Serializer< ::evart_bridge::ListRequest_<ContainerAllocator> >
00307 {
00308 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00309 {
00310 }
00311
00312 ROS_DECLARE_ALLINONE_SERIALIZER;
00313 };
00314 }
00315 }
00316
00317
00318 namespace ros
00319 {
00320 namespace serialization
00321 {
00322
00323 template<class ContainerAllocator> struct Serializer< ::evart_bridge::ListResponse_<ContainerAllocator> >
00324 {
00325 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00326 {
00327 stream.next(m.bodies);
00328 }
00329
00330 ROS_DECLARE_ALLINONE_SERIALIZER;
00331 };
00332 }
00333 }
00334
00335 namespace ros
00336 {
00337 namespace service_traits
00338 {
00339 template<>
00340 struct MD5Sum<evart_bridge::List> {
00341 static const char* value()
00342 {
00343 return "cdde6a1d7468c550da91c6fb8ed86aa0";
00344 }
00345
00346 static const char* value(const evart_bridge::List&) { return value(); }
00347 };
00348
00349 template<>
00350 struct DataType<evart_bridge::List> {
00351 static const char* value()
00352 {
00353 return "evart_bridge/List";
00354 }
00355
00356 static const char* value(const evart_bridge::List&) { return value(); }
00357 };
00358
00359 template<class ContainerAllocator>
00360 struct MD5Sum<evart_bridge::ListRequest_<ContainerAllocator> > {
00361 static const char* value()
00362 {
00363 return "cdde6a1d7468c550da91c6fb8ed86aa0";
00364 }
00365
00366 static const char* value(const evart_bridge::ListRequest_<ContainerAllocator> &) { return value(); }
00367 };
00368
00369 template<class ContainerAllocator>
00370 struct DataType<evart_bridge::ListRequest_<ContainerAllocator> > {
00371 static const char* value()
00372 {
00373 return "evart_bridge/List";
00374 }
00375
00376 static const char* value(const evart_bridge::ListRequest_<ContainerAllocator> &) { return value(); }
00377 };
00378
00379 template<class ContainerAllocator>
00380 struct MD5Sum<evart_bridge::ListResponse_<ContainerAllocator> > {
00381 static const char* value()
00382 {
00383 return "cdde6a1d7468c550da91c6fb8ed86aa0";
00384 }
00385
00386 static const char* value(const evart_bridge::ListResponse_<ContainerAllocator> &) { return value(); }
00387 };
00388
00389 template<class ContainerAllocator>
00390 struct DataType<evart_bridge::ListResponse_<ContainerAllocator> > {
00391 static const char* value()
00392 {
00393 return "evart_bridge/List";
00394 }
00395
00396 static const char* value(const evart_bridge::ListResponse_<ContainerAllocator> &) { return value(); }
00397 };
00398
00399 }
00400 }
00401
00402 #endif // EVART_BRIDGE_SERVICE_LIST_H
00403