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