$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-ias_common/doc_stacks/2013-03-01_15-41-55.252100/ias_common/vision_msgs/msg/cop_answer.msg */ 00002 #ifndef VISION_MSGS_MESSAGE_COP_ANSWER_H 00003 #define VISION_MSGS_MESSAGE_COP_ANSWER_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 "vision_msgs/aposteriori_position.h" 00018 00019 namespace vision_msgs 00020 { 00021 template <class ContainerAllocator> 00022 struct cop_answer_ { 00023 typedef cop_answer_<ContainerAllocator> Type; 00024 00025 cop_answer_() 00026 : perception_primitive(0) 00027 , error() 00028 , found_poses() 00029 { 00030 } 00031 00032 cop_answer_(const ContainerAllocator& _alloc) 00033 : perception_primitive(0) 00034 , error(_alloc) 00035 , found_poses(_alloc) 00036 { 00037 } 00038 00039 typedef uint64_t _perception_primitive_type; 00040 uint64_t perception_primitive; 00041 00042 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _error_type; 00043 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > error; 00044 00045 typedef std::vector< ::vision_msgs::aposteriori_position_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::vision_msgs::aposteriori_position_<ContainerAllocator> >::other > _found_poses_type; 00046 std::vector< ::vision_msgs::aposteriori_position_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::vision_msgs::aposteriori_position_<ContainerAllocator> >::other > found_poses; 00047 00048 00049 ROS_DEPRECATED uint32_t get_found_poses_size() const { return (uint32_t)found_poses.size(); } 00050 ROS_DEPRECATED void set_found_poses_size(uint32_t size) { found_poses.resize((size_t)size); } 00051 ROS_DEPRECATED void get_found_poses_vec(std::vector< ::vision_msgs::aposteriori_position_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::vision_msgs::aposteriori_position_<ContainerAllocator> >::other > & vec) const { vec = this->found_poses; } 00052 ROS_DEPRECATED void set_found_poses_vec(const std::vector< ::vision_msgs::aposteriori_position_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::vision_msgs::aposteriori_position_<ContainerAllocator> >::other > & vec) { this->found_poses = vec; } 00053 private: 00054 static const char* __s_getDataType_() { return "vision_msgs/cop_answer"; } 00055 public: 00056 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00057 00058 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00059 00060 private: 00061 static const char* __s_getMD5Sum_() { return "1f3f6145b8086e5dd7885136dd895de4"; } 00062 public: 00063 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00064 00065 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00066 00067 private: 00068 static const char* __s_getMessageDefinition_() { return "#Message that cop uses to answer on specified topics, U. Klank klank@in.tum.de\n\ 00069 uint64 perception_primitive # Perception primitive that caused this answer\n\ 00070 string error # eventuelly there are errors like no object found\n\ 00071 aposteriori_position[] found_poses # list od found pose candidate for a certain query\n\ 00072 \n\ 00073 ================================================================================\n\ 00074 MSG: vision_msgs/aposteriori_position\n\ 00075 #objects a posteriori position, U. Klank klank@in.tum.de\n\ 00076 uint64 objectId #id of an cop object\n\ 00077 float64 probability #approximated a posteriori probability of the object beeing at the position\n\ 00078 uint64 position #lo id of an position\n\ 00079 cop_descriptor[] models #list of all models assigned to the returned object\n\ 00080 ================================================================================\n\ 00081 MSG: vision_msgs/cop_descriptor\n\ 00082 #Descriptors of models used in cop, U. Klank klank@in.tum.de\n\ 00083 uint64 object_id # unique id that could be used for a query\n\ 00084 string sem_class # connected semantic concept\n\ 00085 string type # Class name that was used to generate the corresponding cop descriptor plugin, \n\ 00086 # example are: ShapeModel, ColorClass, DeformShapeModel\n\ 00087 float64 quality # the current quality assinged to this descriptor\n\ 00088 \n\ 00089 \n\ 00090 \n\ 00091 \n\ 00092 "; } 00093 public: 00094 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00095 00096 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00097 00098 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00099 { 00100 ros::serialization::OStream stream(write_ptr, 1000000000); 00101 ros::serialization::serialize(stream, perception_primitive); 00102 ros::serialization::serialize(stream, error); 00103 ros::serialization::serialize(stream, found_poses); 00104 return stream.getData(); 00105 } 00106 00107 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00108 { 00109 ros::serialization::IStream stream(read_ptr, 1000000000); 00110 ros::serialization::deserialize(stream, perception_primitive); 00111 ros::serialization::deserialize(stream, error); 00112 ros::serialization::deserialize(stream, found_poses); 00113 return stream.getData(); 00114 } 00115 00116 ROS_DEPRECATED virtual uint32_t serializationLength() const 00117 { 00118 uint32_t size = 0; 00119 size += ros::serialization::serializationLength(perception_primitive); 00120 size += ros::serialization::serializationLength(error); 00121 size += ros::serialization::serializationLength(found_poses); 00122 return size; 00123 } 00124 00125 typedef boost::shared_ptr< ::vision_msgs::cop_answer_<ContainerAllocator> > Ptr; 00126 typedef boost::shared_ptr< ::vision_msgs::cop_answer_<ContainerAllocator> const> ConstPtr; 00127 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00128 }; // struct cop_answer 00129 typedef ::vision_msgs::cop_answer_<std::allocator<void> > cop_answer; 00130 00131 typedef boost::shared_ptr< ::vision_msgs::cop_answer> cop_answerPtr; 00132 typedef boost::shared_ptr< ::vision_msgs::cop_answer const> cop_answerConstPtr; 00133 00134 00135 template<typename ContainerAllocator> 00136 std::ostream& operator<<(std::ostream& s, const ::vision_msgs::cop_answer_<ContainerAllocator> & v) 00137 { 00138 ros::message_operations::Printer< ::vision_msgs::cop_answer_<ContainerAllocator> >::stream(s, "", v); 00139 return s;} 00140 00141 } // namespace vision_msgs 00142 00143 namespace ros 00144 { 00145 namespace message_traits 00146 { 00147 template<class ContainerAllocator> struct IsMessage< ::vision_msgs::cop_answer_<ContainerAllocator> > : public TrueType {}; 00148 template<class ContainerAllocator> struct IsMessage< ::vision_msgs::cop_answer_<ContainerAllocator> const> : public TrueType {}; 00149 template<class ContainerAllocator> 00150 struct MD5Sum< ::vision_msgs::cop_answer_<ContainerAllocator> > { 00151 static const char* value() 00152 { 00153 return "1f3f6145b8086e5dd7885136dd895de4"; 00154 } 00155 00156 static const char* value(const ::vision_msgs::cop_answer_<ContainerAllocator> &) { return value(); } 00157 static const uint64_t static_value1 = 0x1f3f6145b8086e5dULL; 00158 static const uint64_t static_value2 = 0xd7885136dd895de4ULL; 00159 }; 00160 00161 template<class ContainerAllocator> 00162 struct DataType< ::vision_msgs::cop_answer_<ContainerAllocator> > { 00163 static const char* value() 00164 { 00165 return "vision_msgs/cop_answer"; 00166 } 00167 00168 static const char* value(const ::vision_msgs::cop_answer_<ContainerAllocator> &) { return value(); } 00169 }; 00170 00171 template<class ContainerAllocator> 00172 struct Definition< ::vision_msgs::cop_answer_<ContainerAllocator> > { 00173 static const char* value() 00174 { 00175 return "#Message that cop uses to answer on specified topics, U. Klank klank@in.tum.de\n\ 00176 uint64 perception_primitive # Perception primitive that caused this answer\n\ 00177 string error # eventuelly there are errors like no object found\n\ 00178 aposteriori_position[] found_poses # list od found pose candidate for a certain query\n\ 00179 \n\ 00180 ================================================================================\n\ 00181 MSG: vision_msgs/aposteriori_position\n\ 00182 #objects a posteriori position, U. Klank klank@in.tum.de\n\ 00183 uint64 objectId #id of an cop object\n\ 00184 float64 probability #approximated a posteriori probability of the object beeing at the position\n\ 00185 uint64 position #lo id of an position\n\ 00186 cop_descriptor[] models #list of all models assigned to the returned object\n\ 00187 ================================================================================\n\ 00188 MSG: vision_msgs/cop_descriptor\n\ 00189 #Descriptors of models used in cop, U. Klank klank@in.tum.de\n\ 00190 uint64 object_id # unique id that could be used for a query\n\ 00191 string sem_class # connected semantic concept\n\ 00192 string type # Class name that was used to generate the corresponding cop descriptor plugin, \n\ 00193 # example are: ShapeModel, ColorClass, DeformShapeModel\n\ 00194 float64 quality # the current quality assinged to this descriptor\n\ 00195 \n\ 00196 \n\ 00197 \n\ 00198 \n\ 00199 "; 00200 } 00201 00202 static const char* value(const ::vision_msgs::cop_answer_<ContainerAllocator> &) { return value(); } 00203 }; 00204 00205 } // namespace message_traits 00206 } // namespace ros 00207 00208 namespace ros 00209 { 00210 namespace serialization 00211 { 00212 00213 template<class ContainerAllocator> struct Serializer< ::vision_msgs::cop_answer_<ContainerAllocator> > 00214 { 00215 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00216 { 00217 stream.next(m.perception_primitive); 00218 stream.next(m.error); 00219 stream.next(m.found_poses); 00220 } 00221 00222 ROS_DECLARE_ALLINONE_SERIALIZER; 00223 }; // struct cop_answer_ 00224 } // namespace serialization 00225 } // namespace ros 00226 00227 namespace ros 00228 { 00229 namespace message_operations 00230 { 00231 00232 template<class ContainerAllocator> 00233 struct Printer< ::vision_msgs::cop_answer_<ContainerAllocator> > 00234 { 00235 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::vision_msgs::cop_answer_<ContainerAllocator> & v) 00236 { 00237 s << indent << "perception_primitive: "; 00238 Printer<uint64_t>::stream(s, indent + " ", v.perception_primitive); 00239 s << indent << "error: "; 00240 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.error); 00241 s << indent << "found_poses[]" << std::endl; 00242 for (size_t i = 0; i < v.found_poses.size(); ++i) 00243 { 00244 s << indent << " found_poses[" << i << "]: "; 00245 s << std::endl; 00246 s << indent; 00247 Printer< ::vision_msgs::aposteriori_position_<ContainerAllocator> >::stream(s, indent + " ", v.found_poses[i]); 00248 } 00249 } 00250 }; 00251 00252 00253 } // namespace message_operations 00254 } // namespace ros 00255 00256 #endif // VISION_MSGS_MESSAGE_COP_ANSWER_H 00257