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