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