$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-vision_visp/doc_stacks/2013-03-02_14-13-07.148743/vision_visp/visp_tracker/msg/MovingEdgeSite.msg */ 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 private: 00049 static const char* __s_getDataType_() { return "visp_tracker/MovingEdgeSite"; } 00050 public: 00051 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00052 00053 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00054 00055 private: 00056 static const char* __s_getMD5Sum_() { return "d67448def98304944978d0ca12803af8"; } 00057 public: 00058 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00059 00060 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00061 00062 private: 00063 static const char* __s_getMessageDefinition_() { return "# Moving edge position.\n\ 00064 \n\ 00065 float64 x # X position in the image\n\ 00066 float64 y # Y position in the image\n\ 00067 int32 suppress # Is the moving edge valid?\n\ 00068 # - 0: yes\n\ 00069 # - 1: no, constrast check has failed.\n\ 00070 # - 2: no, threshold check has failed.\n\ 00071 # - 3: no, M-estimator check has failed.\n\ 00072 # - >=4: no, undocumented reason.\n\ 00073 \n\ 00074 "; } 00075 public: 00076 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00077 00078 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00079 00080 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00081 { 00082 ros::serialization::OStream stream(write_ptr, 1000000000); 00083 ros::serialization::serialize(stream, x); 00084 ros::serialization::serialize(stream, y); 00085 ros::serialization::serialize(stream, suppress); 00086 return stream.getData(); 00087 } 00088 00089 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00090 { 00091 ros::serialization::IStream stream(read_ptr, 1000000000); 00092 ros::serialization::deserialize(stream, x); 00093 ros::serialization::deserialize(stream, y); 00094 ros::serialization::deserialize(stream, suppress); 00095 return stream.getData(); 00096 } 00097 00098 ROS_DEPRECATED virtual uint32_t serializationLength() const 00099 { 00100 uint32_t size = 0; 00101 size += ros::serialization::serializationLength(x); 00102 size += ros::serialization::serializationLength(y); 00103 size += ros::serialization::serializationLength(suppress); 00104 return size; 00105 } 00106 00107 typedef boost::shared_ptr< ::visp_tracker::MovingEdgeSite_<ContainerAllocator> > Ptr; 00108 typedef boost::shared_ptr< ::visp_tracker::MovingEdgeSite_<ContainerAllocator> const> ConstPtr; 00109 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00110 }; // struct MovingEdgeSite 00111 typedef ::visp_tracker::MovingEdgeSite_<std::allocator<void> > MovingEdgeSite; 00112 00113 typedef boost::shared_ptr< ::visp_tracker::MovingEdgeSite> MovingEdgeSitePtr; 00114 typedef boost::shared_ptr< ::visp_tracker::MovingEdgeSite const> MovingEdgeSiteConstPtr; 00115 00116 00117 template<typename ContainerAllocator> 00118 std::ostream& operator<<(std::ostream& s, const ::visp_tracker::MovingEdgeSite_<ContainerAllocator> & v) 00119 { 00120 ros::message_operations::Printer< ::visp_tracker::MovingEdgeSite_<ContainerAllocator> >::stream(s, "", v); 00121 return s;} 00122 00123 } // namespace visp_tracker 00124 00125 namespace ros 00126 { 00127 namespace message_traits 00128 { 00129 template<class ContainerAllocator> struct IsMessage< ::visp_tracker::MovingEdgeSite_<ContainerAllocator> > : public TrueType {}; 00130 template<class ContainerAllocator> struct IsMessage< ::visp_tracker::MovingEdgeSite_<ContainerAllocator> const> : public TrueType {}; 00131 template<class ContainerAllocator> 00132 struct MD5Sum< ::visp_tracker::MovingEdgeSite_<ContainerAllocator> > { 00133 static const char* value() 00134 { 00135 return "d67448def98304944978d0ca12803af8"; 00136 } 00137 00138 static const char* value(const ::visp_tracker::MovingEdgeSite_<ContainerAllocator> &) { return value(); } 00139 static const uint64_t static_value1 = 0xd67448def9830494ULL; 00140 static const uint64_t static_value2 = 0x4978d0ca12803af8ULL; 00141 }; 00142 00143 template<class ContainerAllocator> 00144 struct DataType< ::visp_tracker::MovingEdgeSite_<ContainerAllocator> > { 00145 static const char* value() 00146 { 00147 return "visp_tracker/MovingEdgeSite"; 00148 } 00149 00150 static const char* value(const ::visp_tracker::MovingEdgeSite_<ContainerAllocator> &) { return value(); } 00151 }; 00152 00153 template<class ContainerAllocator> 00154 struct Definition< ::visp_tracker::MovingEdgeSite_<ContainerAllocator> > { 00155 static const char* value() 00156 { 00157 return "# Moving edge position.\n\ 00158 \n\ 00159 float64 x # X position in the image\n\ 00160 float64 y # Y position in the image\n\ 00161 int32 suppress # Is the moving edge valid?\n\ 00162 # - 0: yes\n\ 00163 # - 1: no, constrast check has failed.\n\ 00164 # - 2: no, threshold check has failed.\n\ 00165 # - 3: no, M-estimator check has failed.\n\ 00166 # - >=4: no, undocumented reason.\n\ 00167 \n\ 00168 "; 00169 } 00170 00171 static const char* value(const ::visp_tracker::MovingEdgeSite_<ContainerAllocator> &) { return value(); } 00172 }; 00173 00174 template<class ContainerAllocator> struct IsFixedSize< ::visp_tracker::MovingEdgeSite_<ContainerAllocator> > : public TrueType {}; 00175 } // namespace message_traits 00176 } // namespace ros 00177 00178 namespace ros 00179 { 00180 namespace serialization 00181 { 00182 00183 template<class ContainerAllocator> struct Serializer< ::visp_tracker::MovingEdgeSite_<ContainerAllocator> > 00184 { 00185 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00186 { 00187 stream.next(m.x); 00188 stream.next(m.y); 00189 stream.next(m.suppress); 00190 } 00191 00192 ROS_DECLARE_ALLINONE_SERIALIZER; 00193 }; // struct MovingEdgeSite_ 00194 } // namespace serialization 00195 } // namespace ros 00196 00197 namespace ros 00198 { 00199 namespace message_operations 00200 { 00201 00202 template<class ContainerAllocator> 00203 struct Printer< ::visp_tracker::MovingEdgeSite_<ContainerAllocator> > 00204 { 00205 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::visp_tracker::MovingEdgeSite_<ContainerAllocator> & v) 00206 { 00207 s << indent << "x: "; 00208 Printer<double>::stream(s, indent + " ", v.x); 00209 s << indent << "y: "; 00210 Printer<double>::stream(s, indent + " ", v.y); 00211 s << indent << "suppress: "; 00212 Printer<int32_t>::stream(s, indent + " ", v.suppress); 00213 } 00214 }; 00215 00216 00217 } // namespace message_operations 00218 } // namespace ros 00219 00220 #endif // VISP_TRACKER_MESSAGE_MOVINGEDGESITE_H 00221