$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-object_manipulation/doc_stacks/2013-03-01_16-13-18.345538/object_manipulation/household_objects_database_msgs/srv/GetModelMesh.srv */ 00002 #ifndef HOUSEHOLD_OBJECTS_DATABASE_MSGS_SERVICE_GETMODELMESH_H 00003 #define HOUSEHOLD_OBJECTS_DATABASE_MSGS_SERVICE_GETMODELMESH_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 #include "household_objects_database_msgs/DatabaseReturnCode.h" 00022 #include "arm_navigation_msgs/Shape.h" 00023 00024 namespace household_objects_database_msgs 00025 { 00026 template <class ContainerAllocator> 00027 struct GetModelMeshRequest_ { 00028 typedef GetModelMeshRequest_<ContainerAllocator> Type; 00029 00030 GetModelMeshRequest_() 00031 : model_id(0) 00032 { 00033 } 00034 00035 GetModelMeshRequest_(const ContainerAllocator& _alloc) 00036 : model_id(0) 00037 { 00038 } 00039 00040 typedef int32_t _model_id_type; 00041 int32_t model_id; 00042 00043 00044 private: 00045 static const char* __s_getDataType_() { return "household_objects_database_msgs/GetModelMeshRequest"; } 00046 public: 00047 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00048 00049 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00050 00051 private: 00052 static const char* __s_getMD5Sum_() { return "28cb0598daf3b969068a38cd07aaa9f6"; } 00053 public: 00054 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00055 00056 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00057 00058 private: 00059 static const char* __s_getServerMD5Sum_() { return "5818acc32a9241b18f7b8a9445b38537"; } 00060 public: 00061 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } 00062 00063 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } 00064 00065 private: 00066 static const char* __s_getMessageDefinition_() { return "\n\ 00067 \n\ 00068 \n\ 00069 int32 model_id\n\ 00070 \n\ 00071 \n\ 00072 "; } 00073 public: 00074 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00075 00076 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00077 00078 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00079 { 00080 ros::serialization::OStream stream(write_ptr, 1000000000); 00081 ros::serialization::serialize(stream, model_id); 00082 return stream.getData(); 00083 } 00084 00085 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00086 { 00087 ros::serialization::IStream stream(read_ptr, 1000000000); 00088 ros::serialization::deserialize(stream, model_id); 00089 return stream.getData(); 00090 } 00091 00092 ROS_DEPRECATED virtual uint32_t serializationLength() const 00093 { 00094 uint32_t size = 0; 00095 size += ros::serialization::serializationLength(model_id); 00096 return size; 00097 } 00098 00099 typedef boost::shared_ptr< ::household_objects_database_msgs::GetModelMeshRequest_<ContainerAllocator> > Ptr; 00100 typedef boost::shared_ptr< ::household_objects_database_msgs::GetModelMeshRequest_<ContainerAllocator> const> ConstPtr; 00101 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00102 }; // struct GetModelMeshRequest 00103 typedef ::household_objects_database_msgs::GetModelMeshRequest_<std::allocator<void> > GetModelMeshRequest; 00104 00105 typedef boost::shared_ptr< ::household_objects_database_msgs::GetModelMeshRequest> GetModelMeshRequestPtr; 00106 typedef boost::shared_ptr< ::household_objects_database_msgs::GetModelMeshRequest const> GetModelMeshRequestConstPtr; 00107 00108 00109 template <class ContainerAllocator> 00110 struct GetModelMeshResponse_ { 00111 typedef GetModelMeshResponse_<ContainerAllocator> Type; 00112 00113 GetModelMeshResponse_() 00114 : return_code() 00115 , mesh() 00116 { 00117 } 00118 00119 GetModelMeshResponse_(const ContainerAllocator& _alloc) 00120 : return_code(_alloc) 00121 , mesh(_alloc) 00122 { 00123 } 00124 00125 typedef ::household_objects_database_msgs::DatabaseReturnCode_<ContainerAllocator> _return_code_type; 00126 ::household_objects_database_msgs::DatabaseReturnCode_<ContainerAllocator> return_code; 00127 00128 typedef ::arm_navigation_msgs::Shape_<ContainerAllocator> _mesh_type; 00129 ::arm_navigation_msgs::Shape_<ContainerAllocator> mesh; 00130 00131 00132 private: 00133 static const char* __s_getDataType_() { return "household_objects_database_msgs/GetModelMeshResponse"; } 00134 public: 00135 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00136 00137 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00138 00139 private: 00140 static const char* __s_getMD5Sum_() { return "c80005b4fe4c8f41b80f3d8cffb7852f"; } 00141 public: 00142 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00143 00144 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00145 00146 private: 00147 static const char* __s_getServerMD5Sum_() { return "5818acc32a9241b18f7b8a9445b38537"; } 00148 public: 00149 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } 00150 00151 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } 00152 00153 private: 00154 static const char* __s_getMessageDefinition_() { return "\n\ 00155 \n\ 00156 DatabaseReturnCode return_code\n\ 00157 \n\ 00158 \n\ 00159 arm_navigation_msgs/Shape mesh\n\ 00160 \n\ 00161 \n\ 00162 ================================================================================\n\ 00163 MSG: household_objects_database_msgs/DatabaseReturnCode\n\ 00164 # return codes for database-related services\n\ 00165 \n\ 00166 int32 UNKNOWN_ERROR = 1\n\ 00167 int32 DATABASE_NOT_CONNECTED = 2\n\ 00168 int32 DATABASE_QUERY_ERROR = 3\n\ 00169 int32 SUCCESS = -1\n\ 00170 \n\ 00171 int32 code\n\ 00172 ================================================================================\n\ 00173 MSG: arm_navigation_msgs/Shape\n\ 00174 byte SPHERE=0\n\ 00175 byte BOX=1\n\ 00176 byte CYLINDER=2\n\ 00177 byte MESH=3\n\ 00178 \n\ 00179 byte type\n\ 00180 \n\ 00181 \n\ 00182 #### define sphere, box, cylinder ####\n\ 00183 # the origin of each shape is considered at the shape's center\n\ 00184 \n\ 00185 # for sphere\n\ 00186 # radius := dimensions[0]\n\ 00187 \n\ 00188 # for cylinder\n\ 00189 # radius := dimensions[0]\n\ 00190 # length := dimensions[1]\n\ 00191 # the length is along the Z axis\n\ 00192 \n\ 00193 # for box\n\ 00194 # size_x := dimensions[0]\n\ 00195 # size_y := dimensions[1]\n\ 00196 # size_z := dimensions[2]\n\ 00197 float64[] dimensions\n\ 00198 \n\ 00199 \n\ 00200 #### define mesh ####\n\ 00201 \n\ 00202 # list of triangles; triangle k is defined by tre vertices located\n\ 00203 # at indices triangles[3k], triangles[3k+1], triangles[3k+2]\n\ 00204 int32[] triangles\n\ 00205 geometry_msgs/Point[] vertices\n\ 00206 \n\ 00207 ================================================================================\n\ 00208 MSG: geometry_msgs/Point\n\ 00209 # This contains the position of a point in free space\n\ 00210 float64 x\n\ 00211 float64 y\n\ 00212 float64 z\n\ 00213 \n\ 00214 "; } 00215 public: 00216 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00217 00218 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00219 00220 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00221 { 00222 ros::serialization::OStream stream(write_ptr, 1000000000); 00223 ros::serialization::serialize(stream, return_code); 00224 ros::serialization::serialize(stream, mesh); 00225 return stream.getData(); 00226 } 00227 00228 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00229 { 00230 ros::serialization::IStream stream(read_ptr, 1000000000); 00231 ros::serialization::deserialize(stream, return_code); 00232 ros::serialization::deserialize(stream, mesh); 00233 return stream.getData(); 00234 } 00235 00236 ROS_DEPRECATED virtual uint32_t serializationLength() const 00237 { 00238 uint32_t size = 0; 00239 size += ros::serialization::serializationLength(return_code); 00240 size += ros::serialization::serializationLength(mesh); 00241 return size; 00242 } 00243 00244 typedef boost::shared_ptr< ::household_objects_database_msgs::GetModelMeshResponse_<ContainerAllocator> > Ptr; 00245 typedef boost::shared_ptr< ::household_objects_database_msgs::GetModelMeshResponse_<ContainerAllocator> const> ConstPtr; 00246 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00247 }; // struct GetModelMeshResponse 00248 typedef ::household_objects_database_msgs::GetModelMeshResponse_<std::allocator<void> > GetModelMeshResponse; 00249 00250 typedef boost::shared_ptr< ::household_objects_database_msgs::GetModelMeshResponse> GetModelMeshResponsePtr; 00251 typedef boost::shared_ptr< ::household_objects_database_msgs::GetModelMeshResponse const> GetModelMeshResponseConstPtr; 00252 00253 struct GetModelMesh 00254 { 00255 00256 typedef GetModelMeshRequest Request; 00257 typedef GetModelMeshResponse Response; 00258 Request request; 00259 Response response; 00260 00261 typedef Request RequestType; 00262 typedef Response ResponseType; 00263 }; // struct GetModelMesh 00264 } // namespace household_objects_database_msgs 00265 00266 namespace ros 00267 { 00268 namespace message_traits 00269 { 00270 template<class ContainerAllocator> struct IsMessage< ::household_objects_database_msgs::GetModelMeshRequest_<ContainerAllocator> > : public TrueType {}; 00271 template<class ContainerAllocator> struct IsMessage< ::household_objects_database_msgs::GetModelMeshRequest_<ContainerAllocator> const> : public TrueType {}; 00272 template<class ContainerAllocator> 00273 struct MD5Sum< ::household_objects_database_msgs::GetModelMeshRequest_<ContainerAllocator> > { 00274 static const char* value() 00275 { 00276 return "28cb0598daf3b969068a38cd07aaa9f6"; 00277 } 00278 00279 static const char* value(const ::household_objects_database_msgs::GetModelMeshRequest_<ContainerAllocator> &) { return value(); } 00280 static const uint64_t static_value1 = 0x28cb0598daf3b969ULL; 00281 static const uint64_t static_value2 = 0x068a38cd07aaa9f6ULL; 00282 }; 00283 00284 template<class ContainerAllocator> 00285 struct DataType< ::household_objects_database_msgs::GetModelMeshRequest_<ContainerAllocator> > { 00286 static const char* value() 00287 { 00288 return "household_objects_database_msgs/GetModelMeshRequest"; 00289 } 00290 00291 static const char* value(const ::household_objects_database_msgs::GetModelMeshRequest_<ContainerAllocator> &) { return value(); } 00292 }; 00293 00294 template<class ContainerAllocator> 00295 struct Definition< ::household_objects_database_msgs::GetModelMeshRequest_<ContainerAllocator> > { 00296 static const char* value() 00297 { 00298 return "\n\ 00299 \n\ 00300 \n\ 00301 int32 model_id\n\ 00302 \n\ 00303 \n\ 00304 "; 00305 } 00306 00307 static const char* value(const ::household_objects_database_msgs::GetModelMeshRequest_<ContainerAllocator> &) { return value(); } 00308 }; 00309 00310 template<class ContainerAllocator> struct IsFixedSize< ::household_objects_database_msgs::GetModelMeshRequest_<ContainerAllocator> > : public TrueType {}; 00311 } // namespace message_traits 00312 } // namespace ros 00313 00314 00315 namespace ros 00316 { 00317 namespace message_traits 00318 { 00319 template<class ContainerAllocator> struct IsMessage< ::household_objects_database_msgs::GetModelMeshResponse_<ContainerAllocator> > : public TrueType {}; 00320 template<class ContainerAllocator> struct IsMessage< ::household_objects_database_msgs::GetModelMeshResponse_<ContainerAllocator> const> : public TrueType {}; 00321 template<class ContainerAllocator> 00322 struct MD5Sum< ::household_objects_database_msgs::GetModelMeshResponse_<ContainerAllocator> > { 00323 static const char* value() 00324 { 00325 return "c80005b4fe4c8f41b80f3d8cffb7852f"; 00326 } 00327 00328 static const char* value(const ::household_objects_database_msgs::GetModelMeshResponse_<ContainerAllocator> &) { return value(); } 00329 static const uint64_t static_value1 = 0xc80005b4fe4c8f41ULL; 00330 static const uint64_t static_value2 = 0xb80f3d8cffb7852fULL; 00331 }; 00332 00333 template<class ContainerAllocator> 00334 struct DataType< ::household_objects_database_msgs::GetModelMeshResponse_<ContainerAllocator> > { 00335 static const char* value() 00336 { 00337 return "household_objects_database_msgs/GetModelMeshResponse"; 00338 } 00339 00340 static const char* value(const ::household_objects_database_msgs::GetModelMeshResponse_<ContainerAllocator> &) { return value(); } 00341 }; 00342 00343 template<class ContainerAllocator> 00344 struct Definition< ::household_objects_database_msgs::GetModelMeshResponse_<ContainerAllocator> > { 00345 static const char* value() 00346 { 00347 return "\n\ 00348 \n\ 00349 DatabaseReturnCode return_code\n\ 00350 \n\ 00351 \n\ 00352 arm_navigation_msgs/Shape mesh\n\ 00353 \n\ 00354 \n\ 00355 ================================================================================\n\ 00356 MSG: household_objects_database_msgs/DatabaseReturnCode\n\ 00357 # return codes for database-related services\n\ 00358 \n\ 00359 int32 UNKNOWN_ERROR = 1\n\ 00360 int32 DATABASE_NOT_CONNECTED = 2\n\ 00361 int32 DATABASE_QUERY_ERROR = 3\n\ 00362 int32 SUCCESS = -1\n\ 00363 \n\ 00364 int32 code\n\ 00365 ================================================================================\n\ 00366 MSG: arm_navigation_msgs/Shape\n\ 00367 byte SPHERE=0\n\ 00368 byte BOX=1\n\ 00369 byte CYLINDER=2\n\ 00370 byte MESH=3\n\ 00371 \n\ 00372 byte type\n\ 00373 \n\ 00374 \n\ 00375 #### define sphere, box, cylinder ####\n\ 00376 # the origin of each shape is considered at the shape's center\n\ 00377 \n\ 00378 # for sphere\n\ 00379 # radius := dimensions[0]\n\ 00380 \n\ 00381 # for cylinder\n\ 00382 # radius := dimensions[0]\n\ 00383 # length := dimensions[1]\n\ 00384 # the length is along the Z axis\n\ 00385 \n\ 00386 # for box\n\ 00387 # size_x := dimensions[0]\n\ 00388 # size_y := dimensions[1]\n\ 00389 # size_z := dimensions[2]\n\ 00390 float64[] dimensions\n\ 00391 \n\ 00392 \n\ 00393 #### define mesh ####\n\ 00394 \n\ 00395 # list of triangles; triangle k is defined by tre vertices located\n\ 00396 # at indices triangles[3k], triangles[3k+1], triangles[3k+2]\n\ 00397 int32[] triangles\n\ 00398 geometry_msgs/Point[] vertices\n\ 00399 \n\ 00400 ================================================================================\n\ 00401 MSG: geometry_msgs/Point\n\ 00402 # This contains the position of a point in free space\n\ 00403 float64 x\n\ 00404 float64 y\n\ 00405 float64 z\n\ 00406 \n\ 00407 "; 00408 } 00409 00410 static const char* value(const ::household_objects_database_msgs::GetModelMeshResponse_<ContainerAllocator> &) { return value(); } 00411 }; 00412 00413 } // namespace message_traits 00414 } // namespace ros 00415 00416 namespace ros 00417 { 00418 namespace serialization 00419 { 00420 00421 template<class ContainerAllocator> struct Serializer< ::household_objects_database_msgs::GetModelMeshRequest_<ContainerAllocator> > 00422 { 00423 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00424 { 00425 stream.next(m.model_id); 00426 } 00427 00428 ROS_DECLARE_ALLINONE_SERIALIZER; 00429 }; // struct GetModelMeshRequest_ 00430 } // namespace serialization 00431 } // namespace ros 00432 00433 00434 namespace ros 00435 { 00436 namespace serialization 00437 { 00438 00439 template<class ContainerAllocator> struct Serializer< ::household_objects_database_msgs::GetModelMeshResponse_<ContainerAllocator> > 00440 { 00441 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00442 { 00443 stream.next(m.return_code); 00444 stream.next(m.mesh); 00445 } 00446 00447 ROS_DECLARE_ALLINONE_SERIALIZER; 00448 }; // struct GetModelMeshResponse_ 00449 } // namespace serialization 00450 } // namespace ros 00451 00452 namespace ros 00453 { 00454 namespace service_traits 00455 { 00456 template<> 00457 struct MD5Sum<household_objects_database_msgs::GetModelMesh> { 00458 static const char* value() 00459 { 00460 return "5818acc32a9241b18f7b8a9445b38537"; 00461 } 00462 00463 static const char* value(const household_objects_database_msgs::GetModelMesh&) { return value(); } 00464 }; 00465 00466 template<> 00467 struct DataType<household_objects_database_msgs::GetModelMesh> { 00468 static const char* value() 00469 { 00470 return "household_objects_database_msgs/GetModelMesh"; 00471 } 00472 00473 static const char* value(const household_objects_database_msgs::GetModelMesh&) { return value(); } 00474 }; 00475 00476 template<class ContainerAllocator> 00477 struct MD5Sum<household_objects_database_msgs::GetModelMeshRequest_<ContainerAllocator> > { 00478 static const char* value() 00479 { 00480 return "5818acc32a9241b18f7b8a9445b38537"; 00481 } 00482 00483 static const char* value(const household_objects_database_msgs::GetModelMeshRequest_<ContainerAllocator> &) { return value(); } 00484 }; 00485 00486 template<class ContainerAllocator> 00487 struct DataType<household_objects_database_msgs::GetModelMeshRequest_<ContainerAllocator> > { 00488 static const char* value() 00489 { 00490 return "household_objects_database_msgs/GetModelMesh"; 00491 } 00492 00493 static const char* value(const household_objects_database_msgs::GetModelMeshRequest_<ContainerAllocator> &) { return value(); } 00494 }; 00495 00496 template<class ContainerAllocator> 00497 struct MD5Sum<household_objects_database_msgs::GetModelMeshResponse_<ContainerAllocator> > { 00498 static const char* value() 00499 { 00500 return "5818acc32a9241b18f7b8a9445b38537"; 00501 } 00502 00503 static const char* value(const household_objects_database_msgs::GetModelMeshResponse_<ContainerAllocator> &) { return value(); } 00504 }; 00505 00506 template<class ContainerAllocator> 00507 struct DataType<household_objects_database_msgs::GetModelMeshResponse_<ContainerAllocator> > { 00508 static const char* value() 00509 { 00510 return "household_objects_database_msgs/GetModelMesh"; 00511 } 00512 00513 static const char* value(const household_objects_database_msgs::GetModelMeshResponse_<ContainerAllocator> &) { return value(); } 00514 }; 00515 00516 } // namespace service_traits 00517 } // namespace ros 00518 00519 #endif // HOUSEHOLD_OBJECTS_DATABASE_MSGS_SERVICE_GETMODELMESH_H 00520