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