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