00001
00002 #ifndef VISP_TRACKER_MESSAGE_MOVINGEDGESITE_H
00003 #define VISP_TRACKER_MESSAGE_MOVINGEDGESITE_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
00014 namespace visp_tracker
00015 {
00016 template <class ContainerAllocator>
00017 struct MovingEdgeSite_ : public ros::Message
00018 {
00019 typedef MovingEdgeSite_<ContainerAllocator> Type;
00020
00021 MovingEdgeSite_()
00022 : x(0.0)
00023 , y(0.0)
00024 , suppress(0)
00025 {
00026 }
00027
00028 MovingEdgeSite_(const ContainerAllocator& _alloc)
00029 : x(0.0)
00030 , y(0.0)
00031 , suppress(0)
00032 {
00033 }
00034
00035 typedef double _x_type;
00036 double x;
00037
00038 typedef double _y_type;
00039 double y;
00040
00041 typedef int32_t _suppress_type;
00042 int32_t suppress;
00043
00044
00045 private:
00046 static const char* __s_getDataType_() { return "visp_tracker/MovingEdgeSite"; }
00047 public:
00048 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00049
00050 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00051
00052 private:
00053 static const char* __s_getMD5Sum_() { return "d67448def98304944978d0ca12803af8"; }
00054 public:
00055 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00056
00057 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00058
00059 private:
00060 static const char* __s_getMessageDefinition_() { return "# Moving edge position.\n\
00061 \n\
00062 float64 x # X position in the image\n\
00063 float64 y # Y position in the image\n\
00064 int32 suppress # Is the moving edge valid?\n\
00065 # - 0: yes\n\
00066 # - 1: no, constrast check has failed.\n\
00067 # - 2: no, threshold check has failed.\n\
00068 # - 3: no, M-estimator check has failed.\n\
00069 # - >=4: no, undocumented reason.\n\
00070 \n\
00071 "; }
00072 public:
00073 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00074
00075 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00076
00077 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00078 {
00079 ros::serialization::OStream stream(write_ptr, 1000000000);
00080 ros::serialization::serialize(stream, x);
00081 ros::serialization::serialize(stream, y);
00082 ros::serialization::serialize(stream, suppress);
00083 return stream.getData();
00084 }
00085
00086 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00087 {
00088 ros::serialization::IStream stream(read_ptr, 1000000000);
00089 ros::serialization::deserialize(stream, x);
00090 ros::serialization::deserialize(stream, y);
00091 ros::serialization::deserialize(stream, suppress);
00092 return stream.getData();
00093 }
00094
00095 ROS_DEPRECATED virtual uint32_t serializationLength() const
00096 {
00097 uint32_t size = 0;
00098 size += ros::serialization::serializationLength(x);
00099 size += ros::serialization::serializationLength(y);
00100 size += ros::serialization::serializationLength(suppress);
00101 return size;
00102 }
00103
00104 typedef boost::shared_ptr< ::visp_tracker::MovingEdgeSite_<ContainerAllocator> > Ptr;
00105 typedef boost::shared_ptr< ::visp_tracker::MovingEdgeSite_<ContainerAllocator> const> ConstPtr;
00106 };
00107 typedef ::visp_tracker::MovingEdgeSite_<std::allocator<void> > MovingEdgeSite;
00108
00109 typedef boost::shared_ptr< ::visp_tracker::MovingEdgeSite> MovingEdgeSitePtr;
00110 typedef boost::shared_ptr< ::visp_tracker::MovingEdgeSite const> MovingEdgeSiteConstPtr;
00111
00112
00113 template<typename ContainerAllocator>
00114 std::ostream& operator<<(std::ostream& s, const ::visp_tracker::MovingEdgeSite_<ContainerAllocator> & v)
00115 {
00116 ros::message_operations::Printer< ::visp_tracker::MovingEdgeSite_<ContainerAllocator> >::stream(s, "", v);
00117 return s;}
00118
00119 }
00120
00121 namespace ros
00122 {
00123 namespace message_traits
00124 {
00125 template<class ContainerAllocator>
00126 struct MD5Sum< ::visp_tracker::MovingEdgeSite_<ContainerAllocator> > {
00127 static const char* value()
00128 {
00129 return "d67448def98304944978d0ca12803af8";
00130 }
00131
00132 static const char* value(const ::visp_tracker::MovingEdgeSite_<ContainerAllocator> &) { return value(); }
00133 static const uint64_t static_value1 = 0xd67448def9830494ULL;
00134 static const uint64_t static_value2 = 0x4978d0ca12803af8ULL;
00135 };
00136
00137 template<class ContainerAllocator>
00138 struct DataType< ::visp_tracker::MovingEdgeSite_<ContainerAllocator> > {
00139 static const char* value()
00140 {
00141 return "visp_tracker/MovingEdgeSite";
00142 }
00143
00144 static const char* value(const ::visp_tracker::MovingEdgeSite_<ContainerAllocator> &) { return value(); }
00145 };
00146
00147 template<class ContainerAllocator>
00148 struct Definition< ::visp_tracker::MovingEdgeSite_<ContainerAllocator> > {
00149 static const char* value()
00150 {
00151 return "# Moving edge position.\n\
00152 \n\
00153 float64 x # X position in the image\n\
00154 float64 y # Y position in the image\n\
00155 int32 suppress # Is the moving edge valid?\n\
00156 # - 0: yes\n\
00157 # - 1: no, constrast check has failed.\n\
00158 # - 2: no, threshold check has failed.\n\
00159 # - 3: no, M-estimator check has failed.\n\
00160 # - >=4: no, undocumented reason.\n\
00161 \n\
00162 ";
00163 }
00164
00165 static const char* value(const ::visp_tracker::MovingEdgeSite_<ContainerAllocator> &) { return value(); }
00166 };
00167
00168 template<class ContainerAllocator> struct IsFixedSize< ::visp_tracker::MovingEdgeSite_<ContainerAllocator> > : public TrueType {};
00169 }
00170 }
00171
00172 namespace ros
00173 {
00174 namespace serialization
00175 {
00176
00177 template<class ContainerAllocator> struct Serializer< ::visp_tracker::MovingEdgeSite_<ContainerAllocator> >
00178 {
00179 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00180 {
00181 stream.next(m.x);
00182 stream.next(m.y);
00183 stream.next(m.suppress);
00184 }
00185
00186 ROS_DECLARE_ALLINONE_SERIALIZER;
00187 };
00188 }
00189 }
00190
00191 namespace ros
00192 {
00193 namespace message_operations
00194 {
00195
00196 template<class ContainerAllocator>
00197 struct Printer< ::visp_tracker::MovingEdgeSite_<ContainerAllocator> >
00198 {
00199 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::visp_tracker::MovingEdgeSite_<ContainerAllocator> & v)
00200 {
00201 s << indent << "x: ";
00202 Printer<double>::stream(s, indent + " ", v.x);
00203 s << indent << "y: ";
00204 Printer<double>::stream(s, indent + " ", v.y);
00205 s << indent << "suppress: ";
00206 Printer<int32_t>::stream(s, indent + " ", v.suppress);
00207 }
00208 };
00209
00210
00211 }
00212 }
00213
00214 #endif // VISP_TRACKER_MESSAGE_MOVINGEDGESITE_H
00215