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