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