00001
00002 #ifndef GRASPIT_INTERFACE_MSGS_SERVICE_LOADDATABASEMODEL_H
00003 #define GRASPIT_INTERFACE_MSGS_SERVICE_LOADDATABASEMODEL_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 #include "geometry_msgs/Pose.h"
00016
00017
00018
00019 namespace graspit_interface_msgs
00020 {
00021 template <class ContainerAllocator>
00022 struct LoadDatabaseModelRequest_ : public ros::Message
00023 {
00024 typedef LoadDatabaseModelRequest_<ContainerAllocator> Type;
00025
00026 LoadDatabaseModelRequest_()
00027 : model_id(0)
00028 , model_pose()
00029 , clear_other_models(false)
00030 {
00031 }
00032
00033 LoadDatabaseModelRequest_(const ContainerAllocator& _alloc)
00034 : model_id(0)
00035 , model_pose(_alloc)
00036 , clear_other_models(false)
00037 {
00038 }
00039
00040 typedef int32_t _model_id_type;
00041 int32_t model_id;
00042
00043 typedef ::geometry_msgs::Pose_<ContainerAllocator> _model_pose_type;
00044 ::geometry_msgs::Pose_<ContainerAllocator> model_pose;
00045
00046 typedef uint8_t _clear_other_models_type;
00047 uint8_t clear_other_models;
00048
00049
00050 private:
00051 static const char* __s_getDataType_() { return "graspit_interface_msgs/LoadDatabaseModelRequest"; }
00052 public:
00053 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00054
00055 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00056
00057 private:
00058 static const char* __s_getMD5Sum_() { return "e0142126fa25500956c0574c8caa1798"; }
00059 public:
00060 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00061
00062 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00063
00064 private:
00065 static const char* __s_getServerMD5Sum_() { return "8e7f810fdd6e19434987115ec75645ca"; }
00066 public:
00067 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); }
00068
00069 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); }
00070
00071 private:
00072 static const char* __s_getMessageDefinition_() { return "\n\
00073 \n\
00074 \n\
00075 \n\
00076 \n\
00077 int32 model_id\n\
00078 \n\
00079 \n\
00080 geometry_msgs/Pose model_pose\n\
00081 \n\
00082 \n\
00083 \n\
00084 bool clear_other_models\n\
00085 \n\
00086 \n\
00087 ================================================================================\n\
00088 MSG: geometry_msgs/Pose\n\
00089 # A representation of pose in free space, composed of postion and orientation. \n\
00090 Point position\n\
00091 Quaternion orientation\n\
00092 \n\
00093 ================================================================================\n\
00094 MSG: geometry_msgs/Point\n\
00095 # This contains the position of a point in free space\n\
00096 float64 x\n\
00097 float64 y\n\
00098 float64 z\n\
00099 \n\
00100 ================================================================================\n\
00101 MSG: geometry_msgs/Quaternion\n\
00102 # This represents an orientation in free space in quaternion form.\n\
00103 \n\
00104 float64 x\n\
00105 float64 y\n\
00106 float64 z\n\
00107 float64 w\n\
00108 \n\
00109 "; }
00110 public:
00111 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00112
00113 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00114
00115 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00116 {
00117 ros::serialization::OStream stream(write_ptr, 1000000000);
00118 ros::serialization::serialize(stream, model_id);
00119 ros::serialization::serialize(stream, model_pose);
00120 ros::serialization::serialize(stream, clear_other_models);
00121 return stream.getData();
00122 }
00123
00124 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00125 {
00126 ros::serialization::IStream stream(read_ptr, 1000000000);
00127 ros::serialization::deserialize(stream, model_id);
00128 ros::serialization::deserialize(stream, model_pose);
00129 ros::serialization::deserialize(stream, clear_other_models);
00130 return stream.getData();
00131 }
00132
00133 ROS_DEPRECATED virtual uint32_t serializationLength() const
00134 {
00135 uint32_t size = 0;
00136 size += ros::serialization::serializationLength(model_id);
00137 size += ros::serialization::serializationLength(model_pose);
00138 size += ros::serialization::serializationLength(clear_other_models);
00139 return size;
00140 }
00141
00142 typedef boost::shared_ptr< ::graspit_interface_msgs::LoadDatabaseModelRequest_<ContainerAllocator> > Ptr;
00143 typedef boost::shared_ptr< ::graspit_interface_msgs::LoadDatabaseModelRequest_<ContainerAllocator> const> ConstPtr;
00144 };
00145 typedef ::graspit_interface_msgs::LoadDatabaseModelRequest_<std::allocator<void> > LoadDatabaseModelRequest;
00146
00147 typedef boost::shared_ptr< ::graspit_interface_msgs::LoadDatabaseModelRequest> LoadDatabaseModelRequestPtr;
00148 typedef boost::shared_ptr< ::graspit_interface_msgs::LoadDatabaseModelRequest const> LoadDatabaseModelRequestConstPtr;
00149
00150
00151 template <class ContainerAllocator>
00152 struct LoadDatabaseModelResponse_ : public ros::Message
00153 {
00154 typedef LoadDatabaseModelResponse_<ContainerAllocator> Type;
00155
00156 LoadDatabaseModelResponse_()
00157 : result(0)
00158 {
00159 }
00160
00161 LoadDatabaseModelResponse_(const ContainerAllocator& _alloc)
00162 : result(0)
00163 {
00164 }
00165
00166 typedef int32_t _result_type;
00167 int32_t result;
00168
00169 enum { LOAD_SUCCESS = 0 };
00170 enum { LOAD_FAILURE = 1 };
00171
00172 private:
00173 static const char* __s_getDataType_() { return "graspit_interface_msgs/LoadDatabaseModelResponse"; }
00174 public:
00175 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00176
00177 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00178
00179 private:
00180 static const char* __s_getMD5Sum_() { return "41e017e2964af6197c0f07ec9353afaf"; }
00181 public:
00182 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00183
00184 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00185
00186 private:
00187 static const char* __s_getServerMD5Sum_() { return "8e7f810fdd6e19434987115ec75645ca"; }
00188 public:
00189 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); }
00190
00191 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); }
00192
00193 private:
00194 static const char* __s_getMessageDefinition_() { return "\n\
00195 int32 LOAD_SUCCESS = 0\n\
00196 int32 LOAD_FAILURE = 1\n\
00197 int32 result\n\
00198 \n\
00199 "; }
00200 public:
00201 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00202
00203 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00204
00205 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00206 {
00207 ros::serialization::OStream stream(write_ptr, 1000000000);
00208 ros::serialization::serialize(stream, result);
00209 return stream.getData();
00210 }
00211
00212 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00213 {
00214 ros::serialization::IStream stream(read_ptr, 1000000000);
00215 ros::serialization::deserialize(stream, result);
00216 return stream.getData();
00217 }
00218
00219 ROS_DEPRECATED virtual uint32_t serializationLength() const
00220 {
00221 uint32_t size = 0;
00222 size += ros::serialization::serializationLength(result);
00223 return size;
00224 }
00225
00226 typedef boost::shared_ptr< ::graspit_interface_msgs::LoadDatabaseModelResponse_<ContainerAllocator> > Ptr;
00227 typedef boost::shared_ptr< ::graspit_interface_msgs::LoadDatabaseModelResponse_<ContainerAllocator> const> ConstPtr;
00228 };
00229 typedef ::graspit_interface_msgs::LoadDatabaseModelResponse_<std::allocator<void> > LoadDatabaseModelResponse;
00230
00231 typedef boost::shared_ptr< ::graspit_interface_msgs::LoadDatabaseModelResponse> LoadDatabaseModelResponsePtr;
00232 typedef boost::shared_ptr< ::graspit_interface_msgs::LoadDatabaseModelResponse const> LoadDatabaseModelResponseConstPtr;
00233
00234 struct LoadDatabaseModel
00235 {
00236
00237 typedef LoadDatabaseModelRequest Request;
00238 typedef LoadDatabaseModelResponse Response;
00239 Request request;
00240 Response response;
00241
00242 typedef Request RequestType;
00243 typedef Response ResponseType;
00244 };
00245 }
00246
00247 namespace ros
00248 {
00249 namespace message_traits
00250 {
00251 template<class ContainerAllocator>
00252 struct MD5Sum< ::graspit_interface_msgs::LoadDatabaseModelRequest_<ContainerAllocator> > {
00253 static const char* value()
00254 {
00255 return "e0142126fa25500956c0574c8caa1798";
00256 }
00257
00258 static const char* value(const ::graspit_interface_msgs::LoadDatabaseModelRequest_<ContainerAllocator> &) { return value(); }
00259 static const uint64_t static_value1 = 0xe0142126fa255009ULL;
00260 static const uint64_t static_value2 = 0x56c0574c8caa1798ULL;
00261 };
00262
00263 template<class ContainerAllocator>
00264 struct DataType< ::graspit_interface_msgs::LoadDatabaseModelRequest_<ContainerAllocator> > {
00265 static const char* value()
00266 {
00267 return "graspit_interface_msgs/LoadDatabaseModelRequest";
00268 }
00269
00270 static const char* value(const ::graspit_interface_msgs::LoadDatabaseModelRequest_<ContainerAllocator> &) { return value(); }
00271 };
00272
00273 template<class ContainerAllocator>
00274 struct Definition< ::graspit_interface_msgs::LoadDatabaseModelRequest_<ContainerAllocator> > {
00275 static const char* value()
00276 {
00277 return "\n\
00278 \n\
00279 \n\
00280 \n\
00281 \n\
00282 int32 model_id\n\
00283 \n\
00284 \n\
00285 geometry_msgs/Pose model_pose\n\
00286 \n\
00287 \n\
00288 \n\
00289 bool clear_other_models\n\
00290 \n\
00291 \n\
00292 ================================================================================\n\
00293 MSG: geometry_msgs/Pose\n\
00294 # A representation of pose in free space, composed of postion and orientation. \n\
00295 Point position\n\
00296 Quaternion orientation\n\
00297 \n\
00298 ================================================================================\n\
00299 MSG: geometry_msgs/Point\n\
00300 # This contains the position of a point in free space\n\
00301 float64 x\n\
00302 float64 y\n\
00303 float64 z\n\
00304 \n\
00305 ================================================================================\n\
00306 MSG: geometry_msgs/Quaternion\n\
00307 # This represents an orientation in free space in quaternion form.\n\
00308 \n\
00309 float64 x\n\
00310 float64 y\n\
00311 float64 z\n\
00312 float64 w\n\
00313 \n\
00314 ";
00315 }
00316
00317 static const char* value(const ::graspit_interface_msgs::LoadDatabaseModelRequest_<ContainerAllocator> &) { return value(); }
00318 };
00319
00320 template<class ContainerAllocator> struct IsFixedSize< ::graspit_interface_msgs::LoadDatabaseModelRequest_<ContainerAllocator> > : public TrueType {};
00321 }
00322 }
00323
00324
00325 namespace ros
00326 {
00327 namespace message_traits
00328 {
00329 template<class ContainerAllocator>
00330 struct MD5Sum< ::graspit_interface_msgs::LoadDatabaseModelResponse_<ContainerAllocator> > {
00331 static const char* value()
00332 {
00333 return "41e017e2964af6197c0f07ec9353afaf";
00334 }
00335
00336 static const char* value(const ::graspit_interface_msgs::LoadDatabaseModelResponse_<ContainerAllocator> &) { return value(); }
00337 static const uint64_t static_value1 = 0x41e017e2964af619ULL;
00338 static const uint64_t static_value2 = 0x7c0f07ec9353afafULL;
00339 };
00340
00341 template<class ContainerAllocator>
00342 struct DataType< ::graspit_interface_msgs::LoadDatabaseModelResponse_<ContainerAllocator> > {
00343 static const char* value()
00344 {
00345 return "graspit_interface_msgs/LoadDatabaseModelResponse";
00346 }
00347
00348 static const char* value(const ::graspit_interface_msgs::LoadDatabaseModelResponse_<ContainerAllocator> &) { return value(); }
00349 };
00350
00351 template<class ContainerAllocator>
00352 struct Definition< ::graspit_interface_msgs::LoadDatabaseModelResponse_<ContainerAllocator> > {
00353 static const char* value()
00354 {
00355 return "\n\
00356 int32 LOAD_SUCCESS = 0\n\
00357 int32 LOAD_FAILURE = 1\n\
00358 int32 result\n\
00359 \n\
00360 ";
00361 }
00362
00363 static const char* value(const ::graspit_interface_msgs::LoadDatabaseModelResponse_<ContainerAllocator> &) { return value(); }
00364 };
00365
00366 template<class ContainerAllocator> struct IsFixedSize< ::graspit_interface_msgs::LoadDatabaseModelResponse_<ContainerAllocator> > : public TrueType {};
00367 }
00368 }
00369
00370 namespace ros
00371 {
00372 namespace serialization
00373 {
00374
00375 template<class ContainerAllocator> struct Serializer< ::graspit_interface_msgs::LoadDatabaseModelRequest_<ContainerAllocator> >
00376 {
00377 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00378 {
00379 stream.next(m.model_id);
00380 stream.next(m.model_pose);
00381 stream.next(m.clear_other_models);
00382 }
00383
00384 ROS_DECLARE_ALLINONE_SERIALIZER;
00385 };
00386 }
00387 }
00388
00389
00390 namespace ros
00391 {
00392 namespace serialization
00393 {
00394
00395 template<class ContainerAllocator> struct Serializer< ::graspit_interface_msgs::LoadDatabaseModelResponse_<ContainerAllocator> >
00396 {
00397 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00398 {
00399 stream.next(m.result);
00400 }
00401
00402 ROS_DECLARE_ALLINONE_SERIALIZER;
00403 };
00404 }
00405 }
00406
00407 namespace ros
00408 {
00409 namespace service_traits
00410 {
00411 template<>
00412 struct MD5Sum<graspit_interface_msgs::LoadDatabaseModel> {
00413 static const char* value()
00414 {
00415 return "8e7f810fdd6e19434987115ec75645ca";
00416 }
00417
00418 static const char* value(const graspit_interface_msgs::LoadDatabaseModel&) { return value(); }
00419 };
00420
00421 template<>
00422 struct DataType<graspit_interface_msgs::LoadDatabaseModel> {
00423 static const char* value()
00424 {
00425 return "graspit_interface_msgs/LoadDatabaseModel";
00426 }
00427
00428 static const char* value(const graspit_interface_msgs::LoadDatabaseModel&) { return value(); }
00429 };
00430
00431 template<class ContainerAllocator>
00432 struct MD5Sum<graspit_interface_msgs::LoadDatabaseModelRequest_<ContainerAllocator> > {
00433 static const char* value()
00434 {
00435 return "8e7f810fdd6e19434987115ec75645ca";
00436 }
00437
00438 static const char* value(const graspit_interface_msgs::LoadDatabaseModelRequest_<ContainerAllocator> &) { return value(); }
00439 };
00440
00441 template<class ContainerAllocator>
00442 struct DataType<graspit_interface_msgs::LoadDatabaseModelRequest_<ContainerAllocator> > {
00443 static const char* value()
00444 {
00445 return "graspit_interface_msgs/LoadDatabaseModel";
00446 }
00447
00448 static const char* value(const graspit_interface_msgs::LoadDatabaseModelRequest_<ContainerAllocator> &) { return value(); }
00449 };
00450
00451 template<class ContainerAllocator>
00452 struct MD5Sum<graspit_interface_msgs::LoadDatabaseModelResponse_<ContainerAllocator> > {
00453 static const char* value()
00454 {
00455 return "8e7f810fdd6e19434987115ec75645ca";
00456 }
00457
00458 static const char* value(const graspit_interface_msgs::LoadDatabaseModelResponse_<ContainerAllocator> &) { return value(); }
00459 };
00460
00461 template<class ContainerAllocator>
00462 struct DataType<graspit_interface_msgs::LoadDatabaseModelResponse_<ContainerAllocator> > {
00463 static const char* value()
00464 {
00465 return "graspit_interface_msgs/LoadDatabaseModel";
00466 }
00467
00468 static const char* value(const graspit_interface_msgs::LoadDatabaseModelResponse_<ContainerAllocator> &) { return value(); }
00469 };
00470
00471 }
00472 }
00473
00474 #endif // GRASPIT_INTERFACE_MSGS_SERVICE_LOADDATABASEMODEL_H
00475