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 <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 image_cb_detector
00015 {
00016 template <class ContainerAllocator>
00017 struct ConfigGoal_ : public ros::Message
00018 {
00019 typedef ConfigGoal_<ContainerAllocator> Type;
00020
00021 ConfigGoal_()
00022 : num_x(0)
00023 , num_y(0)
00024 , spacing_x(0.0)
00025 , spacing_y(0.0)
00026 , width_scaling(0.0)
00027 , height_scaling(0.0)
00028 , subpixel_window(0)
00029 , subpixel_zero_zone(0)
00030 {
00031 }
00032
00033 ConfigGoal_(const ContainerAllocator& _alloc)
00034 : num_x(0)
00035 , num_y(0)
00036 , spacing_x(0.0)
00037 , spacing_y(0.0)
00038 , width_scaling(0.0)
00039 , height_scaling(0.0)
00040 , subpixel_window(0)
00041 , subpixel_zero_zone(0)
00042 {
00043 }
00044
00045 typedef uint32_t _num_x_type;
00046 uint32_t num_x;
00047
00048 typedef uint32_t _num_y_type;
00049 uint32_t num_y;
00050
00051 typedef float _spacing_x_type;
00052 float spacing_x;
00053
00054 typedef float _spacing_y_type;
00055 float spacing_y;
00056
00057 typedef float _width_scaling_type;
00058 float width_scaling;
00059
00060 typedef float _height_scaling_type;
00061 float height_scaling;
00062
00063 typedef uint32_t _subpixel_window_type;
00064 uint32_t subpixel_window;
00065
00066 typedef int32_t _subpixel_zero_zone_type;
00067 int32_t subpixel_zero_zone;
00068
00069
00070 private:
00071 static const char* __s_getDataType_() { return "image_cb_detector/ConfigGoal"; }
00072 public:
00073 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00074
00075 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00076
00077 private:
00078 static const char* __s_getMD5Sum_() { return "fea383eb01c98da472f0666371ce7fb2"; }
00079 public:
00080 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00081
00082 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00083
00084 private:
00085 static const char* __s_getMessageDefinition_() { return "uint32 num_x # Number of checkerboard corners in the X direction\n\
00086 uint32 num_y # Number of corners in the Y direction\n\
00087 float32 spacing_x # Spacing between corners in the X direction (meters)\n\
00088 float32 spacing_y # Spacing between corners in the Y direction (meters)\n\
00089 \n\
00090 # Specify how many times we want to upsample the image.\n\
00091 # This is often useful for detecting small checkerboards far away\n\
00092 float32 width_scaling\n\
00093 float32 height_scaling\n\
00094 \n\
00095 # Configure openCV's subpixel corner detector\n\
00096 uint32 subpixel_window\n\
00097 int32 subpixel_zero_zone\n\
00098 \n\
00099 \n\
00100 "; }
00101 public:
00102 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00103
00104 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00105
00106 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00107 {
00108 ros::serialization::OStream stream(write_ptr, 1000000000);
00109 ros::serialization::serialize(stream, num_x);
00110 ros::serialization::serialize(stream, num_y);
00111 ros::serialization::serialize(stream, spacing_x);
00112 ros::serialization::serialize(stream, spacing_y);
00113 ros::serialization::serialize(stream, width_scaling);
00114 ros::serialization::serialize(stream, height_scaling);
00115 ros::serialization::serialize(stream, subpixel_window);
00116 ros::serialization::serialize(stream, subpixel_zero_zone);
00117 return stream.getData();
00118 }
00119
00120 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00121 {
00122 ros::serialization::IStream stream(read_ptr, 1000000000);
00123 ros::serialization::deserialize(stream, num_x);
00124 ros::serialization::deserialize(stream, num_y);
00125 ros::serialization::deserialize(stream, spacing_x);
00126 ros::serialization::deserialize(stream, spacing_y);
00127 ros::serialization::deserialize(stream, width_scaling);
00128 ros::serialization::deserialize(stream, height_scaling);
00129 ros::serialization::deserialize(stream, subpixel_window);
00130 ros::serialization::deserialize(stream, subpixel_zero_zone);
00131 return stream.getData();
00132 }
00133
00134 ROS_DEPRECATED virtual uint32_t serializationLength() const
00135 {
00136 uint32_t size = 0;
00137 size += ros::serialization::serializationLength(num_x);
00138 size += ros::serialization::serializationLength(num_y);
00139 size += ros::serialization::serializationLength(spacing_x);
00140 size += ros::serialization::serializationLength(spacing_y);
00141 size += ros::serialization::serializationLength(width_scaling);
00142 size += ros::serialization::serializationLength(height_scaling);
00143 size += ros::serialization::serializationLength(subpixel_window);
00144 size += ros::serialization::serializationLength(subpixel_zero_zone);
00145 return size;
00146 }
00147
00148 typedef boost::shared_ptr< ::image_cb_detector::ConfigGoal_<ContainerAllocator> > Ptr;
00149 typedef boost::shared_ptr< ::image_cb_detector::ConfigGoal_<ContainerAllocator> const> ConstPtr;
00150 };
00151 typedef ::image_cb_detector::ConfigGoal_<std::allocator<void> > ConfigGoal;
00152
00153 typedef boost::shared_ptr< ::image_cb_detector::ConfigGoal> ConfigGoalPtr;
00154 typedef boost::shared_ptr< ::image_cb_detector::ConfigGoal const> ConfigGoalConstPtr;
00155
00156
00157 template<typename ContainerAllocator>
00158 std::ostream& operator<<(std::ostream& s, const ::image_cb_detector::ConfigGoal_<ContainerAllocator> & v)
00159 {
00160 ros::message_operations::Printer< ::image_cb_detector::ConfigGoal_<ContainerAllocator> >::stream(s, "", v);
00161 return s;}
00162
00163 }
00164
00165 namespace ros
00166 {
00167 namespace message_traits
00168 {
00169 template<class ContainerAllocator>
00170 struct MD5Sum< ::image_cb_detector::ConfigGoal_<ContainerAllocator> > {
00171 static const char* value()
00172 {
00173 return "fea383eb01c98da472f0666371ce7fb2";
00174 }
00175
00176 static const char* value(const ::image_cb_detector::ConfigGoal_<ContainerAllocator> &) { return value(); }
00177 static const uint64_t static_value1 = 0xfea383eb01c98da4ULL;
00178 static const uint64_t static_value2 = 0x72f0666371ce7fb2ULL;
00179 };
00180
00181 template<class ContainerAllocator>
00182 struct DataType< ::image_cb_detector::ConfigGoal_<ContainerAllocator> > {
00183 static const char* value()
00184 {
00185 return "image_cb_detector/ConfigGoal";
00186 }
00187
00188 static const char* value(const ::image_cb_detector::ConfigGoal_<ContainerAllocator> &) { return value(); }
00189 };
00190
00191 template<class ContainerAllocator>
00192 struct Definition< ::image_cb_detector::ConfigGoal_<ContainerAllocator> > {
00193 static const char* value()
00194 {
00195 return "uint32 num_x # Number of checkerboard corners in the X direction\n\
00196 uint32 num_y # Number of corners in the Y direction\n\
00197 float32 spacing_x # Spacing between corners in the X direction (meters)\n\
00198 float32 spacing_y # Spacing between corners in the Y direction (meters)\n\
00199 \n\
00200 # Specify how many times we want to upsample the image.\n\
00201 # This is often useful for detecting small checkerboards far away\n\
00202 float32 width_scaling\n\
00203 float32 height_scaling\n\
00204 \n\
00205 # Configure openCV's subpixel corner detector\n\
00206 uint32 subpixel_window\n\
00207 int32 subpixel_zero_zone\n\
00208 \n\
00209 \n\
00210 ";
00211 }
00212
00213 static const char* value(const ::image_cb_detector::ConfigGoal_<ContainerAllocator> &) { return value(); }
00214 };
00215
00216 template<class ContainerAllocator> struct IsFixedSize< ::image_cb_detector::ConfigGoal_<ContainerAllocator> > : public TrueType {};
00217 }
00218 }
00219
00220 namespace ros
00221 {
00222 namespace serialization
00223 {
00224
00225 template<class ContainerAllocator> struct Serializer< ::image_cb_detector::ConfigGoal_<ContainerAllocator> >
00226 {
00227 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00228 {
00229 stream.next(m.num_x);
00230 stream.next(m.num_y);
00231 stream.next(m.spacing_x);
00232 stream.next(m.spacing_y);
00233 stream.next(m.width_scaling);
00234 stream.next(m.height_scaling);
00235 stream.next(m.subpixel_window);
00236 stream.next(m.subpixel_zero_zone);
00237 }
00238
00239 ROS_DECLARE_ALLINONE_SERIALIZER;
00240 };
00241 }
00242 }
00243
00244 namespace ros
00245 {
00246 namespace message_operations
00247 {
00248
00249 template<class ContainerAllocator>
00250 struct Printer< ::image_cb_detector::ConfigGoal_<ContainerAllocator> >
00251 {
00252 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::image_cb_detector::ConfigGoal_<ContainerAllocator> & v)
00253 {
00254 s << indent << "num_x: ";
00255 Printer<uint32_t>::stream(s, indent + " ", v.num_x);
00256 s << indent << "num_y: ";
00257 Printer<uint32_t>::stream(s, indent + " ", v.num_y);
00258 s << indent << "spacing_x: ";
00259 Printer<float>::stream(s, indent + " ", v.spacing_x);
00260 s << indent << "spacing_y: ";
00261 Printer<float>::stream(s, indent + " ", v.spacing_y);
00262 s << indent << "width_scaling: ";
00263 Printer<float>::stream(s, indent + " ", v.width_scaling);
00264 s << indent << "height_scaling: ";
00265 Printer<float>::stream(s, indent + " ", v.height_scaling);
00266 s << indent << "subpixel_window: ";
00267 Printer<uint32_t>::stream(s, indent + " ", v.subpixel_window);
00268 s << indent << "subpixel_zero_zone: ";
00269 Printer<int32_t>::stream(s, indent + " ", v.subpixel_zero_zone);
00270 }
00271 };
00272
00273
00274 }
00275 }
00276
00277 #endif // IMAGE_CB_DETECTOR_MESSAGE_CONFIGGOAL_H
00278