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