00001
00002 #ifndef HOUSEHOLD_OBJECTS_DATABASE_MSGS_MESSAGE_DATABASESCAN_H
00003 #define HOUSEHOLD_OBJECTS_DATABASE_MSGS_MESSAGE_DATABASESCAN_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 "geometry_msgs/PoseStamped.h"
00018
00019 namespace household_objects_database_msgs
00020 {
00021 template <class ContainerAllocator>
00022 struct DatabaseScan_ {
00023 typedef DatabaseScan_<ContainerAllocator> Type;
00024
00025 DatabaseScan_()
00026 : model_id(0)
00027 , bagfile_location()
00028 , scan_source()
00029 , pose()
00030 , cloud_topic()
00031 {
00032 }
00033
00034 DatabaseScan_(const ContainerAllocator& _alloc)
00035 : model_id(0)
00036 , bagfile_location(_alloc)
00037 , scan_source(_alloc)
00038 , pose(_alloc)
00039 , cloud_topic(_alloc)
00040 {
00041 }
00042
00043 typedef int32_t _model_id_type;
00044 int32_t model_id;
00045
00046 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _bagfile_location_type;
00047 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > bagfile_location;
00048
00049 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _scan_source_type;
00050 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > scan_source;
00051
00052 typedef ::geometry_msgs::PoseStamped_<ContainerAllocator> _pose_type;
00053 ::geometry_msgs::PoseStamped_<ContainerAllocator> pose;
00054
00055 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _cloud_topic_type;
00056 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > cloud_topic;
00057
00058
00059 private:
00060 static const char* __s_getDataType_() { return "household_objects_database_msgs/DatabaseScan"; }
00061 public:
00062 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00063
00064 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00065
00066 private:
00067 static const char* __s_getMD5Sum_() { return "7edb7abec4973143a801c25c336b4bb1"; }
00068 public:
00069 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00070
00071 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00072
00073 private:
00074 static const char* __s_getMessageDefinition_() { return "# Contains the location of a stored point cloud scan of an object, \n\
00075 # as well as additional metadata about that scan \n\
00076 \n\
00077 # the database id of the model\n\
00078 int32 model_id\n\
00079 \n\
00080 # the location of the bag file storing the scan\n\
00081 string bagfile_location\n\
00082 \n\
00083 # the source of the scan (e.g. simulation)\n\
00084 string scan_source\n\
00085 \n\
00086 # the ground truth pose of the object that was scanned\n\
00087 geometry_msgs/PoseStamped pose\n\
00088 \n\
00089 # the topic that the points in the bag are published on\n\
00090 string cloud_topic\n\
00091 ================================================================================\n\
00092 MSG: geometry_msgs/PoseStamped\n\
00093 # A Pose with reference coordinate frame and timestamp\n\
00094 Header header\n\
00095 Pose pose\n\
00096 \n\
00097 ================================================================================\n\
00098 MSG: std_msgs/Header\n\
00099 # Standard metadata for higher-level stamped data types.\n\
00100 # This is generally used to communicate timestamped data \n\
00101 # in a particular coordinate frame.\n\
00102 # \n\
00103 # sequence ID: consecutively increasing ID \n\
00104 uint32 seq\n\
00105 #Two-integer timestamp that is expressed as:\n\
00106 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00107 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00108 # time-handling sugar is provided by the client library\n\
00109 time stamp\n\
00110 #Frame this data is associated with\n\
00111 # 0: no frame\n\
00112 # 1: global frame\n\
00113 string frame_id\n\
00114 \n\
00115 ================================================================================\n\
00116 MSG: geometry_msgs/Pose\n\
00117 # A representation of pose in free space, composed of postion and orientation. \n\
00118 Point position\n\
00119 Quaternion orientation\n\
00120 \n\
00121 ================================================================================\n\
00122 MSG: geometry_msgs/Point\n\
00123 # This contains the position of a point in free space\n\
00124 float64 x\n\
00125 float64 y\n\
00126 float64 z\n\
00127 \n\
00128 ================================================================================\n\
00129 MSG: geometry_msgs/Quaternion\n\
00130 # This represents an orientation in free space in quaternion form.\n\
00131 \n\
00132 float64 x\n\
00133 float64 y\n\
00134 float64 z\n\
00135 float64 w\n\
00136 \n\
00137 "; }
00138 public:
00139 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00140
00141 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00142
00143 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00144 {
00145 ros::serialization::OStream stream(write_ptr, 1000000000);
00146 ros::serialization::serialize(stream, model_id);
00147 ros::serialization::serialize(stream, bagfile_location);
00148 ros::serialization::serialize(stream, scan_source);
00149 ros::serialization::serialize(stream, pose);
00150 ros::serialization::serialize(stream, cloud_topic);
00151 return stream.getData();
00152 }
00153
00154 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00155 {
00156 ros::serialization::IStream stream(read_ptr, 1000000000);
00157 ros::serialization::deserialize(stream, model_id);
00158 ros::serialization::deserialize(stream, bagfile_location);
00159 ros::serialization::deserialize(stream, scan_source);
00160 ros::serialization::deserialize(stream, pose);
00161 ros::serialization::deserialize(stream, cloud_topic);
00162 return stream.getData();
00163 }
00164
00165 ROS_DEPRECATED virtual uint32_t serializationLength() const
00166 {
00167 uint32_t size = 0;
00168 size += ros::serialization::serializationLength(model_id);
00169 size += ros::serialization::serializationLength(bagfile_location);
00170 size += ros::serialization::serializationLength(scan_source);
00171 size += ros::serialization::serializationLength(pose);
00172 size += ros::serialization::serializationLength(cloud_topic);
00173 return size;
00174 }
00175
00176 typedef boost::shared_ptr< ::household_objects_database_msgs::DatabaseScan_<ContainerAllocator> > Ptr;
00177 typedef boost::shared_ptr< ::household_objects_database_msgs::DatabaseScan_<ContainerAllocator> const> ConstPtr;
00178 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00179 };
00180 typedef ::household_objects_database_msgs::DatabaseScan_<std::allocator<void> > DatabaseScan;
00181
00182 typedef boost::shared_ptr< ::household_objects_database_msgs::DatabaseScan> DatabaseScanPtr;
00183 typedef boost::shared_ptr< ::household_objects_database_msgs::DatabaseScan const> DatabaseScanConstPtr;
00184
00185
00186 template<typename ContainerAllocator>
00187 std::ostream& operator<<(std::ostream& s, const ::household_objects_database_msgs::DatabaseScan_<ContainerAllocator> & v)
00188 {
00189 ros::message_operations::Printer< ::household_objects_database_msgs::DatabaseScan_<ContainerAllocator> >::stream(s, "", v);
00190 return s;}
00191
00192 }
00193
00194 namespace ros
00195 {
00196 namespace message_traits
00197 {
00198 template<class ContainerAllocator> struct IsMessage< ::household_objects_database_msgs::DatabaseScan_<ContainerAllocator> > : public TrueType {};
00199 template<class ContainerAllocator> struct IsMessage< ::household_objects_database_msgs::DatabaseScan_<ContainerAllocator> const> : public TrueType {};
00200 template<class ContainerAllocator>
00201 struct MD5Sum< ::household_objects_database_msgs::DatabaseScan_<ContainerAllocator> > {
00202 static const char* value()
00203 {
00204 return "7edb7abec4973143a801c25c336b4bb1";
00205 }
00206
00207 static const char* value(const ::household_objects_database_msgs::DatabaseScan_<ContainerAllocator> &) { return value(); }
00208 static const uint64_t static_value1 = 0x7edb7abec4973143ULL;
00209 static const uint64_t static_value2 = 0xa801c25c336b4bb1ULL;
00210 };
00211
00212 template<class ContainerAllocator>
00213 struct DataType< ::household_objects_database_msgs::DatabaseScan_<ContainerAllocator> > {
00214 static const char* value()
00215 {
00216 return "household_objects_database_msgs/DatabaseScan";
00217 }
00218
00219 static const char* value(const ::household_objects_database_msgs::DatabaseScan_<ContainerAllocator> &) { return value(); }
00220 };
00221
00222 template<class ContainerAllocator>
00223 struct Definition< ::household_objects_database_msgs::DatabaseScan_<ContainerAllocator> > {
00224 static const char* value()
00225 {
00226 return "# Contains the location of a stored point cloud scan of an object, \n\
00227 # as well as additional metadata about that scan \n\
00228 \n\
00229 # the database id of the model\n\
00230 int32 model_id\n\
00231 \n\
00232 # the location of the bag file storing the scan\n\
00233 string bagfile_location\n\
00234 \n\
00235 # the source of the scan (e.g. simulation)\n\
00236 string scan_source\n\
00237 \n\
00238 # the ground truth pose of the object that was scanned\n\
00239 geometry_msgs/PoseStamped pose\n\
00240 \n\
00241 # the topic that the points in the bag are published on\n\
00242 string cloud_topic\n\
00243 ================================================================================\n\
00244 MSG: geometry_msgs/PoseStamped\n\
00245 # A Pose with reference coordinate frame and timestamp\n\
00246 Header header\n\
00247 Pose pose\n\
00248 \n\
00249 ================================================================================\n\
00250 MSG: std_msgs/Header\n\
00251 # Standard metadata for higher-level stamped data types.\n\
00252 # This is generally used to communicate timestamped data \n\
00253 # in a particular coordinate frame.\n\
00254 # \n\
00255 # sequence ID: consecutively increasing ID \n\
00256 uint32 seq\n\
00257 #Two-integer timestamp that is expressed as:\n\
00258 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00259 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00260 # time-handling sugar is provided by the client library\n\
00261 time stamp\n\
00262 #Frame this data is associated with\n\
00263 # 0: no frame\n\
00264 # 1: global frame\n\
00265 string frame_id\n\
00266 \n\
00267 ================================================================================\n\
00268 MSG: geometry_msgs/Pose\n\
00269 # A representation of pose in free space, composed of postion and orientation. \n\
00270 Point position\n\
00271 Quaternion orientation\n\
00272 \n\
00273 ================================================================================\n\
00274 MSG: geometry_msgs/Point\n\
00275 # This contains the position of a point in free space\n\
00276 float64 x\n\
00277 float64 y\n\
00278 float64 z\n\
00279 \n\
00280 ================================================================================\n\
00281 MSG: geometry_msgs/Quaternion\n\
00282 # This represents an orientation in free space in quaternion form.\n\
00283 \n\
00284 float64 x\n\
00285 float64 y\n\
00286 float64 z\n\
00287 float64 w\n\
00288 \n\
00289 ";
00290 }
00291
00292 static const char* value(const ::household_objects_database_msgs::DatabaseScan_<ContainerAllocator> &) { return value(); }
00293 };
00294
00295 }
00296 }
00297
00298 namespace ros
00299 {
00300 namespace serialization
00301 {
00302
00303 template<class ContainerAllocator> struct Serializer< ::household_objects_database_msgs::DatabaseScan_<ContainerAllocator> >
00304 {
00305 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00306 {
00307 stream.next(m.model_id);
00308 stream.next(m.bagfile_location);
00309 stream.next(m.scan_source);
00310 stream.next(m.pose);
00311 stream.next(m.cloud_topic);
00312 }
00313
00314 ROS_DECLARE_ALLINONE_SERIALIZER;
00315 };
00316 }
00317 }
00318
00319 namespace ros
00320 {
00321 namespace message_operations
00322 {
00323
00324 template<class ContainerAllocator>
00325 struct Printer< ::household_objects_database_msgs::DatabaseScan_<ContainerAllocator> >
00326 {
00327 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::household_objects_database_msgs::DatabaseScan_<ContainerAllocator> & v)
00328 {
00329 s << indent << "model_id: ";
00330 Printer<int32_t>::stream(s, indent + " ", v.model_id);
00331 s << indent << "bagfile_location: ";
00332 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.bagfile_location);
00333 s << indent << "scan_source: ";
00334 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.scan_source);
00335 s << indent << "pose: ";
00336 s << std::endl;
00337 Printer< ::geometry_msgs::PoseStamped_<ContainerAllocator> >::stream(s, indent + " ", v.pose);
00338 s << indent << "cloud_topic: ";
00339 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.cloud_topic);
00340 }
00341 };
00342
00343
00344 }
00345 }
00346
00347 #endif // HOUSEHOLD_OBJECTS_DATABASE_MSGS_MESSAGE_DATABASESCAN_H
00348