$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-camera_pose/doc_stacks/2013-03-01_14-27-38.801509/camera_pose/camera_pose_calibration/msg/CalibrationEstimate.msg */ 00002 #ifndef CAMERA_POSE_CALIBRATION_MESSAGE_CALIBRATIONESTIMATE_H 00003 #define CAMERA_POSE_CALIBRATION_MESSAGE_CALIBRATIONESTIMATE_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 "std_msgs/Header.h" 00018 #include "camera_pose_calibration/CameraPose.h" 00019 #include "geometry_msgs/Pose.h" 00020 00021 namespace camera_pose_calibration 00022 { 00023 template <class ContainerAllocator> 00024 struct CalibrationEstimate_ { 00025 typedef CalibrationEstimate_<ContainerAllocator> Type; 00026 00027 CalibrationEstimate_() 00028 : header() 00029 , cameras() 00030 , targets() 00031 { 00032 } 00033 00034 CalibrationEstimate_(const ContainerAllocator& _alloc) 00035 : header(_alloc) 00036 , cameras(_alloc) 00037 , targets(_alloc) 00038 { 00039 } 00040 00041 typedef ::std_msgs::Header_<ContainerAllocator> _header_type; 00042 ::std_msgs::Header_<ContainerAllocator> header; 00043 00044 typedef std::vector< ::camera_pose_calibration::CameraPose_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::camera_pose_calibration::CameraPose_<ContainerAllocator> >::other > _cameras_type; 00045 std::vector< ::camera_pose_calibration::CameraPose_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::camera_pose_calibration::CameraPose_<ContainerAllocator> >::other > cameras; 00046 00047 typedef std::vector< ::geometry_msgs::Pose_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Pose_<ContainerAllocator> >::other > _targets_type; 00048 std::vector< ::geometry_msgs::Pose_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Pose_<ContainerAllocator> >::other > targets; 00049 00050 00051 ROS_DEPRECATED uint32_t get_cameras_size() const { return (uint32_t)cameras.size(); } 00052 ROS_DEPRECATED void set_cameras_size(uint32_t size) { cameras.resize((size_t)size); } 00053 ROS_DEPRECATED void get_cameras_vec(std::vector< ::camera_pose_calibration::CameraPose_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::camera_pose_calibration::CameraPose_<ContainerAllocator> >::other > & vec) const { vec = this->cameras; } 00054 ROS_DEPRECATED void set_cameras_vec(const std::vector< ::camera_pose_calibration::CameraPose_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::camera_pose_calibration::CameraPose_<ContainerAllocator> >::other > & vec) { this->cameras = vec; } 00055 ROS_DEPRECATED uint32_t get_targets_size() const { return (uint32_t)targets.size(); } 00056 ROS_DEPRECATED void set_targets_size(uint32_t size) { targets.resize((size_t)size); } 00057 ROS_DEPRECATED void get_targets_vec(std::vector< ::geometry_msgs::Pose_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Pose_<ContainerAllocator> >::other > & vec) const { vec = this->targets; } 00058 ROS_DEPRECATED void set_targets_vec(const std::vector< ::geometry_msgs::Pose_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Pose_<ContainerAllocator> >::other > & vec) { this->targets = vec; } 00059 private: 00060 static const char* __s_getDataType_() { return "camera_pose_calibration/CalibrationEstimate"; } 00061 public: 00062 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00063 00064 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00065 00066 private: 00067 static const char* __s_getMD5Sum_() { return "35dff6bdb713fbc8b83861a1960b45f5"; } 00068 public: 00069 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00070 00071 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00072 00073 private: 00074 static const char* __s_getMessageDefinition_() { return "Header header\n\ 00075 CameraPose[] cameras\n\ 00076 geometry_msgs/Pose[] targets\n\ 00077 \n\ 00078 ================================================================================\n\ 00079 MSG: std_msgs/Header\n\ 00080 # Standard metadata for higher-level stamped data types.\n\ 00081 # This is generally used to communicate timestamped data \n\ 00082 # in a particular coordinate frame.\n\ 00083 # \n\ 00084 # sequence ID: consecutively increasing ID \n\ 00085 uint32 seq\n\ 00086 #Two-integer timestamp that is expressed as:\n\ 00087 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00088 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00089 # time-handling sugar is provided by the client library\n\ 00090 time stamp\n\ 00091 #Frame this data is associated with\n\ 00092 # 0: no frame\n\ 00093 # 1: global frame\n\ 00094 string frame_id\n\ 00095 \n\ 00096 ================================================================================\n\ 00097 MSG: camera_pose_calibration/CameraPose\n\ 00098 string camera_id\n\ 00099 geometry_msgs/Pose pose\n\ 00100 \n\ 00101 ================================================================================\n\ 00102 MSG: geometry_msgs/Pose\n\ 00103 # A representation of pose in free space, composed of postion and orientation. \n\ 00104 Point position\n\ 00105 Quaternion orientation\n\ 00106 \n\ 00107 ================================================================================\n\ 00108 MSG: geometry_msgs/Point\n\ 00109 # This contains the position of a point in free space\n\ 00110 float64 x\n\ 00111 float64 y\n\ 00112 float64 z\n\ 00113 \n\ 00114 ================================================================================\n\ 00115 MSG: geometry_msgs/Quaternion\n\ 00116 # This represents an orientation in free space in quaternion form.\n\ 00117 \n\ 00118 float64 x\n\ 00119 float64 y\n\ 00120 float64 z\n\ 00121 float64 w\n\ 00122 \n\ 00123 "; } 00124 public: 00125 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00126 00127 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00128 00129 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00130 { 00131 ros::serialization::OStream stream(write_ptr, 1000000000); 00132 ros::serialization::serialize(stream, header); 00133 ros::serialization::serialize(stream, cameras); 00134 ros::serialization::serialize(stream, targets); 00135 return stream.getData(); 00136 } 00137 00138 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00139 { 00140 ros::serialization::IStream stream(read_ptr, 1000000000); 00141 ros::serialization::deserialize(stream, header); 00142 ros::serialization::deserialize(stream, cameras); 00143 ros::serialization::deserialize(stream, targets); 00144 return stream.getData(); 00145 } 00146 00147 ROS_DEPRECATED virtual uint32_t serializationLength() const 00148 { 00149 uint32_t size = 0; 00150 size += ros::serialization::serializationLength(header); 00151 size += ros::serialization::serializationLength(cameras); 00152 size += ros::serialization::serializationLength(targets); 00153 return size; 00154 } 00155 00156 typedef boost::shared_ptr< ::camera_pose_calibration::CalibrationEstimate_<ContainerAllocator> > Ptr; 00157 typedef boost::shared_ptr< ::camera_pose_calibration::CalibrationEstimate_<ContainerAllocator> const> ConstPtr; 00158 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00159 }; // struct CalibrationEstimate 00160 typedef ::camera_pose_calibration::CalibrationEstimate_<std::allocator<void> > CalibrationEstimate; 00161 00162 typedef boost::shared_ptr< ::camera_pose_calibration::CalibrationEstimate> CalibrationEstimatePtr; 00163 typedef boost::shared_ptr< ::camera_pose_calibration::CalibrationEstimate const> CalibrationEstimateConstPtr; 00164 00165 00166 template<typename ContainerAllocator> 00167 std::ostream& operator<<(std::ostream& s, const ::camera_pose_calibration::CalibrationEstimate_<ContainerAllocator> & v) 00168 { 00169 ros::message_operations::Printer< ::camera_pose_calibration::CalibrationEstimate_<ContainerAllocator> >::stream(s, "", v); 00170 return s;} 00171 00172 } // namespace camera_pose_calibration 00173 00174 namespace ros 00175 { 00176 namespace message_traits 00177 { 00178 template<class ContainerAllocator> struct IsMessage< ::camera_pose_calibration::CalibrationEstimate_<ContainerAllocator> > : public TrueType {}; 00179 template<class ContainerAllocator> struct IsMessage< ::camera_pose_calibration::CalibrationEstimate_<ContainerAllocator> const> : public TrueType {}; 00180 template<class ContainerAllocator> 00181 struct MD5Sum< ::camera_pose_calibration::CalibrationEstimate_<ContainerAllocator> > { 00182 static const char* value() 00183 { 00184 return "35dff6bdb713fbc8b83861a1960b45f5"; 00185 } 00186 00187 static const char* value(const ::camera_pose_calibration::CalibrationEstimate_<ContainerAllocator> &) { return value(); } 00188 static const uint64_t static_value1 = 0x35dff6bdb713fbc8ULL; 00189 static const uint64_t static_value2 = 0xb83861a1960b45f5ULL; 00190 }; 00191 00192 template<class ContainerAllocator> 00193 struct DataType< ::camera_pose_calibration::CalibrationEstimate_<ContainerAllocator> > { 00194 static const char* value() 00195 { 00196 return "camera_pose_calibration/CalibrationEstimate"; 00197 } 00198 00199 static const char* value(const ::camera_pose_calibration::CalibrationEstimate_<ContainerAllocator> &) { return value(); } 00200 }; 00201 00202 template<class ContainerAllocator> 00203 struct Definition< ::camera_pose_calibration::CalibrationEstimate_<ContainerAllocator> > { 00204 static const char* value() 00205 { 00206 return "Header header\n\ 00207 CameraPose[] cameras\n\ 00208 geometry_msgs/Pose[] targets\n\ 00209 \n\ 00210 ================================================================================\n\ 00211 MSG: std_msgs/Header\n\ 00212 # Standard metadata for higher-level stamped data types.\n\ 00213 # This is generally used to communicate timestamped data \n\ 00214 # in a particular coordinate frame.\n\ 00215 # \n\ 00216 # sequence ID: consecutively increasing ID \n\ 00217 uint32 seq\n\ 00218 #Two-integer timestamp that is expressed as:\n\ 00219 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00220 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00221 # time-handling sugar is provided by the client library\n\ 00222 time stamp\n\ 00223 #Frame this data is associated with\n\ 00224 # 0: no frame\n\ 00225 # 1: global frame\n\ 00226 string frame_id\n\ 00227 \n\ 00228 ================================================================================\n\ 00229 MSG: camera_pose_calibration/CameraPose\n\ 00230 string camera_id\n\ 00231 geometry_msgs/Pose pose\n\ 00232 \n\ 00233 ================================================================================\n\ 00234 MSG: geometry_msgs/Pose\n\ 00235 # A representation of pose in free space, composed of postion and orientation. \n\ 00236 Point position\n\ 00237 Quaternion orientation\n\ 00238 \n\ 00239 ================================================================================\n\ 00240 MSG: geometry_msgs/Point\n\ 00241 # This contains the position of a point in free space\n\ 00242 float64 x\n\ 00243 float64 y\n\ 00244 float64 z\n\ 00245 \n\ 00246 ================================================================================\n\ 00247 MSG: geometry_msgs/Quaternion\n\ 00248 # This represents an orientation in free space in quaternion form.\n\ 00249 \n\ 00250 float64 x\n\ 00251 float64 y\n\ 00252 float64 z\n\ 00253 float64 w\n\ 00254 \n\ 00255 "; 00256 } 00257 00258 static const char* value(const ::camera_pose_calibration::CalibrationEstimate_<ContainerAllocator> &) { return value(); } 00259 }; 00260 00261 template<class ContainerAllocator> struct HasHeader< ::camera_pose_calibration::CalibrationEstimate_<ContainerAllocator> > : public TrueType {}; 00262 template<class ContainerAllocator> struct HasHeader< const ::camera_pose_calibration::CalibrationEstimate_<ContainerAllocator> > : public TrueType {}; 00263 } // namespace message_traits 00264 } // namespace ros 00265 00266 namespace ros 00267 { 00268 namespace serialization 00269 { 00270 00271 template<class ContainerAllocator> struct Serializer< ::camera_pose_calibration::CalibrationEstimate_<ContainerAllocator> > 00272 { 00273 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00274 { 00275 stream.next(m.header); 00276 stream.next(m.cameras); 00277 stream.next(m.targets); 00278 } 00279 00280 ROS_DECLARE_ALLINONE_SERIALIZER; 00281 }; // struct CalibrationEstimate_ 00282 } // namespace serialization 00283 } // namespace ros 00284 00285 namespace ros 00286 { 00287 namespace message_operations 00288 { 00289 00290 template<class ContainerAllocator> 00291 struct Printer< ::camera_pose_calibration::CalibrationEstimate_<ContainerAllocator> > 00292 { 00293 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::camera_pose_calibration::CalibrationEstimate_<ContainerAllocator> & v) 00294 { 00295 s << indent << "header: "; 00296 s << std::endl; 00297 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header); 00298 s << indent << "cameras[]" << std::endl; 00299 for (size_t i = 0; i < v.cameras.size(); ++i) 00300 { 00301 s << indent << " cameras[" << i << "]: "; 00302 s << std::endl; 00303 s << indent; 00304 Printer< ::camera_pose_calibration::CameraPose_<ContainerAllocator> >::stream(s, indent + " ", v.cameras[i]); 00305 } 00306 s << indent << "targets[]" << std::endl; 00307 for (size_t i = 0; i < v.targets.size(); ++i) 00308 { 00309 s << indent << " targets[" << i << "]: "; 00310 s << std::endl; 00311 s << indent; 00312 Printer< ::geometry_msgs::Pose_<ContainerAllocator> >::stream(s, indent + " ", v.targets[i]); 00313 } 00314 } 00315 }; 00316 00317 00318 } // namespace message_operations 00319 } // namespace ros 00320 00321 #endif // CAMERA_POSE_CALIBRATION_MESSAGE_CALIBRATIONESTIMATE_H 00322