$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/laser_cb_detector/msg/ConfigGoal.msg */ 00002 #ifndef LASER_CB_DETECTOR_MESSAGE_CONFIGGOAL_H 00003 #define LASER_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 laser_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 , min_intensity(0.0) 00032 , max_intensity(0.0) 00033 , subpixel_window(0) 00034 , subpixel_zero_zone(0) 00035 , flip_horizontal(0) 00036 { 00037 } 00038 00039 ConfigGoal_(const ContainerAllocator& _alloc) 00040 : num_x(0) 00041 , num_y(0) 00042 , spacing_x(0.0) 00043 , spacing_y(0.0) 00044 , width_scaling(0.0) 00045 , height_scaling(0.0) 00046 , min_intensity(0.0) 00047 , max_intensity(0.0) 00048 , subpixel_window(0) 00049 , subpixel_zero_zone(0) 00050 , flip_horizontal(0) 00051 { 00052 } 00053 00054 typedef uint32_t _num_x_type; 00055 uint32_t num_x; 00056 00057 typedef uint32_t _num_y_type; 00058 uint32_t num_y; 00059 00060 typedef float _spacing_x_type; 00061 float spacing_x; 00062 00063 typedef float _spacing_y_type; 00064 float spacing_y; 00065 00066 typedef float _width_scaling_type; 00067 float width_scaling; 00068 00069 typedef float _height_scaling_type; 00070 float height_scaling; 00071 00072 typedef float _min_intensity_type; 00073 float min_intensity; 00074 00075 typedef float _max_intensity_type; 00076 float max_intensity; 00077 00078 typedef uint32_t _subpixel_window_type; 00079 uint32_t subpixel_window; 00080 00081 typedef int32_t _subpixel_zero_zone_type; 00082 int32_t subpixel_zero_zone; 00083 00084 typedef uint8_t _flip_horizontal_type; 00085 uint8_t flip_horizontal; 00086 00087 00088 private: 00089 static const char* __s_getDataType_() { return "laser_cb_detector/ConfigGoal"; } 00090 public: 00091 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00092 00093 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00094 00095 private: 00096 static const char* __s_getMD5Sum_() { return "d592564bc71ebb8458e3d0d3a079d731"; } 00097 public: 00098 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00099 00100 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00101 00102 private: 00103 static const char* __s_getMessageDefinition_() { return "uint32 num_x # Number of checkerboard corners in the X direction\n\ 00104 uint32 num_y # Number of corners in the Y direction\n\ 00105 float32 spacing_x # Spacing between corners in the X direction (meters)\n\ 00106 float32 spacing_y # Spacing between corners in the Y direction (meters)\n\ 00107 \n\ 00108 # Specify how many times we want to upsample the image.\n\ 00109 # This is often useful for detecting small checkerboards far away\n\ 00110 float32 width_scaling\n\ 00111 float32 height_scaling\n\ 00112 \n\ 00113 # Specifiy how intensity maps into a uint8. A specified window of\n\ 00114 # intensities is linearly scaled to 0-255\n\ 00115 float32 min_intensity\n\ 00116 float32 max_intensity\n\ 00117 \n\ 00118 # Configure openCV's subpixel corner detector\n\ 00119 uint32 subpixel_window\n\ 00120 int32 subpixel_zero_zone\n\ 00121 \n\ 00122 # Specify if we need to flip snapshot image model. This is usually necessary\n\ 00123 # when the laser scans from right to left, since this is the opposite of images,\n\ 00124 # which are normally indexed left to right\n\ 00125 uint8 flip_horizontal\n\ 00126 \n\ 00127 \n\ 00128 "; } 00129 public: 00130 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00131 00132 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00133 00134 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00135 { 00136 ros::serialization::OStream stream(write_ptr, 1000000000); 00137 ros::serialization::serialize(stream, num_x); 00138 ros::serialization::serialize(stream, num_y); 00139 ros::serialization::serialize(stream, spacing_x); 00140 ros::serialization::serialize(stream, spacing_y); 00141 ros::serialization::serialize(stream, width_scaling); 00142 ros::serialization::serialize(stream, height_scaling); 00143 ros::serialization::serialize(stream, min_intensity); 00144 ros::serialization::serialize(stream, max_intensity); 00145 ros::serialization::serialize(stream, subpixel_window); 00146 ros::serialization::serialize(stream, subpixel_zero_zone); 00147 ros::serialization::serialize(stream, flip_horizontal); 00148 return stream.getData(); 00149 } 00150 00151 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00152 { 00153 ros::serialization::IStream stream(read_ptr, 1000000000); 00154 ros::serialization::deserialize(stream, num_x); 00155 ros::serialization::deserialize(stream, num_y); 00156 ros::serialization::deserialize(stream, spacing_x); 00157 ros::serialization::deserialize(stream, spacing_y); 00158 ros::serialization::deserialize(stream, width_scaling); 00159 ros::serialization::deserialize(stream, height_scaling); 00160 ros::serialization::deserialize(stream, min_intensity); 00161 ros::serialization::deserialize(stream, max_intensity); 00162 ros::serialization::deserialize(stream, subpixel_window); 00163 ros::serialization::deserialize(stream, subpixel_zero_zone); 00164 ros::serialization::deserialize(stream, flip_horizontal); 00165 return stream.getData(); 00166 } 00167 00168 ROS_DEPRECATED virtual uint32_t serializationLength() const 00169 { 00170 uint32_t size = 0; 00171 size += ros::serialization::serializationLength(num_x); 00172 size += ros::serialization::serializationLength(num_y); 00173 size += ros::serialization::serializationLength(spacing_x); 00174 size += ros::serialization::serializationLength(spacing_y); 00175 size += ros::serialization::serializationLength(width_scaling); 00176 size += ros::serialization::serializationLength(height_scaling); 00177 size += ros::serialization::serializationLength(min_intensity); 00178 size += ros::serialization::serializationLength(max_intensity); 00179 size += ros::serialization::serializationLength(subpixel_window); 00180 size += ros::serialization::serializationLength(subpixel_zero_zone); 00181 size += ros::serialization::serializationLength(flip_horizontal); 00182 return size; 00183 } 00184 00185 typedef boost::shared_ptr< ::laser_cb_detector::ConfigGoal_<ContainerAllocator> > Ptr; 00186 typedef boost::shared_ptr< ::laser_cb_detector::ConfigGoal_<ContainerAllocator> const> ConstPtr; 00187 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00188 }; // struct ConfigGoal 00189 typedef ::laser_cb_detector::ConfigGoal_<std::allocator<void> > ConfigGoal; 00190 00191 typedef boost::shared_ptr< ::laser_cb_detector::ConfigGoal> ConfigGoalPtr; 00192 typedef boost::shared_ptr< ::laser_cb_detector::ConfigGoal const> ConfigGoalConstPtr; 00193 00194 00195 template<typename ContainerAllocator> 00196 std::ostream& operator<<(std::ostream& s, const ::laser_cb_detector::ConfigGoal_<ContainerAllocator> & v) 00197 { 00198 ros::message_operations::Printer< ::laser_cb_detector::ConfigGoal_<ContainerAllocator> >::stream(s, "", v); 00199 return s;} 00200 00201 } // namespace laser_cb_detector 00202 00203 namespace ros 00204 { 00205 namespace message_traits 00206 { 00207 template<class ContainerAllocator> struct IsMessage< ::laser_cb_detector::ConfigGoal_<ContainerAllocator> > : public TrueType {}; 00208 template<class ContainerAllocator> struct IsMessage< ::laser_cb_detector::ConfigGoal_<ContainerAllocator> const> : public TrueType {}; 00209 template<class ContainerAllocator> 00210 struct MD5Sum< ::laser_cb_detector::ConfigGoal_<ContainerAllocator> > { 00211 static const char* value() 00212 { 00213 return "d592564bc71ebb8458e3d0d3a079d731"; 00214 } 00215 00216 static const char* value(const ::laser_cb_detector::ConfigGoal_<ContainerAllocator> &) { return value(); } 00217 static const uint64_t static_value1 = 0xd592564bc71ebb84ULL; 00218 static const uint64_t static_value2 = 0x58e3d0d3a079d731ULL; 00219 }; 00220 00221 template<class ContainerAllocator> 00222 struct DataType< ::laser_cb_detector::ConfigGoal_<ContainerAllocator> > { 00223 static const char* value() 00224 { 00225 return "laser_cb_detector/ConfigGoal"; 00226 } 00227 00228 static const char* value(const ::laser_cb_detector::ConfigGoal_<ContainerAllocator> &) { return value(); } 00229 }; 00230 00231 template<class ContainerAllocator> 00232 struct Definition< ::laser_cb_detector::ConfigGoal_<ContainerAllocator> > { 00233 static const char* value() 00234 { 00235 return "uint32 num_x # Number of checkerboard corners in the X direction\n\ 00236 uint32 num_y # Number of corners in the Y direction\n\ 00237 float32 spacing_x # Spacing between corners in the X direction (meters)\n\ 00238 float32 spacing_y # Spacing between corners in the Y direction (meters)\n\ 00239 \n\ 00240 # Specify how many times we want to upsample the image.\n\ 00241 # This is often useful for detecting small checkerboards far away\n\ 00242 float32 width_scaling\n\ 00243 float32 height_scaling\n\ 00244 \n\ 00245 # Specifiy how intensity maps into a uint8. A specified window of\n\ 00246 # intensities is linearly scaled to 0-255\n\ 00247 float32 min_intensity\n\ 00248 float32 max_intensity\n\ 00249 \n\ 00250 # Configure openCV's subpixel corner detector\n\ 00251 uint32 subpixel_window\n\ 00252 int32 subpixel_zero_zone\n\ 00253 \n\ 00254 # Specify if we need to flip snapshot image model. This is usually necessary\n\ 00255 # when the laser scans from right to left, since this is the opposite of images,\n\ 00256 # which are normally indexed left to right\n\ 00257 uint8 flip_horizontal\n\ 00258 \n\ 00259 \n\ 00260 "; 00261 } 00262 00263 static const char* value(const ::laser_cb_detector::ConfigGoal_<ContainerAllocator> &) { return value(); } 00264 }; 00265 00266 template<class ContainerAllocator> struct IsFixedSize< ::laser_cb_detector::ConfigGoal_<ContainerAllocator> > : public TrueType {}; 00267 } // namespace message_traits 00268 } // namespace ros 00269 00270 namespace ros 00271 { 00272 namespace serialization 00273 { 00274 00275 template<class ContainerAllocator> struct Serializer< ::laser_cb_detector::ConfigGoal_<ContainerAllocator> > 00276 { 00277 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00278 { 00279 stream.next(m.num_x); 00280 stream.next(m.num_y); 00281 stream.next(m.spacing_x); 00282 stream.next(m.spacing_y); 00283 stream.next(m.width_scaling); 00284 stream.next(m.height_scaling); 00285 stream.next(m.min_intensity); 00286 stream.next(m.max_intensity); 00287 stream.next(m.subpixel_window); 00288 stream.next(m.subpixel_zero_zone); 00289 stream.next(m.flip_horizontal); 00290 } 00291 00292 ROS_DECLARE_ALLINONE_SERIALIZER; 00293 }; // struct ConfigGoal_ 00294 } // namespace serialization 00295 } // namespace ros 00296 00297 namespace ros 00298 { 00299 namespace message_operations 00300 { 00301 00302 template<class ContainerAllocator> 00303 struct Printer< ::laser_cb_detector::ConfigGoal_<ContainerAllocator> > 00304 { 00305 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::laser_cb_detector::ConfigGoal_<ContainerAllocator> & v) 00306 { 00307 s << indent << "num_x: "; 00308 Printer<uint32_t>::stream(s, indent + " ", v.num_x); 00309 s << indent << "num_y: "; 00310 Printer<uint32_t>::stream(s, indent + " ", v.num_y); 00311 s << indent << "spacing_x: "; 00312 Printer<float>::stream(s, indent + " ", v.spacing_x); 00313 s << indent << "spacing_y: "; 00314 Printer<float>::stream(s, indent + " ", v.spacing_y); 00315 s << indent << "width_scaling: "; 00316 Printer<float>::stream(s, indent + " ", v.width_scaling); 00317 s << indent << "height_scaling: "; 00318 Printer<float>::stream(s, indent + " ", v.height_scaling); 00319 s << indent << "min_intensity: "; 00320 Printer<float>::stream(s, indent + " ", v.min_intensity); 00321 s << indent << "max_intensity: "; 00322 Printer<float>::stream(s, indent + " ", v.max_intensity); 00323 s << indent << "subpixel_window: "; 00324 Printer<uint32_t>::stream(s, indent + " ", v.subpixel_window); 00325 s << indent << "subpixel_zero_zone: "; 00326 Printer<int32_t>::stream(s, indent + " ", v.subpixel_zero_zone); 00327 s << indent << "flip_horizontal: "; 00328 Printer<uint8_t>::stream(s, indent + " ", v.flip_horizontal); 00329 } 00330 }; 00331 00332 00333 } // namespace message_operations 00334 } // namespace ros 00335 00336 #endif // LASER_CB_DETECTOR_MESSAGE_CONFIGGOAL_H 00337