$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-pr2_calibration/doc_stacks/2013-03-01_16-35-11.769043/pr2_calibration/image_cb_detector/msg/ConfigGoal.msg */ 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 private: 00074 static const char* __s_getDataType_() { return "image_cb_detector/ConfigGoal"; } 00075 public: 00076 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00077 00078 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00079 00080 private: 00081 static const char* __s_getMD5Sum_() { return "fea383eb01c98da472f0666371ce7fb2"; } 00082 public: 00083 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00084 00085 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00086 00087 private: 00088 static const char* __s_getMessageDefinition_() { return "uint32 num_x # Number of checkerboard corners in the X direction\n\ 00089 uint32 num_y # Number of corners in the Y direction\n\ 00090 float32 spacing_x # Spacing between corners in the X direction (meters)\n\ 00091 float32 spacing_y # Spacing between corners in the Y direction (meters)\n\ 00092 \n\ 00093 # Specify how many times we want to upsample the image.\n\ 00094 # This is often useful for detecting small checkerboards far away\n\ 00095 float32 width_scaling\n\ 00096 float32 height_scaling\n\ 00097 \n\ 00098 # Configure openCV's subpixel corner detector\n\ 00099 uint32 subpixel_window\n\ 00100 int32 subpixel_zero_zone\n\ 00101 \n\ 00102 \n\ 00103 "; } 00104 public: 00105 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00106 00107 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00108 00109 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00110 { 00111 ros::serialization::OStream stream(write_ptr, 1000000000); 00112 ros::serialization::serialize(stream, num_x); 00113 ros::serialization::serialize(stream, num_y); 00114 ros::serialization::serialize(stream, spacing_x); 00115 ros::serialization::serialize(stream, spacing_y); 00116 ros::serialization::serialize(stream, width_scaling); 00117 ros::serialization::serialize(stream, height_scaling); 00118 ros::serialization::serialize(stream, subpixel_window); 00119 ros::serialization::serialize(stream, subpixel_zero_zone); 00120 return stream.getData(); 00121 } 00122 00123 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00124 { 00125 ros::serialization::IStream stream(read_ptr, 1000000000); 00126 ros::serialization::deserialize(stream, num_x); 00127 ros::serialization::deserialize(stream, num_y); 00128 ros::serialization::deserialize(stream, spacing_x); 00129 ros::serialization::deserialize(stream, spacing_y); 00130 ros::serialization::deserialize(stream, width_scaling); 00131 ros::serialization::deserialize(stream, height_scaling); 00132 ros::serialization::deserialize(stream, subpixel_window); 00133 ros::serialization::deserialize(stream, subpixel_zero_zone); 00134 return stream.getData(); 00135 } 00136 00137 ROS_DEPRECATED virtual uint32_t serializationLength() const 00138 { 00139 uint32_t size = 0; 00140 size += ros::serialization::serializationLength(num_x); 00141 size += ros::serialization::serializationLength(num_y); 00142 size += ros::serialization::serializationLength(spacing_x); 00143 size += ros::serialization::serializationLength(spacing_y); 00144 size += ros::serialization::serializationLength(width_scaling); 00145 size += ros::serialization::serializationLength(height_scaling); 00146 size += ros::serialization::serializationLength(subpixel_window); 00147 size += ros::serialization::serializationLength(subpixel_zero_zone); 00148 return size; 00149 } 00150 00151 typedef boost::shared_ptr< ::image_cb_detector::ConfigGoal_<ContainerAllocator> > Ptr; 00152 typedef boost::shared_ptr< ::image_cb_detector::ConfigGoal_<ContainerAllocator> const> ConstPtr; 00153 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00154 }; // struct ConfigGoal 00155 typedef ::image_cb_detector::ConfigGoal_<std::allocator<void> > ConfigGoal; 00156 00157 typedef boost::shared_ptr< ::image_cb_detector::ConfigGoal> ConfigGoalPtr; 00158 typedef boost::shared_ptr< ::image_cb_detector::ConfigGoal const> ConfigGoalConstPtr; 00159 00160 00161 template<typename ContainerAllocator> 00162 std::ostream& operator<<(std::ostream& s, const ::image_cb_detector::ConfigGoal_<ContainerAllocator> & v) 00163 { 00164 ros::message_operations::Printer< ::image_cb_detector::ConfigGoal_<ContainerAllocator> >::stream(s, "", v); 00165 return s;} 00166 00167 } // namespace image_cb_detector 00168 00169 namespace ros 00170 { 00171 namespace message_traits 00172 { 00173 template<class ContainerAllocator> struct IsMessage< ::image_cb_detector::ConfigGoal_<ContainerAllocator> > : public TrueType {}; 00174 template<class ContainerAllocator> struct IsMessage< ::image_cb_detector::ConfigGoal_<ContainerAllocator> const> : public TrueType {}; 00175 template<class ContainerAllocator> 00176 struct MD5Sum< ::image_cb_detector::ConfigGoal_<ContainerAllocator> > { 00177 static const char* value() 00178 { 00179 return "fea383eb01c98da472f0666371ce7fb2"; 00180 } 00181 00182 static const char* value(const ::image_cb_detector::ConfigGoal_<ContainerAllocator> &) { return value(); } 00183 static const uint64_t static_value1 = 0xfea383eb01c98da4ULL; 00184 static const uint64_t static_value2 = 0x72f0666371ce7fb2ULL; 00185 }; 00186 00187 template<class ContainerAllocator> 00188 struct DataType< ::image_cb_detector::ConfigGoal_<ContainerAllocator> > { 00189 static const char* value() 00190 { 00191 return "image_cb_detector/ConfigGoal"; 00192 } 00193 00194 static const char* value(const ::image_cb_detector::ConfigGoal_<ContainerAllocator> &) { return value(); } 00195 }; 00196 00197 template<class ContainerAllocator> 00198 struct Definition< ::image_cb_detector::ConfigGoal_<ContainerAllocator> > { 00199 static const char* value() 00200 { 00201 return "uint32 num_x # Number of checkerboard corners in the X direction\n\ 00202 uint32 num_y # Number of corners in the Y direction\n\ 00203 float32 spacing_x # Spacing between corners in the X direction (meters)\n\ 00204 float32 spacing_y # Spacing between corners in the Y direction (meters)\n\ 00205 \n\ 00206 # Specify how many times we want to upsample the image.\n\ 00207 # This is often useful for detecting small checkerboards far away\n\ 00208 float32 width_scaling\n\ 00209 float32 height_scaling\n\ 00210 \n\ 00211 # Configure openCV's subpixel corner detector\n\ 00212 uint32 subpixel_window\n\ 00213 int32 subpixel_zero_zone\n\ 00214 \n\ 00215 \n\ 00216 "; 00217 } 00218 00219 static const char* value(const ::image_cb_detector::ConfigGoal_<ContainerAllocator> &) { return value(); } 00220 }; 00221 00222 template<class ContainerAllocator> struct IsFixedSize< ::image_cb_detector::ConfigGoal_<ContainerAllocator> > : public TrueType {}; 00223 } // namespace message_traits 00224 } // namespace ros 00225 00226 namespace ros 00227 { 00228 namespace serialization 00229 { 00230 00231 template<class ContainerAllocator> struct Serializer< ::image_cb_detector::ConfigGoal_<ContainerAllocator> > 00232 { 00233 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00234 { 00235 stream.next(m.num_x); 00236 stream.next(m.num_y); 00237 stream.next(m.spacing_x); 00238 stream.next(m.spacing_y); 00239 stream.next(m.width_scaling); 00240 stream.next(m.height_scaling); 00241 stream.next(m.subpixel_window); 00242 stream.next(m.subpixel_zero_zone); 00243 } 00244 00245 ROS_DECLARE_ALLINONE_SERIALIZER; 00246 }; // struct ConfigGoal_ 00247 } // namespace serialization 00248 } // namespace ros 00249 00250 namespace ros 00251 { 00252 namespace message_operations 00253 { 00254 00255 template<class ContainerAllocator> 00256 struct Printer< ::image_cb_detector::ConfigGoal_<ContainerAllocator> > 00257 { 00258 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::image_cb_detector::ConfigGoal_<ContainerAllocator> & v) 00259 { 00260 s << indent << "num_x: "; 00261 Printer<uint32_t>::stream(s, indent + " ", v.num_x); 00262 s << indent << "num_y: "; 00263 Printer<uint32_t>::stream(s, indent + " ", v.num_y); 00264 s << indent << "spacing_x: "; 00265 Printer<float>::stream(s, indent + " ", v.spacing_x); 00266 s << indent << "spacing_y: "; 00267 Printer<float>::stream(s, indent + " ", v.spacing_y); 00268 s << indent << "width_scaling: "; 00269 Printer<float>::stream(s, indent + " ", v.width_scaling); 00270 s << indent << "height_scaling: "; 00271 Printer<float>::stream(s, indent + " ", v.height_scaling); 00272 s << indent << "subpixel_window: "; 00273 Printer<uint32_t>::stream(s, indent + " ", v.subpixel_window); 00274 s << indent << "subpixel_zero_zone: "; 00275 Printer<int32_t>::stream(s, indent + " ", v.subpixel_zero_zone); 00276 } 00277 }; 00278 00279 00280 } // namespace message_operations 00281 } // namespace ros 00282 00283 #endif // IMAGE_CB_DETECTOR_MESSAGE_CONFIGGOAL_H 00284