Go to the documentation of this file.00001
00002 #ifndef APRIL_MSGS_MESSAGE_TAGPOSE_H
00003 #define APRIL_MSGS_MESSAGE_TAGPOSE_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 "geometry_msgs/Point32.h"
00018 #include "geometry_msgs/Pose.h"
00019
00020 namespace april_msgs
00021 {
00022 template <class ContainerAllocator>
00023 struct TagPose_ {
00024 typedef TagPose_<ContainerAllocator> Type;
00025
00026 TagPose_()
00027 : id(0)
00028 , family()
00029 , hamming_distance(0)
00030 , image_coordinates()
00031 , pose()
00032 {
00033 }
00034
00035 TagPose_(const ContainerAllocator& _alloc)
00036 : id(0)
00037 , family(_alloc)
00038 , hamming_distance(0)
00039 , image_coordinates(_alloc)
00040 , pose(_alloc)
00041 {
00042 }
00043
00044 typedef int32_t _id_type;
00045 int32_t id;
00046
00047 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _family_type;
00048 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > family;
00049
00050 typedef int32_t _hamming_distance_type;
00051 int32_t hamming_distance;
00052
00053 typedef std::vector< ::geometry_msgs::Point32_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Point32_<ContainerAllocator> >::other > _image_coordinates_type;
00054 std::vector< ::geometry_msgs::Point32_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Point32_<ContainerAllocator> >::other > image_coordinates;
00055
00056 typedef ::geometry_msgs::Pose_<ContainerAllocator> _pose_type;
00057 ::geometry_msgs::Pose_<ContainerAllocator> pose;
00058
00059
00060 typedef boost::shared_ptr< ::april_msgs::TagPose_<ContainerAllocator> > Ptr;
00061 typedef boost::shared_ptr< ::april_msgs::TagPose_<ContainerAllocator> const> ConstPtr;
00062 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00063 };
00064 typedef ::april_msgs::TagPose_<std::allocator<void> > TagPose;
00065
00066 typedef boost::shared_ptr< ::april_msgs::TagPose> TagPosePtr;
00067 typedef boost::shared_ptr< ::april_msgs::TagPose const> TagPoseConstPtr;
00068
00069
00070 template<typename ContainerAllocator>
00071 std::ostream& operator<<(std::ostream& s, const ::april_msgs::TagPose_<ContainerAllocator> & v)
00072 {
00073 ros::message_operations::Printer< ::april_msgs::TagPose_<ContainerAllocator> >::stream(s, "", v);
00074 return s;}
00075
00076 }
00077
00078 namespace ros
00079 {
00080 namespace message_traits
00081 {
00082 template<class ContainerAllocator> struct IsMessage< ::april_msgs::TagPose_<ContainerAllocator> > : public TrueType {};
00083 template<class ContainerAllocator> struct IsMessage< ::april_msgs::TagPose_<ContainerAllocator> const> : public TrueType {};
00084 template<class ContainerAllocator>
00085 struct MD5Sum< ::april_msgs::TagPose_<ContainerAllocator> > {
00086 static const char* value()
00087 {
00088 return "b1fc277fac825b913393e44ccf5d240e";
00089 }
00090
00091 static const char* value(const ::april_msgs::TagPose_<ContainerAllocator> &) { return value(); }
00092 static const uint64_t static_value1 = 0xb1fc277fac825b91ULL;
00093 static const uint64_t static_value2 = 0x3393e44ccf5d240eULL;
00094 };
00095
00096 template<class ContainerAllocator>
00097 struct DataType< ::april_msgs::TagPose_<ContainerAllocator> > {
00098 static const char* value()
00099 {
00100 return "april_msgs/TagPose";
00101 }
00102
00103 static const char* value(const ::april_msgs::TagPose_<ContainerAllocator> &) { return value(); }
00104 };
00105
00106 template<class ContainerAllocator>
00107 struct Definition< ::april_msgs::TagPose_<ContainerAllocator> > {
00108 static const char* value()
00109 {
00110 return "int32 id\n\
00111 string family\n\
00112 int32 hamming_distance\n\
00113 geometry_msgs/Point32[] image_coordinates\n\
00114 geometry_msgs/Pose pose\n\
00115 \n\
00116 ================================================================================\n\
00117 MSG: geometry_msgs/Point32\n\
00118 # This contains the position of a point in free space(with 32 bits of precision).\n\
00119 # It is recommeded to use Point wherever possible instead of Point32. \n\
00120 # \n\
00121 # This recommendation is to promote interoperability. \n\
00122 #\n\
00123 # This message is designed to take up less space when sending\n\
00124 # lots of points at once, as in the case of a PointCloud. \n\
00125 \n\
00126 float32 x\n\
00127 float32 y\n\
00128 float32 z\n\
00129 ================================================================================\n\
00130 MSG: geometry_msgs/Pose\n\
00131 # A representation of pose in free space, composed of postion and orientation. \n\
00132 Point position\n\
00133 Quaternion orientation\n\
00134 \n\
00135 ================================================================================\n\
00136 MSG: geometry_msgs/Point\n\
00137 # This contains the position of a point in free space\n\
00138 float64 x\n\
00139 float64 y\n\
00140 float64 z\n\
00141 \n\
00142 ================================================================================\n\
00143 MSG: geometry_msgs/Quaternion\n\
00144 # This represents an orientation in free space in quaternion form.\n\
00145 \n\
00146 float64 x\n\
00147 float64 y\n\
00148 float64 z\n\
00149 float64 w\n\
00150 \n\
00151 ";
00152 }
00153
00154 static const char* value(const ::april_msgs::TagPose_<ContainerAllocator> &) { return value(); }
00155 };
00156
00157 }
00158 }
00159
00160 namespace ros
00161 {
00162 namespace serialization
00163 {
00164
00165 template<class ContainerAllocator> struct Serializer< ::april_msgs::TagPose_<ContainerAllocator> >
00166 {
00167 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00168 {
00169 stream.next(m.id);
00170 stream.next(m.family);
00171 stream.next(m.hamming_distance);
00172 stream.next(m.image_coordinates);
00173 stream.next(m.pose);
00174 }
00175
00176 ROS_DECLARE_ALLINONE_SERIALIZER;
00177 };
00178 }
00179 }
00180
00181 namespace ros
00182 {
00183 namespace message_operations
00184 {
00185
00186 template<class ContainerAllocator>
00187 struct Printer< ::april_msgs::TagPose_<ContainerAllocator> >
00188 {
00189 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::april_msgs::TagPose_<ContainerAllocator> & v)
00190 {
00191 s << indent << "id: ";
00192 Printer<int32_t>::stream(s, indent + " ", v.id);
00193 s << indent << "family: ";
00194 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.family);
00195 s << indent << "hamming_distance: ";
00196 Printer<int32_t>::stream(s, indent + " ", v.hamming_distance);
00197 s << indent << "image_coordinates[]" << std::endl;
00198 for (size_t i = 0; i < v.image_coordinates.size(); ++i)
00199 {
00200 s << indent << " image_coordinates[" << i << "]: ";
00201 s << std::endl;
00202 s << indent;
00203 Printer< ::geometry_msgs::Point32_<ContainerAllocator> >::stream(s, indent + " ", v.image_coordinates[i]);
00204 }
00205 s << indent << "pose: ";
00206 s << std::endl;
00207 Printer< ::geometry_msgs::Pose_<ContainerAllocator> >::stream(s, indent + " ", v.pose);
00208 }
00209 };
00210
00211
00212 }
00213 }
00214
00215 #endif // APRIL_MSGS_MESSAGE_TAGPOSE_H
00216