Go to the documentation of this file.00001
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 typedef boost::shared_ptr< ::srs_object_database_msgs::GetMeshRequest_<ContainerAllocator> > Ptr;
00044 typedef boost::shared_ptr< ::srs_object_database_msgs::GetMeshRequest_<ContainerAllocator> const> ConstPtr;
00045 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00046 };
00047 typedef ::srs_object_database_msgs::GetMeshRequest_<std::allocator<void> > GetMeshRequest;
00048
00049 typedef boost::shared_ptr< ::srs_object_database_msgs::GetMeshRequest> GetMeshRequestPtr;
00050 typedef boost::shared_ptr< ::srs_object_database_msgs::GetMeshRequest const> GetMeshRequestConstPtr;
00051
00052
00053 template <class ContainerAllocator>
00054 struct GetMeshResponse_ {
00055 typedef GetMeshResponse_<ContainerAllocator> Type;
00056
00057 GetMeshResponse_()
00058 : return_response()
00059 , msg()
00060 {
00061 }
00062
00063 GetMeshResponse_(const ContainerAllocator& _alloc)
00064 : return_response(_alloc)
00065 , msg(_alloc)
00066 {
00067 }
00068
00069 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _return_response_type;
00070 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > return_response;
00071
00072 typedef std::vector< ::srs_object_database_msgs::mesh_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::srs_object_database_msgs::mesh_<ContainerAllocator> >::other > _msg_type;
00073 std::vector< ::srs_object_database_msgs::mesh_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::srs_object_database_msgs::mesh_<ContainerAllocator> >::other > msg;
00074
00075
00076 typedef boost::shared_ptr< ::srs_object_database_msgs::GetMeshResponse_<ContainerAllocator> > Ptr;
00077 typedef boost::shared_ptr< ::srs_object_database_msgs::GetMeshResponse_<ContainerAllocator> const> ConstPtr;
00078 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00079 };
00080 typedef ::srs_object_database_msgs::GetMeshResponse_<std::allocator<void> > GetMeshResponse;
00081
00082 typedef boost::shared_ptr< ::srs_object_database_msgs::GetMeshResponse> GetMeshResponsePtr;
00083 typedef boost::shared_ptr< ::srs_object_database_msgs::GetMeshResponse const> GetMeshResponseConstPtr;
00084
00085 struct GetMesh
00086 {
00087
00088 typedef GetMeshRequest Request;
00089 typedef GetMeshResponse Response;
00090 Request request;
00091 Response response;
00092
00093 typedef Request RequestType;
00094 typedef Response ResponseType;
00095 };
00096 }
00097
00098 namespace ros
00099 {
00100 namespace message_traits
00101 {
00102 template<class ContainerAllocator> struct IsMessage< ::srs_object_database_msgs::GetMeshRequest_<ContainerAllocator> > : public TrueType {};
00103 template<class ContainerAllocator> struct IsMessage< ::srs_object_database_msgs::GetMeshRequest_<ContainerAllocator> const> : public TrueType {};
00104 template<class ContainerAllocator>
00105 struct MD5Sum< ::srs_object_database_msgs::GetMeshRequest_<ContainerAllocator> > {
00106 static const char* value()
00107 {
00108 return "80afe6caba30c992d2e7ff6ff0e0d51e";
00109 }
00110
00111 static const char* value(const ::srs_object_database_msgs::GetMeshRequest_<ContainerAllocator> &) { return value(); }
00112 static const uint64_t static_value1 = 0x80afe6caba30c992ULL;
00113 static const uint64_t static_value2 = 0xd2e7ff6ff0e0d51eULL;
00114 };
00115
00116 template<class ContainerAllocator>
00117 struct DataType< ::srs_object_database_msgs::GetMeshRequest_<ContainerAllocator> > {
00118 static const char* value()
00119 {
00120 return "srs_object_database_msgs/GetMeshRequest";
00121 }
00122
00123 static const char* value(const ::srs_object_database_msgs::GetMeshRequest_<ContainerAllocator> &) { return value(); }
00124 };
00125
00126 template<class ContainerAllocator>
00127 struct Definition< ::srs_object_database_msgs::GetMeshRequest_<ContainerAllocator> > {
00128 static const char* value()
00129 {
00130 return "\n\
00131 \n\
00132 \n\
00133 \n\
00134 int32[] model_ids\n\
00135 \n\
00136 \n\
00137 \n\
00138 ";
00139 }
00140
00141 static const char* value(const ::srs_object_database_msgs::GetMeshRequest_<ContainerAllocator> &) { return value(); }
00142 };
00143
00144 }
00145 }
00146
00147
00148 namespace ros
00149 {
00150 namespace message_traits
00151 {
00152 template<class ContainerAllocator> struct IsMessage< ::srs_object_database_msgs::GetMeshResponse_<ContainerAllocator> > : public TrueType {};
00153 template<class ContainerAllocator> struct IsMessage< ::srs_object_database_msgs::GetMeshResponse_<ContainerAllocator> const> : public TrueType {};
00154 template<class ContainerAllocator>
00155 struct MD5Sum< ::srs_object_database_msgs::GetMeshResponse_<ContainerAllocator> > {
00156 static const char* value()
00157 {
00158 return "859f0c9f87bd71b652ef91870aa5a727";
00159 }
00160
00161 static const char* value(const ::srs_object_database_msgs::GetMeshResponse_<ContainerAllocator> &) { return value(); }
00162 static const uint64_t static_value1 = 0x859f0c9f87bd71b6ULL;
00163 static const uint64_t static_value2 = 0x52ef91870aa5a727ULL;
00164 };
00165
00166 template<class ContainerAllocator>
00167 struct DataType< ::srs_object_database_msgs::GetMeshResponse_<ContainerAllocator> > {
00168 static const char* value()
00169 {
00170 return "srs_object_database_msgs/GetMeshResponse";
00171 }
00172
00173 static const char* value(const ::srs_object_database_msgs::GetMeshResponse_<ContainerAllocator> &) { return value(); }
00174 };
00175
00176 template<class ContainerAllocator>
00177 struct Definition< ::srs_object_database_msgs::GetMeshResponse_<ContainerAllocator> > {
00178 static const char* value()
00179 {
00180 return "\n\
00181 string return_response\n\
00182 srs_object_database_msgs/mesh[] msg\n\
00183 \n\
00184 \n\
00185 ================================================================================\n\
00186 MSG: srs_object_database_msgs/mesh\n\
00187 int32 objectId\n\
00188 arm_navigation_msgs/Shape mesh\n\
00189 string type\n\
00190 uint8[] data\n\
00191 ================================================================================\n\
00192 MSG: arm_navigation_msgs/Shape\n\
00193 byte SPHERE=0\n\
00194 byte BOX=1\n\
00195 byte CYLINDER=2\n\
00196 byte MESH=3\n\
00197 \n\
00198 byte type\n\
00199 \n\
00200 \n\
00201 #### define sphere, box, cylinder ####\n\
00202 # the origin of each shape is considered at the shape's center\n\
00203 \n\
00204 # for sphere\n\
00205 # radius := dimensions[0]\n\
00206 \n\
00207 # for cylinder\n\
00208 # radius := dimensions[0]\n\
00209 # length := dimensions[1]\n\
00210 # the length is along the Z axis\n\
00211 \n\
00212 # for box\n\
00213 # size_x := dimensions[0]\n\
00214 # size_y := dimensions[1]\n\
00215 # size_z := dimensions[2]\n\
00216 float64[] dimensions\n\
00217 \n\
00218 \n\
00219 #### define mesh ####\n\
00220 \n\
00221 # list of triangles; triangle k is defined by tre vertices located\n\
00222 # at indices triangles[3k], triangles[3k+1], triangles[3k+2]\n\
00223 int32[] triangles\n\
00224 geometry_msgs/Point[] vertices\n\
00225 \n\
00226 ================================================================================\n\
00227 MSG: geometry_msgs/Point\n\
00228 # This contains the position of a point in free space\n\
00229 float64 x\n\
00230 float64 y\n\
00231 float64 z\n\
00232 \n\
00233 ";
00234 }
00235
00236 static const char* value(const ::srs_object_database_msgs::GetMeshResponse_<ContainerAllocator> &) { return value(); }
00237 };
00238
00239 }
00240 }
00241
00242 namespace ros
00243 {
00244 namespace serialization
00245 {
00246
00247 template<class ContainerAllocator> struct Serializer< ::srs_object_database_msgs::GetMeshRequest_<ContainerAllocator> >
00248 {
00249 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00250 {
00251 stream.next(m.model_ids);
00252 }
00253
00254 ROS_DECLARE_ALLINONE_SERIALIZER;
00255 };
00256 }
00257 }
00258
00259
00260 namespace ros
00261 {
00262 namespace serialization
00263 {
00264
00265 template<class ContainerAllocator> struct Serializer< ::srs_object_database_msgs::GetMeshResponse_<ContainerAllocator> >
00266 {
00267 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00268 {
00269 stream.next(m.return_response);
00270 stream.next(m.msg);
00271 }
00272
00273 ROS_DECLARE_ALLINONE_SERIALIZER;
00274 };
00275 }
00276 }
00277
00278 namespace ros
00279 {
00280 namespace service_traits
00281 {
00282 template<>
00283 struct MD5Sum<srs_object_database_msgs::GetMesh> {
00284 static const char* value()
00285 {
00286 return "a3772ee4f5f8006daae5f01f0b3dbee3";
00287 }
00288
00289 static const char* value(const srs_object_database_msgs::GetMesh&) { return value(); }
00290 };
00291
00292 template<>
00293 struct DataType<srs_object_database_msgs::GetMesh> {
00294 static const char* value()
00295 {
00296 return "srs_object_database_msgs/GetMesh";
00297 }
00298
00299 static const char* value(const srs_object_database_msgs::GetMesh&) { return value(); }
00300 };
00301
00302 template<class ContainerAllocator>
00303 struct MD5Sum<srs_object_database_msgs::GetMeshRequest_<ContainerAllocator> > {
00304 static const char* value()
00305 {
00306 return "a3772ee4f5f8006daae5f01f0b3dbee3";
00307 }
00308
00309 static const char* value(const srs_object_database_msgs::GetMeshRequest_<ContainerAllocator> &) { return value(); }
00310 };
00311
00312 template<class ContainerAllocator>
00313 struct DataType<srs_object_database_msgs::GetMeshRequest_<ContainerAllocator> > {
00314 static const char* value()
00315 {
00316 return "srs_object_database_msgs/GetMesh";
00317 }
00318
00319 static const char* value(const srs_object_database_msgs::GetMeshRequest_<ContainerAllocator> &) { return value(); }
00320 };
00321
00322 template<class ContainerAllocator>
00323 struct MD5Sum<srs_object_database_msgs::GetMeshResponse_<ContainerAllocator> > {
00324 static const char* value()
00325 {
00326 return "a3772ee4f5f8006daae5f01f0b3dbee3";
00327 }
00328
00329 static const char* value(const srs_object_database_msgs::GetMeshResponse_<ContainerAllocator> &) { return value(); }
00330 };
00331
00332 template<class ContainerAllocator>
00333 struct DataType<srs_object_database_msgs::GetMeshResponse_<ContainerAllocator> > {
00334 static const char* value()
00335 {
00336 return "srs_object_database_msgs/GetMesh";
00337 }
00338
00339 static const char* value(const srs_object_database_msgs::GetMeshResponse_<ContainerAllocator> &) { return value(); }
00340 };
00341
00342 }
00343 }
00344
00345 #endif // SRS_OBJECT_DATABASE_MSGS_SERVICE_GETMESH_H
00346