00001
00002 #ifndef HOUSEHOLD_OBJECTS_DATABASE_MSGS_SERVICE_GETMODELSCANS_H
00003 #define HOUSEHOLD_OBJECTS_DATABASE_MSGS_SERVICE_GETMODELSCANS_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 "household_objects_database_msgs/DatabaseScan.h"
00019
00020 namespace household_objects_database_msgs
00021 {
00022 template <class ContainerAllocator>
00023 struct GetModelScansRequest_ : public ros::Message
00024 {
00025 typedef GetModelScansRequest_<ContainerAllocator> Type;
00026
00027 GetModelScansRequest_()
00028 : model_id(0)
00029 , scan_source()
00030 {
00031 }
00032
00033 GetModelScansRequest_(const ContainerAllocator& _alloc)
00034 : model_id(0)
00035 , scan_source(_alloc)
00036 {
00037 }
00038
00039 typedef int32_t _model_id_type;
00040 int32_t model_id;
00041
00042 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _scan_source_type;
00043 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > scan_source;
00044
00045
00046 private:
00047 static const char* __s_getDataType_() { return "household_objects_database_msgs/GetModelScansRequest"; }
00048 public:
00049 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00050
00051 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00052
00053 private:
00054 static const char* __s_getMD5Sum_() { return "4f31b0f27ba251f6d1f17eafced83cb7"; }
00055 public:
00056 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00057
00058 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00059
00060 private:
00061 static const char* __s_getServerMD5Sum_() { return "8e98ddfab8ff8e5fb3a60b1cd7645437"; }
00062 public:
00063 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); }
00064
00065 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); }
00066
00067 private:
00068 static const char* __s_getMessageDefinition_() { return "\n\
00069 \n\
00070 \n\
00071 int32 model_id\n\
00072 \n\
00073 \n\
00074 string scan_source\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_id);
00087 ros::serialization::serialize(stream, scan_source);
00088 return stream.getData();
00089 }
00090
00091 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00092 {
00093 ros::serialization::IStream stream(read_ptr, 1000000000);
00094 ros::serialization::deserialize(stream, model_id);
00095 ros::serialization::deserialize(stream, scan_source);
00096 return stream.getData();
00097 }
00098
00099 ROS_DEPRECATED virtual uint32_t serializationLength() const
00100 {
00101 uint32_t size = 0;
00102 size += ros::serialization::serializationLength(model_id);
00103 size += ros::serialization::serializationLength(scan_source);
00104 return size;
00105 }
00106
00107 typedef boost::shared_ptr< ::household_objects_database_msgs::GetModelScansRequest_<ContainerAllocator> > Ptr;
00108 typedef boost::shared_ptr< ::household_objects_database_msgs::GetModelScansRequest_<ContainerAllocator> const> ConstPtr;
00109 };
00110 typedef ::household_objects_database_msgs::GetModelScansRequest_<std::allocator<void> > GetModelScansRequest;
00111
00112 typedef boost::shared_ptr< ::household_objects_database_msgs::GetModelScansRequest> GetModelScansRequestPtr;
00113 typedef boost::shared_ptr< ::household_objects_database_msgs::GetModelScansRequest const> GetModelScansRequestConstPtr;
00114
00115
00116 template <class ContainerAllocator>
00117 struct GetModelScansResponse_ : public ros::Message
00118 {
00119 typedef GetModelScansResponse_<ContainerAllocator> Type;
00120
00121 GetModelScansResponse_()
00122 : return_code()
00123 , matching_scans()
00124 {
00125 }
00126
00127 GetModelScansResponse_(const ContainerAllocator& _alloc)
00128 : return_code(_alloc)
00129 , matching_scans(_alloc)
00130 {
00131 }
00132
00133 typedef ::household_objects_database_msgs::DatabaseReturnCode_<ContainerAllocator> _return_code_type;
00134 ::household_objects_database_msgs::DatabaseReturnCode_<ContainerAllocator> return_code;
00135
00136 typedef std::vector< ::household_objects_database_msgs::DatabaseScan_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::household_objects_database_msgs::DatabaseScan_<ContainerAllocator> >::other > _matching_scans_type;
00137 std::vector< ::household_objects_database_msgs::DatabaseScan_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::household_objects_database_msgs::DatabaseScan_<ContainerAllocator> >::other > matching_scans;
00138
00139
00140 ROS_DEPRECATED uint32_t get_matching_scans_size() const { return (uint32_t)matching_scans.size(); }
00141 ROS_DEPRECATED void set_matching_scans_size(uint32_t size) { matching_scans.resize((size_t)size); }
00142 ROS_DEPRECATED void get_matching_scans_vec(std::vector< ::household_objects_database_msgs::DatabaseScan_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::household_objects_database_msgs::DatabaseScan_<ContainerAllocator> >::other > & vec) const { vec = this->matching_scans; }
00143 ROS_DEPRECATED void set_matching_scans_vec(const std::vector< ::household_objects_database_msgs::DatabaseScan_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::household_objects_database_msgs::DatabaseScan_<ContainerAllocator> >::other > & vec) { this->matching_scans = vec; }
00144 private:
00145 static const char* __s_getDataType_() { return "household_objects_database_msgs/GetModelScansResponse"; }
00146 public:
00147 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00148
00149 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00150
00151 private:
00152 static const char* __s_getMD5Sum_() { return "8d1bb6e95c26a5d891987d9d9195e958"; }
00153 public:
00154 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00155
00156 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00157
00158 private:
00159 static const char* __s_getServerMD5Sum_() { return "8e98ddfab8ff8e5fb3a60b1cd7645437"; }
00160 public:
00161 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); }
00162
00163 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); }
00164
00165 private:
00166 static const char* __s_getMessageDefinition_() { return "\n\
00167 \n\
00168 DatabaseReturnCode return_code\n\
00169 \n\
00170 \n\
00171 DatabaseScan[] matching_scans\n\
00172 \n\
00173 ================================================================================\n\
00174 MSG: household_objects_database_msgs/DatabaseReturnCode\n\
00175 # return codes for database-related services\n\
00176 \n\
00177 int32 UNKNOWN_ERROR = 1\n\
00178 int32 DATABASE_NOT_CONNECTED = 2\n\
00179 int32 DATABASE_QUERY_ERROR = 3\n\
00180 int32 SUCCESS = -1\n\
00181 \n\
00182 int32 code\n\
00183 ================================================================================\n\
00184 MSG: household_objects_database_msgs/DatabaseScan\n\
00185 # Contains the location of a stored point cloud scan of an object, \n\
00186 # as well as additional metadata about that scan \n\
00187 \n\
00188 # the database id of the model\n\
00189 int32 model_id\n\
00190 \n\
00191 # the location of the bag file storing the scan\n\
00192 string bagfile_location\n\
00193 \n\
00194 # the source of the scan (e.g. simulation)\n\
00195 string scan_source\n\
00196 \n\
00197 # the ground truth pose of the object that was scanned\n\
00198 geometry_msgs/PoseStamped pose\n\
00199 \n\
00200 # the topic that the points in the bag are published on\n\
00201 string cloud_topic\n\
00202 ================================================================================\n\
00203 MSG: geometry_msgs/PoseStamped\n\
00204 # A Pose with reference coordinate frame and timestamp\n\
00205 Header header\n\
00206 Pose pose\n\
00207 \n\
00208 ================================================================================\n\
00209 MSG: std_msgs/Header\n\
00210 # Standard metadata for higher-level stamped data types.\n\
00211 # This is generally used to communicate timestamped data \n\
00212 # in a particular coordinate frame.\n\
00213 # \n\
00214 # sequence ID: consecutively increasing ID \n\
00215 uint32 seq\n\
00216 #Two-integer timestamp that is expressed as:\n\
00217 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00218 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00219 # time-handling sugar is provided by the client library\n\
00220 time stamp\n\
00221 #Frame this data is associated with\n\
00222 # 0: no frame\n\
00223 # 1: global frame\n\
00224 string frame_id\n\
00225 \n\
00226 ================================================================================\n\
00227 MSG: geometry_msgs/Pose\n\
00228 # A representation of pose in free space, composed of postion and orientation. \n\
00229 Point position\n\
00230 Quaternion orientation\n\
00231 \n\
00232 ================================================================================\n\
00233 MSG: geometry_msgs/Point\n\
00234 # This contains the position of a point in free space\n\
00235 float64 x\n\
00236 float64 y\n\
00237 float64 z\n\
00238 \n\
00239 ================================================================================\n\
00240 MSG: geometry_msgs/Quaternion\n\
00241 # This represents an orientation in free space in quaternion form.\n\
00242 \n\
00243 float64 x\n\
00244 float64 y\n\
00245 float64 z\n\
00246 float64 w\n\
00247 \n\
00248 "; }
00249 public:
00250 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00251
00252 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00253
00254 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00255 {
00256 ros::serialization::OStream stream(write_ptr, 1000000000);
00257 ros::serialization::serialize(stream, return_code);
00258 ros::serialization::serialize(stream, matching_scans);
00259 return stream.getData();
00260 }
00261
00262 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00263 {
00264 ros::serialization::IStream stream(read_ptr, 1000000000);
00265 ros::serialization::deserialize(stream, return_code);
00266 ros::serialization::deserialize(stream, matching_scans);
00267 return stream.getData();
00268 }
00269
00270 ROS_DEPRECATED virtual uint32_t serializationLength() const
00271 {
00272 uint32_t size = 0;
00273 size += ros::serialization::serializationLength(return_code);
00274 size += ros::serialization::serializationLength(matching_scans);
00275 return size;
00276 }
00277
00278 typedef boost::shared_ptr< ::household_objects_database_msgs::GetModelScansResponse_<ContainerAllocator> > Ptr;
00279 typedef boost::shared_ptr< ::household_objects_database_msgs::GetModelScansResponse_<ContainerAllocator> const> ConstPtr;
00280 };
00281 typedef ::household_objects_database_msgs::GetModelScansResponse_<std::allocator<void> > GetModelScansResponse;
00282
00283 typedef boost::shared_ptr< ::household_objects_database_msgs::GetModelScansResponse> GetModelScansResponsePtr;
00284 typedef boost::shared_ptr< ::household_objects_database_msgs::GetModelScansResponse const> GetModelScansResponseConstPtr;
00285
00286 struct GetModelScans
00287 {
00288
00289 typedef GetModelScansRequest Request;
00290 typedef GetModelScansResponse Response;
00291 Request request;
00292 Response response;
00293
00294 typedef Request RequestType;
00295 typedef Response ResponseType;
00296 };
00297 }
00298
00299 namespace ros
00300 {
00301 namespace message_traits
00302 {
00303 template<class ContainerAllocator>
00304 struct MD5Sum< ::household_objects_database_msgs::GetModelScansRequest_<ContainerAllocator> > {
00305 static const char* value()
00306 {
00307 return "4f31b0f27ba251f6d1f17eafced83cb7";
00308 }
00309
00310 static const char* value(const ::household_objects_database_msgs::GetModelScansRequest_<ContainerAllocator> &) { return value(); }
00311 static const uint64_t static_value1 = 0x4f31b0f27ba251f6ULL;
00312 static const uint64_t static_value2 = 0xd1f17eafced83cb7ULL;
00313 };
00314
00315 template<class ContainerAllocator>
00316 struct DataType< ::household_objects_database_msgs::GetModelScansRequest_<ContainerAllocator> > {
00317 static const char* value()
00318 {
00319 return "household_objects_database_msgs/GetModelScansRequest";
00320 }
00321
00322 static const char* value(const ::household_objects_database_msgs::GetModelScansRequest_<ContainerAllocator> &) { return value(); }
00323 };
00324
00325 template<class ContainerAllocator>
00326 struct Definition< ::household_objects_database_msgs::GetModelScansRequest_<ContainerAllocator> > {
00327 static const char* value()
00328 {
00329 return "\n\
00330 \n\
00331 \n\
00332 int32 model_id\n\
00333 \n\
00334 \n\
00335 string scan_source\n\
00336 \n\
00337 \n\
00338 ";
00339 }
00340
00341 static const char* value(const ::household_objects_database_msgs::GetModelScansRequest_<ContainerAllocator> &) { return value(); }
00342 };
00343
00344 }
00345 }
00346
00347
00348 namespace ros
00349 {
00350 namespace message_traits
00351 {
00352 template<class ContainerAllocator>
00353 struct MD5Sum< ::household_objects_database_msgs::GetModelScansResponse_<ContainerAllocator> > {
00354 static const char* value()
00355 {
00356 return "8d1bb6e95c26a5d891987d9d9195e958";
00357 }
00358
00359 static const char* value(const ::household_objects_database_msgs::GetModelScansResponse_<ContainerAllocator> &) { return value(); }
00360 static const uint64_t static_value1 = 0x8d1bb6e95c26a5d8ULL;
00361 static const uint64_t static_value2 = 0x91987d9d9195e958ULL;
00362 };
00363
00364 template<class ContainerAllocator>
00365 struct DataType< ::household_objects_database_msgs::GetModelScansResponse_<ContainerAllocator> > {
00366 static const char* value()
00367 {
00368 return "household_objects_database_msgs/GetModelScansResponse";
00369 }
00370
00371 static const char* value(const ::household_objects_database_msgs::GetModelScansResponse_<ContainerAllocator> &) { return value(); }
00372 };
00373
00374 template<class ContainerAllocator>
00375 struct Definition< ::household_objects_database_msgs::GetModelScansResponse_<ContainerAllocator> > {
00376 static const char* value()
00377 {
00378 return "\n\
00379 \n\
00380 DatabaseReturnCode return_code\n\
00381 \n\
00382 \n\
00383 DatabaseScan[] matching_scans\n\
00384 \n\
00385 ================================================================================\n\
00386 MSG: household_objects_database_msgs/DatabaseReturnCode\n\
00387 # return codes for database-related services\n\
00388 \n\
00389 int32 UNKNOWN_ERROR = 1\n\
00390 int32 DATABASE_NOT_CONNECTED = 2\n\
00391 int32 DATABASE_QUERY_ERROR = 3\n\
00392 int32 SUCCESS = -1\n\
00393 \n\
00394 int32 code\n\
00395 ================================================================================\n\
00396 MSG: household_objects_database_msgs/DatabaseScan\n\
00397 # Contains the location of a stored point cloud scan of an object, \n\
00398 # as well as additional metadata about that scan \n\
00399 \n\
00400 # the database id of the model\n\
00401 int32 model_id\n\
00402 \n\
00403 # the location of the bag file storing the scan\n\
00404 string bagfile_location\n\
00405 \n\
00406 # the source of the scan (e.g. simulation)\n\
00407 string scan_source\n\
00408 \n\
00409 # the ground truth pose of the object that was scanned\n\
00410 geometry_msgs/PoseStamped pose\n\
00411 \n\
00412 # the topic that the points in the bag are published on\n\
00413 string cloud_topic\n\
00414 ================================================================================\n\
00415 MSG: geometry_msgs/PoseStamped\n\
00416 # A Pose with reference coordinate frame and timestamp\n\
00417 Header header\n\
00418 Pose pose\n\
00419 \n\
00420 ================================================================================\n\
00421 MSG: std_msgs/Header\n\
00422 # Standard metadata for higher-level stamped data types.\n\
00423 # This is generally used to communicate timestamped data \n\
00424 # in a particular coordinate frame.\n\
00425 # \n\
00426 # sequence ID: consecutively increasing ID \n\
00427 uint32 seq\n\
00428 #Two-integer timestamp that is expressed as:\n\
00429 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00430 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00431 # time-handling sugar is provided by the client library\n\
00432 time stamp\n\
00433 #Frame this data is associated with\n\
00434 # 0: no frame\n\
00435 # 1: global frame\n\
00436 string frame_id\n\
00437 \n\
00438 ================================================================================\n\
00439 MSG: geometry_msgs/Pose\n\
00440 # A representation of pose in free space, composed of postion and orientation. \n\
00441 Point position\n\
00442 Quaternion orientation\n\
00443 \n\
00444 ================================================================================\n\
00445 MSG: geometry_msgs/Point\n\
00446 # This contains the position of a point in free space\n\
00447 float64 x\n\
00448 float64 y\n\
00449 float64 z\n\
00450 \n\
00451 ================================================================================\n\
00452 MSG: geometry_msgs/Quaternion\n\
00453 # This represents an orientation in free space in quaternion form.\n\
00454 \n\
00455 float64 x\n\
00456 float64 y\n\
00457 float64 z\n\
00458 float64 w\n\
00459 \n\
00460 ";
00461 }
00462
00463 static const char* value(const ::household_objects_database_msgs::GetModelScansResponse_<ContainerAllocator> &) { return value(); }
00464 };
00465
00466 }
00467 }
00468
00469 namespace ros
00470 {
00471 namespace serialization
00472 {
00473
00474 template<class ContainerAllocator> struct Serializer< ::household_objects_database_msgs::GetModelScansRequest_<ContainerAllocator> >
00475 {
00476 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00477 {
00478 stream.next(m.model_id);
00479 stream.next(m.scan_source);
00480 }
00481
00482 ROS_DECLARE_ALLINONE_SERIALIZER;
00483 };
00484 }
00485 }
00486
00487
00488 namespace ros
00489 {
00490 namespace serialization
00491 {
00492
00493 template<class ContainerAllocator> struct Serializer< ::household_objects_database_msgs::GetModelScansResponse_<ContainerAllocator> >
00494 {
00495 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00496 {
00497 stream.next(m.return_code);
00498 stream.next(m.matching_scans);
00499 }
00500
00501 ROS_DECLARE_ALLINONE_SERIALIZER;
00502 };
00503 }
00504 }
00505
00506 namespace ros
00507 {
00508 namespace service_traits
00509 {
00510 template<>
00511 struct MD5Sum<household_objects_database_msgs::GetModelScans> {
00512 static const char* value()
00513 {
00514 return "8e98ddfab8ff8e5fb3a60b1cd7645437";
00515 }
00516
00517 static const char* value(const household_objects_database_msgs::GetModelScans&) { return value(); }
00518 };
00519
00520 template<>
00521 struct DataType<household_objects_database_msgs::GetModelScans> {
00522 static const char* value()
00523 {
00524 return "household_objects_database_msgs/GetModelScans";
00525 }
00526
00527 static const char* value(const household_objects_database_msgs::GetModelScans&) { return value(); }
00528 };
00529
00530 template<class ContainerAllocator>
00531 struct MD5Sum<household_objects_database_msgs::GetModelScansRequest_<ContainerAllocator> > {
00532 static const char* value()
00533 {
00534 return "8e98ddfab8ff8e5fb3a60b1cd7645437";
00535 }
00536
00537 static const char* value(const household_objects_database_msgs::GetModelScansRequest_<ContainerAllocator> &) { return value(); }
00538 };
00539
00540 template<class ContainerAllocator>
00541 struct DataType<household_objects_database_msgs::GetModelScansRequest_<ContainerAllocator> > {
00542 static const char* value()
00543 {
00544 return "household_objects_database_msgs/GetModelScans";
00545 }
00546
00547 static const char* value(const household_objects_database_msgs::GetModelScansRequest_<ContainerAllocator> &) { return value(); }
00548 };
00549
00550 template<class ContainerAllocator>
00551 struct MD5Sum<household_objects_database_msgs::GetModelScansResponse_<ContainerAllocator> > {
00552 static const char* value()
00553 {
00554 return "8e98ddfab8ff8e5fb3a60b1cd7645437";
00555 }
00556
00557 static const char* value(const household_objects_database_msgs::GetModelScansResponse_<ContainerAllocator> &) { return value(); }
00558 };
00559
00560 template<class ContainerAllocator>
00561 struct DataType<household_objects_database_msgs::GetModelScansResponse_<ContainerAllocator> > {
00562 static const char* value()
00563 {
00564 return "household_objects_database_msgs/GetModelScans";
00565 }
00566
00567 static const char* value(const household_objects_database_msgs::GetModelScansResponse_<ContainerAllocator> &) { return value(); }
00568 };
00569
00570 }
00571 }
00572
00573 #endif // HOUSEHOLD_OBJECTS_DATABASE_MSGS_SERVICE_GETMODELSCANS_H
00574