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