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