Go to the documentation of this file.00001
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 typedef boost::shared_ptr< ::visp_tracker::MovingEdgeSites_<ContainerAllocator> > Ptr;
00046 typedef boost::shared_ptr< ::visp_tracker::MovingEdgeSites_<ContainerAllocator> const> ConstPtr;
00047 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00048 };
00049 typedef ::visp_tracker::MovingEdgeSites_<std::allocator<void> > MovingEdgeSites;
00050
00051 typedef boost::shared_ptr< ::visp_tracker::MovingEdgeSites> MovingEdgeSitesPtr;
00052 typedef boost::shared_ptr< ::visp_tracker::MovingEdgeSites const> MovingEdgeSitesConstPtr;
00053
00054
00055 template<typename ContainerAllocator>
00056 std::ostream& operator<<(std::ostream& s, const ::visp_tracker::MovingEdgeSites_<ContainerAllocator> & v)
00057 {
00058 ros::message_operations::Printer< ::visp_tracker::MovingEdgeSites_<ContainerAllocator> >::stream(s, "", v);
00059 return s;}
00060
00061 }
00062
00063 namespace ros
00064 {
00065 namespace message_traits
00066 {
00067 template<class ContainerAllocator> struct IsMessage< ::visp_tracker::MovingEdgeSites_<ContainerAllocator> > : public TrueType {};
00068 template<class ContainerAllocator> struct IsMessage< ::visp_tracker::MovingEdgeSites_<ContainerAllocator> const> : public TrueType {};
00069 template<class ContainerAllocator>
00070 struct MD5Sum< ::visp_tracker::MovingEdgeSites_<ContainerAllocator> > {
00071 static const char* value()
00072 {
00073 return "5293e8601467590a0dabbb34da47310c";
00074 }
00075
00076 static const char* value(const ::visp_tracker::MovingEdgeSites_<ContainerAllocator> &) { return value(); }
00077 static const uint64_t static_value1 = 0x5293e8601467590aULL;
00078 static const uint64_t static_value2 = 0x0dabbb34da47310cULL;
00079 };
00080
00081 template<class ContainerAllocator>
00082 struct DataType< ::visp_tracker::MovingEdgeSites_<ContainerAllocator> > {
00083 static const char* value()
00084 {
00085 return "visp_tracker/MovingEdgeSites";
00086 }
00087
00088 static const char* value(const ::visp_tracker::MovingEdgeSites_<ContainerAllocator> &) { return value(); }
00089 };
00090
00091 template<class ContainerAllocator>
00092 struct Definition< ::visp_tracker::MovingEdgeSites_<ContainerAllocator> > {
00093 static const char* value()
00094 {
00095 return "# Stamped list of moving edge positions.\n\
00096 #\n\
00097 # Moving edge positions associated with a particular timestamp.\n\
00098 # Used by the viewer to display moving edge positions and allow\n\
00099 # tracking debug.\n\
00100 \n\
00101 Header header # Header (required for synchronization).\n\
00102 MovingEdgeSite[] moving_edge_sites # List of moving dge sites (i.e. positions).\n\
00103 \n\
00104 ================================================================================\n\
00105 MSG: std_msgs/Header\n\
00106 # Standard metadata for higher-level stamped data types.\n\
00107 # This is generally used to communicate timestamped data \n\
00108 # in a particular coordinate frame.\n\
00109 # \n\
00110 # sequence ID: consecutively increasing ID \n\
00111 uint32 seq\n\
00112 #Two-integer timestamp that is expressed as:\n\
00113 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00114 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00115 # time-handling sugar is provided by the client library\n\
00116 time stamp\n\
00117 #Frame this data is associated with\n\
00118 # 0: no frame\n\
00119 # 1: global frame\n\
00120 string frame_id\n\
00121 \n\
00122 ================================================================================\n\
00123 MSG: visp_tracker/MovingEdgeSite\n\
00124 # Moving edge position.\n\
00125 \n\
00126 float64 x # X position in the image\n\
00127 float64 y # Y position in the image\n\
00128 int32 suppress # Is the moving edge valid?\n\
00129 # - 0: yes\n\
00130 # - 1: no, constrast check has failed.\n\
00131 # - 2: no, threshold check has failed.\n\
00132 # - 3: no, M-estimator check has failed.\n\
00133 # - >=4: no, undocumented reason.\n\
00134 \n\
00135 ";
00136 }
00137
00138 static const char* value(const ::visp_tracker::MovingEdgeSites_<ContainerAllocator> &) { return value(); }
00139 };
00140
00141 template<class ContainerAllocator> struct HasHeader< ::visp_tracker::MovingEdgeSites_<ContainerAllocator> > : public TrueType {};
00142 template<class ContainerAllocator> struct HasHeader< const ::visp_tracker::MovingEdgeSites_<ContainerAllocator> > : public TrueType {};
00143 }
00144 }
00145
00146 namespace ros
00147 {
00148 namespace serialization
00149 {
00150
00151 template<class ContainerAllocator> struct Serializer< ::visp_tracker::MovingEdgeSites_<ContainerAllocator> >
00152 {
00153 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00154 {
00155 stream.next(m.header);
00156 stream.next(m.moving_edge_sites);
00157 }
00158
00159 ROS_DECLARE_ALLINONE_SERIALIZER;
00160 };
00161 }
00162 }
00163
00164 namespace ros
00165 {
00166 namespace message_operations
00167 {
00168
00169 template<class ContainerAllocator>
00170 struct Printer< ::visp_tracker::MovingEdgeSites_<ContainerAllocator> >
00171 {
00172 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::visp_tracker::MovingEdgeSites_<ContainerAllocator> & v)
00173 {
00174 s << indent << "header: ";
00175 s << std::endl;
00176 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header);
00177 s << indent << "moving_edge_sites[]" << std::endl;
00178 for (size_t i = 0; i < v.moving_edge_sites.size(); ++i)
00179 {
00180 s << indent << " moving_edge_sites[" << i << "]: ";
00181 s << std::endl;
00182 s << indent;
00183 Printer< ::visp_tracker::MovingEdgeSite_<ContainerAllocator> >::stream(s, indent + " ", v.moving_edge_sites[i]);
00184 }
00185 }
00186 };
00187
00188
00189 }
00190 }
00191
00192 #endif // VISP_TRACKER_MESSAGE_MOVINGEDGESITES_H
00193