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