$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/MovingEdgeSites.msg */ 00002 #ifndef VISP_TRACKER_MESSAGE_MOVINGEDGESITES_H 00003 #define VISP_TRACKER_MESSAGE_MOVINGEDGESITES_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 "std_msgs/Header.h" 00018 #include "visp_tracker/MovingEdgeSite.h" 00019 00020 namespace visp_tracker 00021 { 00022 template <class ContainerAllocator> 00023 struct MovingEdgeSites_ { 00024 typedef MovingEdgeSites_<ContainerAllocator> Type; 00025 00026 MovingEdgeSites_() 00027 : header() 00028 , moving_edge_sites() 00029 { 00030 } 00031 00032 MovingEdgeSites_(const ContainerAllocator& _alloc) 00033 : header(_alloc) 00034 , moving_edge_sites(_alloc) 00035 { 00036 } 00037 00038 typedef ::std_msgs::Header_<ContainerAllocator> _header_type; 00039 ::std_msgs::Header_<ContainerAllocator> header; 00040 00041 typedef std::vector< ::visp_tracker::MovingEdgeSite_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::visp_tracker::MovingEdgeSite_<ContainerAllocator> >::other > _moving_edge_sites_type; 00042 std::vector< ::visp_tracker::MovingEdgeSite_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::visp_tracker::MovingEdgeSite_<ContainerAllocator> >::other > moving_edge_sites; 00043 00044 00045 ROS_DEPRECATED uint32_t get_moving_edge_sites_size() const { return (uint32_t)moving_edge_sites.size(); } 00046 ROS_DEPRECATED void set_moving_edge_sites_size(uint32_t size) { moving_edge_sites.resize((size_t)size); } 00047 ROS_DEPRECATED void get_moving_edge_sites_vec(std::vector< ::visp_tracker::MovingEdgeSite_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::visp_tracker::MovingEdgeSite_<ContainerAllocator> >::other > & vec) const { vec = this->moving_edge_sites; } 00048 ROS_DEPRECATED void set_moving_edge_sites_vec(const std::vector< ::visp_tracker::MovingEdgeSite_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::visp_tracker::MovingEdgeSite_<ContainerAllocator> >::other > & vec) { this->moving_edge_sites = vec; } 00049 private: 00050 static const char* __s_getDataType_() { return "visp_tracker/MovingEdgeSites"; } 00051 public: 00052 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00053 00054 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00055 00056 private: 00057 static const char* __s_getMD5Sum_() { return "5293e8601467590a0dabbb34da47310c"; } 00058 public: 00059 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00060 00061 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00062 00063 private: 00064 static const char* __s_getMessageDefinition_() { return "# Stamped list of moving edge positions.\n\ 00065 #\n\ 00066 # Moving edge positions associated with a particular timestamp.\n\ 00067 # Used by the viewer to display moving edge positions and allow\n\ 00068 # tracking debug.\n\ 00069 \n\ 00070 Header header # Header (required for synchronization).\n\ 00071 MovingEdgeSite[] moving_edge_sites # List of moving dge sites (i.e. positions).\n\ 00072 \n\ 00073 ================================================================================\n\ 00074 MSG: std_msgs/Header\n\ 00075 # Standard metadata for higher-level stamped data types.\n\ 00076 # This is generally used to communicate timestamped data \n\ 00077 # in a particular coordinate frame.\n\ 00078 # \n\ 00079 # sequence ID: consecutively increasing ID \n\ 00080 uint32 seq\n\ 00081 #Two-integer timestamp that is expressed as:\n\ 00082 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00083 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00084 # time-handling sugar is provided by the client library\n\ 00085 time stamp\n\ 00086 #Frame this data is associated with\n\ 00087 # 0: no frame\n\ 00088 # 1: global frame\n\ 00089 string frame_id\n\ 00090 \n\ 00091 ================================================================================\n\ 00092 MSG: visp_tracker/MovingEdgeSite\n\ 00093 # Moving edge position.\n\ 00094 \n\ 00095 float64 x # X position in the image\n\ 00096 float64 y # Y position in the image\n\ 00097 int32 suppress # Is the moving edge valid?\n\ 00098 # - 0: yes\n\ 00099 # - 1: no, constrast check has failed.\n\ 00100 # - 2: no, threshold check has failed.\n\ 00101 # - 3: no, M-estimator check has failed.\n\ 00102 # - >=4: no, undocumented reason.\n\ 00103 \n\ 00104 "; } 00105 public: 00106 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00107 00108 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00109 00110 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00111 { 00112 ros::serialization::OStream stream(write_ptr, 1000000000); 00113 ros::serialization::serialize(stream, header); 00114 ros::serialization::serialize(stream, moving_edge_sites); 00115 return stream.getData(); 00116 } 00117 00118 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00119 { 00120 ros::serialization::IStream stream(read_ptr, 1000000000); 00121 ros::serialization::deserialize(stream, header); 00122 ros::serialization::deserialize(stream, moving_edge_sites); 00123 return stream.getData(); 00124 } 00125 00126 ROS_DEPRECATED virtual uint32_t serializationLength() const 00127 { 00128 uint32_t size = 0; 00129 size += ros::serialization::serializationLength(header); 00130 size += ros::serialization::serializationLength(moving_edge_sites); 00131 return size; 00132 } 00133 00134 typedef boost::shared_ptr< ::visp_tracker::MovingEdgeSites_<ContainerAllocator> > Ptr; 00135 typedef boost::shared_ptr< ::visp_tracker::MovingEdgeSites_<ContainerAllocator> const> ConstPtr; 00136 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00137 }; // struct MovingEdgeSites 00138 typedef ::visp_tracker::MovingEdgeSites_<std::allocator<void> > MovingEdgeSites; 00139 00140 typedef boost::shared_ptr< ::visp_tracker::MovingEdgeSites> MovingEdgeSitesPtr; 00141 typedef boost::shared_ptr< ::visp_tracker::MovingEdgeSites const> MovingEdgeSitesConstPtr; 00142 00143 00144 template<typename ContainerAllocator> 00145 std::ostream& operator<<(std::ostream& s, const ::visp_tracker::MovingEdgeSites_<ContainerAllocator> & v) 00146 { 00147 ros::message_operations::Printer< ::visp_tracker::MovingEdgeSites_<ContainerAllocator> >::stream(s, "", v); 00148 return s;} 00149 00150 } // namespace visp_tracker 00151 00152 namespace ros 00153 { 00154 namespace message_traits 00155 { 00156 template<class ContainerAllocator> struct IsMessage< ::visp_tracker::MovingEdgeSites_<ContainerAllocator> > : public TrueType {}; 00157 template<class ContainerAllocator> struct IsMessage< ::visp_tracker::MovingEdgeSites_<ContainerAllocator> const> : public TrueType {}; 00158 template<class ContainerAllocator> 00159 struct MD5Sum< ::visp_tracker::MovingEdgeSites_<ContainerAllocator> > { 00160 static const char* value() 00161 { 00162 return "5293e8601467590a0dabbb34da47310c"; 00163 } 00164 00165 static const char* value(const ::visp_tracker::MovingEdgeSites_<ContainerAllocator> &) { return value(); } 00166 static const uint64_t static_value1 = 0x5293e8601467590aULL; 00167 static const uint64_t static_value2 = 0x0dabbb34da47310cULL; 00168 }; 00169 00170 template<class ContainerAllocator> 00171 struct DataType< ::visp_tracker::MovingEdgeSites_<ContainerAllocator> > { 00172 static const char* value() 00173 { 00174 return "visp_tracker/MovingEdgeSites"; 00175 } 00176 00177 static const char* value(const ::visp_tracker::MovingEdgeSites_<ContainerAllocator> &) { return value(); } 00178 }; 00179 00180 template<class ContainerAllocator> 00181 struct Definition< ::visp_tracker::MovingEdgeSites_<ContainerAllocator> > { 00182 static const char* value() 00183 { 00184 return "# Stamped list of moving edge positions.\n\ 00185 #\n\ 00186 # Moving edge positions associated with a particular timestamp.\n\ 00187 # Used by the viewer to display moving edge positions and allow\n\ 00188 # tracking debug.\n\ 00189 \n\ 00190 Header header # Header (required for synchronization).\n\ 00191 MovingEdgeSite[] moving_edge_sites # List of moving dge sites (i.e. positions).\n\ 00192 \n\ 00193 ================================================================================\n\ 00194 MSG: std_msgs/Header\n\ 00195 # Standard metadata for higher-level stamped data types.\n\ 00196 # This is generally used to communicate timestamped data \n\ 00197 # in a particular coordinate frame.\n\ 00198 # \n\ 00199 # sequence ID: consecutively increasing ID \n\ 00200 uint32 seq\n\ 00201 #Two-integer timestamp that is expressed as:\n\ 00202 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00203 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00204 # time-handling sugar is provided by the client library\n\ 00205 time stamp\n\ 00206 #Frame this data is associated with\n\ 00207 # 0: no frame\n\ 00208 # 1: global frame\n\ 00209 string frame_id\n\ 00210 \n\ 00211 ================================================================================\n\ 00212 MSG: visp_tracker/MovingEdgeSite\n\ 00213 # Moving edge position.\n\ 00214 \n\ 00215 float64 x # X position in the image\n\ 00216 float64 y # Y position in the image\n\ 00217 int32 suppress # Is the moving edge valid?\n\ 00218 # - 0: yes\n\ 00219 # - 1: no, constrast check has failed.\n\ 00220 # - 2: no, threshold check has failed.\n\ 00221 # - 3: no, M-estimator check has failed.\n\ 00222 # - >=4: no, undocumented reason.\n\ 00223 \n\ 00224 "; 00225 } 00226 00227 static const char* value(const ::visp_tracker::MovingEdgeSites_<ContainerAllocator> &) { return value(); } 00228 }; 00229 00230 template<class ContainerAllocator> struct HasHeader< ::visp_tracker::MovingEdgeSites_<ContainerAllocator> > : public TrueType {}; 00231 template<class ContainerAllocator> struct HasHeader< const ::visp_tracker::MovingEdgeSites_<ContainerAllocator> > : public TrueType {}; 00232 } // namespace message_traits 00233 } // namespace ros 00234 00235 namespace ros 00236 { 00237 namespace serialization 00238 { 00239 00240 template<class ContainerAllocator> struct Serializer< ::visp_tracker::MovingEdgeSites_<ContainerAllocator> > 00241 { 00242 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00243 { 00244 stream.next(m.header); 00245 stream.next(m.moving_edge_sites); 00246 } 00247 00248 ROS_DECLARE_ALLINONE_SERIALIZER; 00249 }; // struct MovingEdgeSites_ 00250 } // namespace serialization 00251 } // namespace ros 00252 00253 namespace ros 00254 { 00255 namespace message_operations 00256 { 00257 00258 template<class ContainerAllocator> 00259 struct Printer< ::visp_tracker::MovingEdgeSites_<ContainerAllocator> > 00260 { 00261 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::visp_tracker::MovingEdgeSites_<ContainerAllocator> & v) 00262 { 00263 s << indent << "header: "; 00264 s << std::endl; 00265 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header); 00266 s << indent << "moving_edge_sites[]" << std::endl; 00267 for (size_t i = 0; i < v.moving_edge_sites.size(); ++i) 00268 { 00269 s << indent << " moving_edge_sites[" << i << "]: "; 00270 s << std::endl; 00271 s << indent; 00272 Printer< ::visp_tracker::MovingEdgeSite_<ContainerAllocator> >::stream(s, indent + " ", v.moving_edge_sites[i]); 00273 } 00274 } 00275 }; 00276 00277 00278 } // namespace message_operations 00279 } // namespace ros 00280 00281 #endif // VISP_TRACKER_MESSAGE_MOVINGEDGESITES_H 00282