Go to the documentation of this file.00001
00002 #ifndef VISP_TRACKER_MESSAGE_MOVINGEDGESITE_H
00003 #define VISP_TRACKER_MESSAGE_MOVINGEDGESITE_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
00018 namespace visp_tracker
00019 {
00020 template <class ContainerAllocator>
00021 struct MovingEdgeSite_ {
00022 typedef MovingEdgeSite_<ContainerAllocator> Type;
00023
00024 MovingEdgeSite_()
00025 : x(0.0)
00026 , y(0.0)
00027 , suppress(0)
00028 {
00029 }
00030
00031 MovingEdgeSite_(const ContainerAllocator& _alloc)
00032 : x(0.0)
00033 , y(0.0)
00034 , suppress(0)
00035 {
00036 }
00037
00038 typedef double _x_type;
00039 double x;
00040
00041 typedef double _y_type;
00042 double y;
00043
00044 typedef int32_t _suppress_type;
00045 int32_t suppress;
00046
00047
00048 typedef boost::shared_ptr< ::visp_tracker::MovingEdgeSite_<ContainerAllocator> > Ptr;
00049 typedef boost::shared_ptr< ::visp_tracker::MovingEdgeSite_<ContainerAllocator> const> ConstPtr;
00050 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00051 };
00052 typedef ::visp_tracker::MovingEdgeSite_<std::allocator<void> > MovingEdgeSite;
00053
00054 typedef boost::shared_ptr< ::visp_tracker::MovingEdgeSite> MovingEdgeSitePtr;
00055 typedef boost::shared_ptr< ::visp_tracker::MovingEdgeSite const> MovingEdgeSiteConstPtr;
00056
00057
00058 template<typename ContainerAllocator>
00059 std::ostream& operator<<(std::ostream& s, const ::visp_tracker::MovingEdgeSite_<ContainerAllocator> & v)
00060 {
00061 ros::message_operations::Printer< ::visp_tracker::MovingEdgeSite_<ContainerAllocator> >::stream(s, "", v);
00062 return s;}
00063
00064 }
00065
00066 namespace ros
00067 {
00068 namespace message_traits
00069 {
00070 template<class ContainerAllocator> struct IsMessage< ::visp_tracker::MovingEdgeSite_<ContainerAllocator> > : public TrueType {};
00071 template<class ContainerAllocator> struct IsMessage< ::visp_tracker::MovingEdgeSite_<ContainerAllocator> const> : public TrueType {};
00072 template<class ContainerAllocator>
00073 struct MD5Sum< ::visp_tracker::MovingEdgeSite_<ContainerAllocator> > {
00074 static const char* value()
00075 {
00076 return "d67448def98304944978d0ca12803af8";
00077 }
00078
00079 static const char* value(const ::visp_tracker::MovingEdgeSite_<ContainerAllocator> &) { return value(); }
00080 static const uint64_t static_value1 = 0xd67448def9830494ULL;
00081 static const uint64_t static_value2 = 0x4978d0ca12803af8ULL;
00082 };
00083
00084 template<class ContainerAllocator>
00085 struct DataType< ::visp_tracker::MovingEdgeSite_<ContainerAllocator> > {
00086 static const char* value()
00087 {
00088 return "visp_tracker/MovingEdgeSite";
00089 }
00090
00091 static const char* value(const ::visp_tracker::MovingEdgeSite_<ContainerAllocator> &) { return value(); }
00092 };
00093
00094 template<class ContainerAllocator>
00095 struct Definition< ::visp_tracker::MovingEdgeSite_<ContainerAllocator> > {
00096 static const char* value()
00097 {
00098 return "# Moving edge position.\n\
00099 \n\
00100 float64 x # X position in the image\n\
00101 float64 y # Y position in the image\n\
00102 int32 suppress # Is the moving edge valid?\n\
00103 # - 0: yes\n\
00104 # - 1: no, constrast check has failed.\n\
00105 # - 2: no, threshold check has failed.\n\
00106 # - 3: no, M-estimator check has failed.\n\
00107 # - >=4: no, undocumented reason.\n\
00108 \n\
00109 ";
00110 }
00111
00112 static const char* value(const ::visp_tracker::MovingEdgeSite_<ContainerAllocator> &) { return value(); }
00113 };
00114
00115 template<class ContainerAllocator> struct IsFixedSize< ::visp_tracker::MovingEdgeSite_<ContainerAllocator> > : public TrueType {};
00116 }
00117 }
00118
00119 namespace ros
00120 {
00121 namespace serialization
00122 {
00123
00124 template<class ContainerAllocator> struct Serializer< ::visp_tracker::MovingEdgeSite_<ContainerAllocator> >
00125 {
00126 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00127 {
00128 stream.next(m.x);
00129 stream.next(m.y);
00130 stream.next(m.suppress);
00131 }
00132
00133 ROS_DECLARE_ALLINONE_SERIALIZER;
00134 };
00135 }
00136 }
00137
00138 namespace ros
00139 {
00140 namespace message_operations
00141 {
00142
00143 template<class ContainerAllocator>
00144 struct Printer< ::visp_tracker::MovingEdgeSite_<ContainerAllocator> >
00145 {
00146 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::visp_tracker::MovingEdgeSite_<ContainerAllocator> & v)
00147 {
00148 s << indent << "x: ";
00149 Printer<double>::stream(s, indent + " ", v.x);
00150 s << indent << "y: ";
00151 Printer<double>::stream(s, indent + " ", v.y);
00152 s << indent << "suppress: ";
00153 Printer<int32_t>::stream(s, indent + " ", v.suppress);
00154 }
00155 };
00156
00157
00158 }
00159 }
00160
00161 #endif // VISP_TRACKER_MESSAGE_MOVINGEDGESITE_H
00162