$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-pr2_object_manipulation/doc_stacks/2013-03-05_12-10-38.333207/pr2_object_manipulation/perception/object_recognition_gui/msg/ModelHypothesisList.msg */ 00002 #ifndef OBJECT_RECOGNITION_GUI_MESSAGE_MODELHYPOTHESISLIST_H 00003 #define OBJECT_RECOGNITION_GUI_MESSAGE_MODELHYPOTHESISLIST_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 "object_recognition_gui/ModelHypothesis.h" 00018 00019 namespace object_recognition_gui 00020 { 00021 template <class ContainerAllocator> 00022 struct ModelHypothesisList_ { 00023 typedef ModelHypothesisList_<ContainerAllocator> Type; 00024 00025 ModelHypothesisList_() 00026 : hypotheses() 00027 , accept(false) 00028 { 00029 } 00030 00031 ModelHypothesisList_(const ContainerAllocator& _alloc) 00032 : hypotheses(_alloc) 00033 , accept(false) 00034 { 00035 } 00036 00037 typedef std::vector< ::object_recognition_gui::ModelHypothesis_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::object_recognition_gui::ModelHypothesis_<ContainerAllocator> >::other > _hypotheses_type; 00038 std::vector< ::object_recognition_gui::ModelHypothesis_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::object_recognition_gui::ModelHypothesis_<ContainerAllocator> >::other > hypotheses; 00039 00040 typedef uint8_t _accept_type; 00041 uint8_t accept; 00042 00043 00044 ROS_DEPRECATED uint32_t get_hypotheses_size() const { return (uint32_t)hypotheses.size(); } 00045 ROS_DEPRECATED void set_hypotheses_size(uint32_t size) { hypotheses.resize((size_t)size); } 00046 ROS_DEPRECATED void get_hypotheses_vec(std::vector< ::object_recognition_gui::ModelHypothesis_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::object_recognition_gui::ModelHypothesis_<ContainerAllocator> >::other > & vec) const { vec = this->hypotheses; } 00047 ROS_DEPRECATED void set_hypotheses_vec(const std::vector< ::object_recognition_gui::ModelHypothesis_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::object_recognition_gui::ModelHypothesis_<ContainerAllocator> >::other > & vec) { this->hypotheses = vec; } 00048 private: 00049 static const char* __s_getDataType_() { return "object_recognition_gui/ModelHypothesisList"; } 00050 public: 00051 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00052 00053 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00054 00055 private: 00056 static const char* __s_getMD5Sum_() { return "8d08459b65fa27d555aca1d8d3e6c944"; } 00057 public: 00058 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00059 00060 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00061 00062 private: 00063 static const char* __s_getMessageDefinition_() { return "ModelHypothesis[] hypotheses\n\ 00064 \n\ 00065 #initial guess if this can be a correct recognition result at all\n\ 00066 bool accept\n\ 00067 ================================================================================\n\ 00068 MSG: object_recognition_gui/ModelHypothesis\n\ 00069 #describes a hypothesis about a recognized object (mesh+pose)\n\ 00070 \n\ 00071 arm_navigation_msgs/Shape mesh\n\ 00072 geometry_msgs/PoseStamped pose\n\ 00073 \n\ 00074 ================================================================================\n\ 00075 MSG: arm_navigation_msgs/Shape\n\ 00076 byte SPHERE=0\n\ 00077 byte BOX=1\n\ 00078 byte CYLINDER=2\n\ 00079 byte MESH=3\n\ 00080 \n\ 00081 byte type\n\ 00082 \n\ 00083 \n\ 00084 #### define sphere, box, cylinder ####\n\ 00085 # the origin of each shape is considered at the shape's center\n\ 00086 \n\ 00087 # for sphere\n\ 00088 # radius := dimensions[0]\n\ 00089 \n\ 00090 # for cylinder\n\ 00091 # radius := dimensions[0]\n\ 00092 # length := dimensions[1]\n\ 00093 # the length is along the Z axis\n\ 00094 \n\ 00095 # for box\n\ 00096 # size_x := dimensions[0]\n\ 00097 # size_y := dimensions[1]\n\ 00098 # size_z := dimensions[2]\n\ 00099 float64[] dimensions\n\ 00100 \n\ 00101 \n\ 00102 #### define mesh ####\n\ 00103 \n\ 00104 # list of triangles; triangle k is defined by tre vertices located\n\ 00105 # at indices triangles[3k], triangles[3k+1], triangles[3k+2]\n\ 00106 int32[] triangles\n\ 00107 geometry_msgs/Point[] vertices\n\ 00108 \n\ 00109 ================================================================================\n\ 00110 MSG: geometry_msgs/Point\n\ 00111 # This contains the position of a point in free space\n\ 00112 float64 x\n\ 00113 float64 y\n\ 00114 float64 z\n\ 00115 \n\ 00116 ================================================================================\n\ 00117 MSG: geometry_msgs/PoseStamped\n\ 00118 # A Pose with reference coordinate frame and timestamp\n\ 00119 Header header\n\ 00120 Pose pose\n\ 00121 \n\ 00122 ================================================================================\n\ 00123 MSG: std_msgs/Header\n\ 00124 # Standard metadata for higher-level stamped data types.\n\ 00125 # This is generally used to communicate timestamped data \n\ 00126 # in a particular coordinate frame.\n\ 00127 # \n\ 00128 # sequence ID: consecutively increasing ID \n\ 00129 uint32 seq\n\ 00130 #Two-integer timestamp that is expressed as:\n\ 00131 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00132 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00133 # time-handling sugar is provided by the client library\n\ 00134 time stamp\n\ 00135 #Frame this data is associated with\n\ 00136 # 0: no frame\n\ 00137 # 1: global frame\n\ 00138 string frame_id\n\ 00139 \n\ 00140 ================================================================================\n\ 00141 MSG: geometry_msgs/Pose\n\ 00142 # A representation of pose in free space, composed of postion and orientation. \n\ 00143 Point position\n\ 00144 Quaternion orientation\n\ 00145 \n\ 00146 ================================================================================\n\ 00147 MSG: geometry_msgs/Quaternion\n\ 00148 # This represents an orientation in free space in quaternion form.\n\ 00149 \n\ 00150 float64 x\n\ 00151 float64 y\n\ 00152 float64 z\n\ 00153 float64 w\n\ 00154 \n\ 00155 "; } 00156 public: 00157 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00158 00159 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00160 00161 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00162 { 00163 ros::serialization::OStream stream(write_ptr, 1000000000); 00164 ros::serialization::serialize(stream, hypotheses); 00165 ros::serialization::serialize(stream, accept); 00166 return stream.getData(); 00167 } 00168 00169 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00170 { 00171 ros::serialization::IStream stream(read_ptr, 1000000000); 00172 ros::serialization::deserialize(stream, hypotheses); 00173 ros::serialization::deserialize(stream, accept); 00174 return stream.getData(); 00175 } 00176 00177 ROS_DEPRECATED virtual uint32_t serializationLength() const 00178 { 00179 uint32_t size = 0; 00180 size += ros::serialization::serializationLength(hypotheses); 00181 size += ros::serialization::serializationLength(accept); 00182 return size; 00183 } 00184 00185 typedef boost::shared_ptr< ::object_recognition_gui::ModelHypothesisList_<ContainerAllocator> > Ptr; 00186 typedef boost::shared_ptr< ::object_recognition_gui::ModelHypothesisList_<ContainerAllocator> const> ConstPtr; 00187 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00188 }; // struct ModelHypothesisList 00189 typedef ::object_recognition_gui::ModelHypothesisList_<std::allocator<void> > ModelHypothesisList; 00190 00191 typedef boost::shared_ptr< ::object_recognition_gui::ModelHypothesisList> ModelHypothesisListPtr; 00192 typedef boost::shared_ptr< ::object_recognition_gui::ModelHypothesisList const> ModelHypothesisListConstPtr; 00193 00194 00195 template<typename ContainerAllocator> 00196 std::ostream& operator<<(std::ostream& s, const ::object_recognition_gui::ModelHypothesisList_<ContainerAllocator> & v) 00197 { 00198 ros::message_operations::Printer< ::object_recognition_gui::ModelHypothesisList_<ContainerAllocator> >::stream(s, "", v); 00199 return s;} 00200 00201 } // namespace object_recognition_gui 00202 00203 namespace ros 00204 { 00205 namespace message_traits 00206 { 00207 template<class ContainerAllocator> struct IsMessage< ::object_recognition_gui::ModelHypothesisList_<ContainerAllocator> > : public TrueType {}; 00208 template<class ContainerAllocator> struct IsMessage< ::object_recognition_gui::ModelHypothesisList_<ContainerAllocator> const> : public TrueType {}; 00209 template<class ContainerAllocator> 00210 struct MD5Sum< ::object_recognition_gui::ModelHypothesisList_<ContainerAllocator> > { 00211 static const char* value() 00212 { 00213 return "8d08459b65fa27d555aca1d8d3e6c944"; 00214 } 00215 00216 static const char* value(const ::object_recognition_gui::ModelHypothesisList_<ContainerAllocator> &) { return value(); } 00217 static const uint64_t static_value1 = 0x8d08459b65fa27d5ULL; 00218 static const uint64_t static_value2 = 0x55aca1d8d3e6c944ULL; 00219 }; 00220 00221 template<class ContainerAllocator> 00222 struct DataType< ::object_recognition_gui::ModelHypothesisList_<ContainerAllocator> > { 00223 static const char* value() 00224 { 00225 return "object_recognition_gui/ModelHypothesisList"; 00226 } 00227 00228 static const char* value(const ::object_recognition_gui::ModelHypothesisList_<ContainerAllocator> &) { return value(); } 00229 }; 00230 00231 template<class ContainerAllocator> 00232 struct Definition< ::object_recognition_gui::ModelHypothesisList_<ContainerAllocator> > { 00233 static const char* value() 00234 { 00235 return "ModelHypothesis[] hypotheses\n\ 00236 \n\ 00237 #initial guess if this can be a correct recognition result at all\n\ 00238 bool accept\n\ 00239 ================================================================================\n\ 00240 MSG: object_recognition_gui/ModelHypothesis\n\ 00241 #describes a hypothesis about a recognized object (mesh+pose)\n\ 00242 \n\ 00243 arm_navigation_msgs/Shape mesh\n\ 00244 geometry_msgs/PoseStamped pose\n\ 00245 \n\ 00246 ================================================================================\n\ 00247 MSG: arm_navigation_msgs/Shape\n\ 00248 byte SPHERE=0\n\ 00249 byte BOX=1\n\ 00250 byte CYLINDER=2\n\ 00251 byte MESH=3\n\ 00252 \n\ 00253 byte type\n\ 00254 \n\ 00255 \n\ 00256 #### define sphere, box, cylinder ####\n\ 00257 # the origin of each shape is considered at the shape's center\n\ 00258 \n\ 00259 # for sphere\n\ 00260 # radius := dimensions[0]\n\ 00261 \n\ 00262 # for cylinder\n\ 00263 # radius := dimensions[0]\n\ 00264 # length := dimensions[1]\n\ 00265 # the length is along the Z axis\n\ 00266 \n\ 00267 # for box\n\ 00268 # size_x := dimensions[0]\n\ 00269 # size_y := dimensions[1]\n\ 00270 # size_z := dimensions[2]\n\ 00271 float64[] dimensions\n\ 00272 \n\ 00273 \n\ 00274 #### define mesh ####\n\ 00275 \n\ 00276 # list of triangles; triangle k is defined by tre vertices located\n\ 00277 # at indices triangles[3k], triangles[3k+1], triangles[3k+2]\n\ 00278 int32[] triangles\n\ 00279 geometry_msgs/Point[] vertices\n\ 00280 \n\ 00281 ================================================================================\n\ 00282 MSG: geometry_msgs/Point\n\ 00283 # This contains the position of a point in free space\n\ 00284 float64 x\n\ 00285 float64 y\n\ 00286 float64 z\n\ 00287 \n\ 00288 ================================================================================\n\ 00289 MSG: geometry_msgs/PoseStamped\n\ 00290 # A Pose with reference coordinate frame and timestamp\n\ 00291 Header header\n\ 00292 Pose pose\n\ 00293 \n\ 00294 ================================================================================\n\ 00295 MSG: std_msgs/Header\n\ 00296 # Standard metadata for higher-level stamped data types.\n\ 00297 # This is generally used to communicate timestamped data \n\ 00298 # in a particular coordinate frame.\n\ 00299 # \n\ 00300 # sequence ID: consecutively increasing ID \n\ 00301 uint32 seq\n\ 00302 #Two-integer timestamp that is expressed as:\n\ 00303 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00304 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00305 # time-handling sugar is provided by the client library\n\ 00306 time stamp\n\ 00307 #Frame this data is associated with\n\ 00308 # 0: no frame\n\ 00309 # 1: global frame\n\ 00310 string frame_id\n\ 00311 \n\ 00312 ================================================================================\n\ 00313 MSG: geometry_msgs/Pose\n\ 00314 # A representation of pose in free space, composed of postion and orientation. \n\ 00315 Point position\n\ 00316 Quaternion orientation\n\ 00317 \n\ 00318 ================================================================================\n\ 00319 MSG: geometry_msgs/Quaternion\n\ 00320 # This represents an orientation in free space in quaternion form.\n\ 00321 \n\ 00322 float64 x\n\ 00323 float64 y\n\ 00324 float64 z\n\ 00325 float64 w\n\ 00326 \n\ 00327 "; 00328 } 00329 00330 static const char* value(const ::object_recognition_gui::ModelHypothesisList_<ContainerAllocator> &) { return value(); } 00331 }; 00332 00333 } // namespace message_traits 00334 } // namespace ros 00335 00336 namespace ros 00337 { 00338 namespace serialization 00339 { 00340 00341 template<class ContainerAllocator> struct Serializer< ::object_recognition_gui::ModelHypothesisList_<ContainerAllocator> > 00342 { 00343 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00344 { 00345 stream.next(m.hypotheses); 00346 stream.next(m.accept); 00347 } 00348 00349 ROS_DECLARE_ALLINONE_SERIALIZER; 00350 }; // struct ModelHypothesisList_ 00351 } // namespace serialization 00352 } // namespace ros 00353 00354 namespace ros 00355 { 00356 namespace message_operations 00357 { 00358 00359 template<class ContainerAllocator> 00360 struct Printer< ::object_recognition_gui::ModelHypothesisList_<ContainerAllocator> > 00361 { 00362 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::object_recognition_gui::ModelHypothesisList_<ContainerAllocator> & v) 00363 { 00364 s << indent << "hypotheses[]" << std::endl; 00365 for (size_t i = 0; i < v.hypotheses.size(); ++i) 00366 { 00367 s << indent << " hypotheses[" << i << "]: "; 00368 s << std::endl; 00369 s << indent; 00370 Printer< ::object_recognition_gui::ModelHypothesis_<ContainerAllocator> >::stream(s, indent + " ", v.hypotheses[i]); 00371 } 00372 s << indent << "accept: "; 00373 Printer<uint8_t>::stream(s, indent + " ", v.accept); 00374 } 00375 }; 00376 00377 00378 } // namespace message_operations 00379 } // namespace ros 00380 00381 #endif // OBJECT_RECOGNITION_GUI_MESSAGE_MODELHYPOTHESISLIST_H 00382