$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-vision_visp/doc_stacks/2013-03-02_14-13-07.148743/vision_visp/visp_camera_calibration/msg/CalibPointArray.msg */ 00002 #ifndef VISP_CAMERA_CALIBRATION_MESSAGE_CALIBPOINTARRAY_H 00003 #define VISP_CAMERA_CALIBRATION_MESSAGE_CALIBPOINTARRAY_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 "visp_camera_calibration/CalibPoint.h" 00018 00019 namespace visp_camera_calibration 00020 { 00021 template <class ContainerAllocator> 00022 struct CalibPointArray_ { 00023 typedef CalibPointArray_<ContainerAllocator> Type; 00024 00025 CalibPointArray_() 00026 : points() 00027 { 00028 } 00029 00030 CalibPointArray_(const ContainerAllocator& _alloc) 00031 : points(_alloc) 00032 { 00033 } 00034 00035 typedef std::vector< ::visp_camera_calibration::CalibPoint_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::visp_camera_calibration::CalibPoint_<ContainerAllocator> >::other > _points_type; 00036 std::vector< ::visp_camera_calibration::CalibPoint_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::visp_camera_calibration::CalibPoint_<ContainerAllocator> >::other > points; 00037 00038 00039 ROS_DEPRECATED uint32_t get_points_size() const { return (uint32_t)points.size(); } 00040 ROS_DEPRECATED void set_points_size(uint32_t size) { points.resize((size_t)size); } 00041 ROS_DEPRECATED void get_points_vec(std::vector< ::visp_camera_calibration::CalibPoint_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::visp_camera_calibration::CalibPoint_<ContainerAllocator> >::other > & vec) const { vec = this->points; } 00042 ROS_DEPRECATED void set_points_vec(const std::vector< ::visp_camera_calibration::CalibPoint_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::visp_camera_calibration::CalibPoint_<ContainerAllocator> >::other > & vec) { this->points = vec; } 00043 private: 00044 static const char* __s_getDataType_() { return "visp_camera_calibration/CalibPointArray"; } 00045 public: 00046 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00047 00048 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00049 00050 private: 00051 static const char* __s_getMD5Sum_() { return "46e7b53381d96d2d7cbbb7418f6dd696"; } 00052 public: 00053 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00054 00055 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00056 00057 private: 00058 static const char* __s_getMessageDefinition_() { return "# an array of vpPoint\n\ 00059 visp_camera_calibration/CalibPoint[] points\n\ 00060 \n\ 00061 ================================================================================\n\ 00062 MSG: visp_camera_calibration/CalibPoint\n\ 00063 # a vpPoint\n\ 00064 \n\ 00065 int32 i\n\ 00066 int32 j\n\ 00067 float64 X\n\ 00068 float64 Y\n\ 00069 float64 Z\n\ 00070 \n\ 00071 \n\ 00072 "; } 00073 public: 00074 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00075 00076 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00077 00078 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00079 { 00080 ros::serialization::OStream stream(write_ptr, 1000000000); 00081 ros::serialization::serialize(stream, points); 00082 return stream.getData(); 00083 } 00084 00085 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00086 { 00087 ros::serialization::IStream stream(read_ptr, 1000000000); 00088 ros::serialization::deserialize(stream, points); 00089 return stream.getData(); 00090 } 00091 00092 ROS_DEPRECATED virtual uint32_t serializationLength() const 00093 { 00094 uint32_t size = 0; 00095 size += ros::serialization::serializationLength(points); 00096 return size; 00097 } 00098 00099 typedef boost::shared_ptr< ::visp_camera_calibration::CalibPointArray_<ContainerAllocator> > Ptr; 00100 typedef boost::shared_ptr< ::visp_camera_calibration::CalibPointArray_<ContainerAllocator> const> ConstPtr; 00101 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00102 }; // struct CalibPointArray 00103 typedef ::visp_camera_calibration::CalibPointArray_<std::allocator<void> > CalibPointArray; 00104 00105 typedef boost::shared_ptr< ::visp_camera_calibration::CalibPointArray> CalibPointArrayPtr; 00106 typedef boost::shared_ptr< ::visp_camera_calibration::CalibPointArray const> CalibPointArrayConstPtr; 00107 00108 00109 template<typename ContainerAllocator> 00110 std::ostream& operator<<(std::ostream& s, const ::visp_camera_calibration::CalibPointArray_<ContainerAllocator> & v) 00111 { 00112 ros::message_operations::Printer< ::visp_camera_calibration::CalibPointArray_<ContainerAllocator> >::stream(s, "", v); 00113 return s;} 00114 00115 } // namespace visp_camera_calibration 00116 00117 namespace ros 00118 { 00119 namespace message_traits 00120 { 00121 template<class ContainerAllocator> struct IsMessage< ::visp_camera_calibration::CalibPointArray_<ContainerAllocator> > : public TrueType {}; 00122 template<class ContainerAllocator> struct IsMessage< ::visp_camera_calibration::CalibPointArray_<ContainerAllocator> const> : public TrueType {}; 00123 template<class ContainerAllocator> 00124 struct MD5Sum< ::visp_camera_calibration::CalibPointArray_<ContainerAllocator> > { 00125 static const char* value() 00126 { 00127 return "46e7b53381d96d2d7cbbb7418f6dd696"; 00128 } 00129 00130 static const char* value(const ::visp_camera_calibration::CalibPointArray_<ContainerAllocator> &) { return value(); } 00131 static const uint64_t static_value1 = 0x46e7b53381d96d2dULL; 00132 static const uint64_t static_value2 = 0x7cbbb7418f6dd696ULL; 00133 }; 00134 00135 template<class ContainerAllocator> 00136 struct DataType< ::visp_camera_calibration::CalibPointArray_<ContainerAllocator> > { 00137 static const char* value() 00138 { 00139 return "visp_camera_calibration/CalibPointArray"; 00140 } 00141 00142 static const char* value(const ::visp_camera_calibration::CalibPointArray_<ContainerAllocator> &) { return value(); } 00143 }; 00144 00145 template<class ContainerAllocator> 00146 struct Definition< ::visp_camera_calibration::CalibPointArray_<ContainerAllocator> > { 00147 static const char* value() 00148 { 00149 return "# an array of vpPoint\n\ 00150 visp_camera_calibration/CalibPoint[] points\n\ 00151 \n\ 00152 ================================================================================\n\ 00153 MSG: visp_camera_calibration/CalibPoint\n\ 00154 # a vpPoint\n\ 00155 \n\ 00156 int32 i\n\ 00157 int32 j\n\ 00158 float64 X\n\ 00159 float64 Y\n\ 00160 float64 Z\n\ 00161 \n\ 00162 \n\ 00163 "; 00164 } 00165 00166 static const char* value(const ::visp_camera_calibration::CalibPointArray_<ContainerAllocator> &) { return value(); } 00167 }; 00168 00169 } // namespace message_traits 00170 } // namespace ros 00171 00172 namespace ros 00173 { 00174 namespace serialization 00175 { 00176 00177 template<class ContainerAllocator> struct Serializer< ::visp_camera_calibration::CalibPointArray_<ContainerAllocator> > 00178 { 00179 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00180 { 00181 stream.next(m.points); 00182 } 00183 00184 ROS_DECLARE_ALLINONE_SERIALIZER; 00185 }; // struct CalibPointArray_ 00186 } // namespace serialization 00187 } // namespace ros 00188 00189 namespace ros 00190 { 00191 namespace message_operations 00192 { 00193 00194 template<class ContainerAllocator> 00195 struct Printer< ::visp_camera_calibration::CalibPointArray_<ContainerAllocator> > 00196 { 00197 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::visp_camera_calibration::CalibPointArray_<ContainerAllocator> & v) 00198 { 00199 s << indent << "points[]" << std::endl; 00200 for (size_t i = 0; i < v.points.size(); ++i) 00201 { 00202 s << indent << " points[" << i << "]: "; 00203 s << std::endl; 00204 s << indent; 00205 Printer< ::visp_camera_calibration::CalibPoint_<ContainerAllocator> >::stream(s, indent + " ", v.points[i]); 00206 } 00207 } 00208 }; 00209 00210 00211 } // namespace message_operations 00212 } // namespace ros 00213 00214 #endif // VISP_CAMERA_CALIBRATION_MESSAGE_CALIBPOINTARRAY_H 00215