00001
00002 #ifndef HOUSEHOLD_OBJECTS_DATABASE_MSGS_MESSAGE_DATABASEMODELPOSE_H
00003 #define HOUSEHOLD_OBJECTS_DATABASE_MSGS_MESSAGE_DATABASEMODELPOSE_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 DatabaseModelPose_ : public ros::Message
00019 {
00020 typedef DatabaseModelPose_<ContainerAllocator> Type;
00021
00022 DatabaseModelPose_()
00023 : model_id(0)
00024 , pose()
00025 , confidence(0.0)
00026 {
00027 }
00028
00029 DatabaseModelPose_(const ContainerAllocator& _alloc)
00030 : model_id(0)
00031 , pose(_alloc)
00032 , confidence(0.0)
00033 {
00034 }
00035
00036 typedef int32_t _model_id_type;
00037 int32_t model_id;
00038
00039 typedef ::geometry_msgs::PoseStamped_<ContainerAllocator> _pose_type;
00040 ::geometry_msgs::PoseStamped_<ContainerAllocator> pose;
00041
00042 typedef float _confidence_type;
00043 float confidence;
00044
00045
00046 private:
00047 static const char* __s_getDataType_() { return "household_objects_database_msgs/DatabaseModelPose"; }
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 "beaba6f402b294fa68e817f5f3930224"; }
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_getMessageDefinition_() { return "# Informs that a specific model from the Model Database has been \n\
00062 # identified at a certain location\n\
00063 \n\
00064 # the database id of the model\n\
00065 int32 model_id\n\
00066 \n\
00067 # the pose that it can be found in\n\
00068 geometry_msgs/PoseStamped pose\n\
00069 \n\
00070 # a measure of the confidence level in this detection result\n\
00071 float32 confidence\n\
00072 ================================================================================\n\
00073 MSG: geometry_msgs/PoseStamped\n\
00074 # A Pose with reference coordinate frame and timestamp\n\
00075 Header header\n\
00076 Pose pose\n\
00077 \n\
00078 ================================================================================\n\
00079 MSG: std_msgs/Header\n\
00080 # Standard metadata for higher-level stamped data types.\n\
00081 # This is generally used to communicate timestamped data \n\
00082 # in a particular coordinate frame.\n\
00083 # \n\
00084 # sequence ID: consecutively increasing ID \n\
00085 uint32 seq\n\
00086 #Two-integer timestamp that is expressed as:\n\
00087 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00088 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00089 # time-handling sugar is provided by the client library\n\
00090 time stamp\n\
00091 #Frame this data is associated with\n\
00092 # 0: no frame\n\
00093 # 1: global frame\n\
00094 string frame_id\n\
00095 \n\
00096 ================================================================================\n\
00097 MSG: geometry_msgs/Pose\n\
00098 # A representation of pose in free space, composed of postion and orientation. \n\
00099 Point position\n\
00100 Quaternion orientation\n\
00101 \n\
00102 ================================================================================\n\
00103 MSG: geometry_msgs/Point\n\
00104 # This contains the position of a point in free space\n\
00105 float64 x\n\
00106 float64 y\n\
00107 float64 z\n\
00108 \n\
00109 ================================================================================\n\
00110 MSG: geometry_msgs/Quaternion\n\
00111 # This represents an orientation in free space in quaternion form.\n\
00112 \n\
00113 float64 x\n\
00114 float64 y\n\
00115 float64 z\n\
00116 float64 w\n\
00117 \n\
00118 "; }
00119 public:
00120 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00121
00122 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00123
00124 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00125 {
00126 ros::serialization::OStream stream(write_ptr, 1000000000);
00127 ros::serialization::serialize(stream, model_id);
00128 ros::serialization::serialize(stream, pose);
00129 ros::serialization::serialize(stream, confidence);
00130 return stream.getData();
00131 }
00132
00133 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00134 {
00135 ros::serialization::IStream stream(read_ptr, 1000000000);
00136 ros::serialization::deserialize(stream, model_id);
00137 ros::serialization::deserialize(stream, pose);
00138 ros::serialization::deserialize(stream, confidence);
00139 return stream.getData();
00140 }
00141
00142 ROS_DEPRECATED virtual uint32_t serializationLength() const
00143 {
00144 uint32_t size = 0;
00145 size += ros::serialization::serializationLength(model_id);
00146 size += ros::serialization::serializationLength(pose);
00147 size += ros::serialization::serializationLength(confidence);
00148 return size;
00149 }
00150
00151 typedef boost::shared_ptr< ::household_objects_database_msgs::DatabaseModelPose_<ContainerAllocator> > Ptr;
00152 typedef boost::shared_ptr< ::household_objects_database_msgs::DatabaseModelPose_<ContainerAllocator> const> ConstPtr;
00153 };
00154 typedef ::household_objects_database_msgs::DatabaseModelPose_<std::allocator<void> > DatabaseModelPose;
00155
00156 typedef boost::shared_ptr< ::household_objects_database_msgs::DatabaseModelPose> DatabaseModelPosePtr;
00157 typedef boost::shared_ptr< ::household_objects_database_msgs::DatabaseModelPose const> DatabaseModelPoseConstPtr;
00158
00159
00160 template<typename ContainerAllocator>
00161 std::ostream& operator<<(std::ostream& s, const ::household_objects_database_msgs::DatabaseModelPose_<ContainerAllocator> & v)
00162 {
00163 ros::message_operations::Printer< ::household_objects_database_msgs::DatabaseModelPose_<ContainerAllocator> >::stream(s, "", v);
00164 return s;}
00165
00166 }
00167
00168 namespace ros
00169 {
00170 namespace message_traits
00171 {
00172 template<class ContainerAllocator>
00173 struct MD5Sum< ::household_objects_database_msgs::DatabaseModelPose_<ContainerAllocator> > {
00174 static const char* value()
00175 {
00176 return "beaba6f402b294fa68e817f5f3930224";
00177 }
00178
00179 static const char* value(const ::household_objects_database_msgs::DatabaseModelPose_<ContainerAllocator> &) { return value(); }
00180 static const uint64_t static_value1 = 0xbeaba6f402b294faULL;
00181 static const uint64_t static_value2 = 0x68e817f5f3930224ULL;
00182 };
00183
00184 template<class ContainerAllocator>
00185 struct DataType< ::household_objects_database_msgs::DatabaseModelPose_<ContainerAllocator> > {
00186 static const char* value()
00187 {
00188 return "household_objects_database_msgs/DatabaseModelPose";
00189 }
00190
00191 static const char* value(const ::household_objects_database_msgs::DatabaseModelPose_<ContainerAllocator> &) { return value(); }
00192 };
00193
00194 template<class ContainerAllocator>
00195 struct Definition< ::household_objects_database_msgs::DatabaseModelPose_<ContainerAllocator> > {
00196 static const char* value()
00197 {
00198 return "# Informs that a specific model from the Model Database has been \n\
00199 # identified at a certain location\n\
00200 \n\
00201 # the database id of the model\n\
00202 int32 model_id\n\
00203 \n\
00204 # the pose that it can be found in\n\
00205 geometry_msgs/PoseStamped pose\n\
00206 \n\
00207 # a measure of the confidence level in this detection result\n\
00208 float32 confidence\n\
00209 ================================================================================\n\
00210 MSG: geometry_msgs/PoseStamped\n\
00211 # A Pose with reference coordinate frame and timestamp\n\
00212 Header header\n\
00213 Pose pose\n\
00214 \n\
00215 ================================================================================\n\
00216 MSG: std_msgs/Header\n\
00217 # Standard metadata for higher-level stamped data types.\n\
00218 # This is generally used to communicate timestamped data \n\
00219 # in a particular coordinate frame.\n\
00220 # \n\
00221 # sequence ID: consecutively increasing ID \n\
00222 uint32 seq\n\
00223 #Two-integer timestamp that is expressed as:\n\
00224 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00225 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00226 # time-handling sugar is provided by the client library\n\
00227 time stamp\n\
00228 #Frame this data is associated with\n\
00229 # 0: no frame\n\
00230 # 1: global frame\n\
00231 string frame_id\n\
00232 \n\
00233 ================================================================================\n\
00234 MSG: geometry_msgs/Pose\n\
00235 # A representation of pose in free space, composed of postion and orientation. \n\
00236 Point position\n\
00237 Quaternion orientation\n\
00238 \n\
00239 ================================================================================\n\
00240 MSG: geometry_msgs/Point\n\
00241 # This contains the position of a point in free space\n\
00242 float64 x\n\
00243 float64 y\n\
00244 float64 z\n\
00245 \n\
00246 ================================================================================\n\
00247 MSG: geometry_msgs/Quaternion\n\
00248 # This represents an orientation in free space in quaternion form.\n\
00249 \n\
00250 float64 x\n\
00251 float64 y\n\
00252 float64 z\n\
00253 float64 w\n\
00254 \n\
00255 ";
00256 }
00257
00258 static const char* value(const ::household_objects_database_msgs::DatabaseModelPose_<ContainerAllocator> &) { return value(); }
00259 };
00260
00261 }
00262 }
00263
00264 namespace ros
00265 {
00266 namespace serialization
00267 {
00268
00269 template<class ContainerAllocator> struct Serializer< ::household_objects_database_msgs::DatabaseModelPose_<ContainerAllocator> >
00270 {
00271 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00272 {
00273 stream.next(m.model_id);
00274 stream.next(m.pose);
00275 stream.next(m.confidence);
00276 }
00277
00278 ROS_DECLARE_ALLINONE_SERIALIZER;
00279 };
00280 }
00281 }
00282
00283 namespace ros
00284 {
00285 namespace message_operations
00286 {
00287
00288 template<class ContainerAllocator>
00289 struct Printer< ::household_objects_database_msgs::DatabaseModelPose_<ContainerAllocator> >
00290 {
00291 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::household_objects_database_msgs::DatabaseModelPose_<ContainerAllocator> & v)
00292 {
00293 s << indent << "model_id: ";
00294 Printer<int32_t>::stream(s, indent + " ", v.model_id);
00295 s << indent << "pose: ";
00296 s << std::endl;
00297 Printer< ::geometry_msgs::PoseStamped_<ContainerAllocator> >::stream(s, indent + " ", v.pose);
00298 s << indent << "confidence: ";
00299 Printer<float>::stream(s, indent + " ", v.confidence);
00300 }
00301 };
00302
00303
00304 }
00305 }
00306
00307 #endif // HOUSEHOLD_OBJECTS_DATABASE_MSGS_MESSAGE_DATABASEMODELPOSE_H
00308