Go to the documentation of this file.00001
00002 #ifndef IMAGE_CB_DETECTOR_MESSAGE_CONFIGGOAL_H
00003 #define IMAGE_CB_DETECTOR_MESSAGE_CONFIGGOAL_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 image_cb_detector
00019 {
00020 template <class ContainerAllocator>
00021 struct ConfigGoal_ {
00022 typedef ConfigGoal_<ContainerAllocator> Type;
00023
00024 ConfigGoal_()
00025 : num_x(0)
00026 , num_y(0)
00027 , spacing_x(0.0)
00028 , spacing_y(0.0)
00029 , width_scaling(0.0)
00030 , height_scaling(0.0)
00031 , subpixel_window(0)
00032 , subpixel_zero_zone(0)
00033 {
00034 }
00035
00036 ConfigGoal_(const ContainerAllocator& _alloc)
00037 : num_x(0)
00038 , num_y(0)
00039 , spacing_x(0.0)
00040 , spacing_y(0.0)
00041 , width_scaling(0.0)
00042 , height_scaling(0.0)
00043 , subpixel_window(0)
00044 , subpixel_zero_zone(0)
00045 {
00046 }
00047
00048 typedef uint32_t _num_x_type;
00049 uint32_t num_x;
00050
00051 typedef uint32_t _num_y_type;
00052 uint32_t num_y;
00053
00054 typedef float _spacing_x_type;
00055 float spacing_x;
00056
00057 typedef float _spacing_y_type;
00058 float spacing_y;
00059
00060 typedef float _width_scaling_type;
00061 float width_scaling;
00062
00063 typedef float _height_scaling_type;
00064 float height_scaling;
00065
00066 typedef uint32_t _subpixel_window_type;
00067 uint32_t subpixel_window;
00068
00069 typedef int32_t _subpixel_zero_zone_type;
00070 int32_t subpixel_zero_zone;
00071
00072
00073 typedef boost::shared_ptr< ::image_cb_detector::ConfigGoal_<ContainerAllocator> > Ptr;
00074 typedef boost::shared_ptr< ::image_cb_detector::ConfigGoal_<ContainerAllocator> const> ConstPtr;
00075 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00076 };
00077 typedef ::image_cb_detector::ConfigGoal_<std::allocator<void> > ConfigGoal;
00078
00079 typedef boost::shared_ptr< ::image_cb_detector::ConfigGoal> ConfigGoalPtr;
00080 typedef boost::shared_ptr< ::image_cb_detector::ConfigGoal const> ConfigGoalConstPtr;
00081
00082
00083 template<typename ContainerAllocator>
00084 std::ostream& operator<<(std::ostream& s, const ::image_cb_detector::ConfigGoal_<ContainerAllocator> & v)
00085 {
00086 ros::message_operations::Printer< ::image_cb_detector::ConfigGoal_<ContainerAllocator> >::stream(s, "", v);
00087 return s;}
00088
00089 }
00090
00091 namespace ros
00092 {
00093 namespace message_traits
00094 {
00095 template<class ContainerAllocator> struct IsMessage< ::image_cb_detector::ConfigGoal_<ContainerAllocator> > : public TrueType {};
00096 template<class ContainerAllocator> struct IsMessage< ::image_cb_detector::ConfigGoal_<ContainerAllocator> const> : public TrueType {};
00097 template<class ContainerAllocator>
00098 struct MD5Sum< ::image_cb_detector::ConfigGoal_<ContainerAllocator> > {
00099 static const char* value()
00100 {
00101 return "fea383eb01c98da472f0666371ce7fb2";
00102 }
00103
00104 static const char* value(const ::image_cb_detector::ConfigGoal_<ContainerAllocator> &) { return value(); }
00105 static const uint64_t static_value1 = 0xfea383eb01c98da4ULL;
00106 static const uint64_t static_value2 = 0x72f0666371ce7fb2ULL;
00107 };
00108
00109 template<class ContainerAllocator>
00110 struct DataType< ::image_cb_detector::ConfigGoal_<ContainerAllocator> > {
00111 static const char* value()
00112 {
00113 return "image_cb_detector/ConfigGoal";
00114 }
00115
00116 static const char* value(const ::image_cb_detector::ConfigGoal_<ContainerAllocator> &) { return value(); }
00117 };
00118
00119 template<class ContainerAllocator>
00120 struct Definition< ::image_cb_detector::ConfigGoal_<ContainerAllocator> > {
00121 static const char* value()
00122 {
00123 return "uint32 num_x # Number of checkerboard corners in the X direction\n\
00124 uint32 num_y # Number of corners in the Y direction\n\
00125 float32 spacing_x # Spacing between corners in the X direction (meters)\n\
00126 float32 spacing_y # Spacing between corners in the Y direction (meters)\n\
00127 \n\
00128 # Specify how many times we want to upsample the image.\n\
00129 # This is often useful for detecting small checkerboards far away\n\
00130 float32 width_scaling\n\
00131 float32 height_scaling\n\
00132 \n\
00133 # Configure openCV's subpixel corner detector\n\
00134 uint32 subpixel_window\n\
00135 int32 subpixel_zero_zone\n\
00136 \n\
00137 \n\
00138 ";
00139 }
00140
00141 static const char* value(const ::image_cb_detector::ConfigGoal_<ContainerAllocator> &) { return value(); }
00142 };
00143
00144 template<class ContainerAllocator> struct IsFixedSize< ::image_cb_detector::ConfigGoal_<ContainerAllocator> > : public TrueType {};
00145 }
00146 }
00147
00148 namespace ros
00149 {
00150 namespace serialization
00151 {
00152
00153 template<class ContainerAllocator> struct Serializer< ::image_cb_detector::ConfigGoal_<ContainerAllocator> >
00154 {
00155 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00156 {
00157 stream.next(m.num_x);
00158 stream.next(m.num_y);
00159 stream.next(m.spacing_x);
00160 stream.next(m.spacing_y);
00161 stream.next(m.width_scaling);
00162 stream.next(m.height_scaling);
00163 stream.next(m.subpixel_window);
00164 stream.next(m.subpixel_zero_zone);
00165 }
00166
00167 ROS_DECLARE_ALLINONE_SERIALIZER;
00168 };
00169 }
00170 }
00171
00172 namespace ros
00173 {
00174 namespace message_operations
00175 {
00176
00177 template<class ContainerAllocator>
00178 struct Printer< ::image_cb_detector::ConfigGoal_<ContainerAllocator> >
00179 {
00180 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::image_cb_detector::ConfigGoal_<ContainerAllocator> & v)
00181 {
00182 s << indent << "num_x: ";
00183 Printer<uint32_t>::stream(s, indent + " ", v.num_x);
00184 s << indent << "num_y: ";
00185 Printer<uint32_t>::stream(s, indent + " ", v.num_y);
00186 s << indent << "spacing_x: ";
00187 Printer<float>::stream(s, indent + " ", v.spacing_x);
00188 s << indent << "spacing_y: ";
00189 Printer<float>::stream(s, indent + " ", v.spacing_y);
00190 s << indent << "width_scaling: ";
00191 Printer<float>::stream(s, indent + " ", v.width_scaling);
00192 s << indent << "height_scaling: ";
00193 Printer<float>::stream(s, indent + " ", v.height_scaling);
00194 s << indent << "subpixel_window: ";
00195 Printer<uint32_t>::stream(s, indent + " ", v.subpixel_window);
00196 s << indent << "subpixel_zero_zone: ";
00197 Printer<int32_t>::stream(s, indent + " ", v.subpixel_zero_zone);
00198 }
00199 };
00200
00201
00202 }
00203 }
00204
00205 #endif // IMAGE_CB_DETECTOR_MESSAGE_CONFIGGOAL_H
00206