00001
00002 #ifndef CAMERA_POSE_CALIBRATION_MESSAGE_CAMERACALIBRATION_H
00003 #define CAMERA_POSE_CALIBRATION_MESSAGE_CAMERACALIBRATION_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 "geometry_msgs/Pose.h"
00014
00015 namespace camera_pose_calibration
00016 {
00017 template <class ContainerAllocator>
00018 struct CameraCalibration_ : public ros::Message
00019 {
00020 typedef CameraCalibration_<ContainerAllocator> Type;
00021
00022 CameraCalibration_()
00023 : camera_pose()
00024 , camera_id()
00025 {
00026 }
00027
00028 CameraCalibration_(const ContainerAllocator& _alloc)
00029 : camera_pose(_alloc)
00030 , camera_id(_alloc)
00031 {
00032 }
00033
00034 typedef std::vector< ::geometry_msgs::Pose_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Pose_<ContainerAllocator> >::other > _camera_pose_type;
00035 std::vector< ::geometry_msgs::Pose_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Pose_<ContainerAllocator> >::other > camera_pose;
00036
00037 typedef std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > _camera_id_type;
00038 std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > camera_id;
00039
00040
00041 ROS_DEPRECATED uint32_t get_camera_pose_size() const { return (uint32_t)camera_pose.size(); }
00042 ROS_DEPRECATED void set_camera_pose_size(uint32_t size) { camera_pose.resize((size_t)size); }
00043 ROS_DEPRECATED void get_camera_pose_vec(std::vector< ::geometry_msgs::Pose_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Pose_<ContainerAllocator> >::other > & vec) const { vec = this->camera_pose; }
00044 ROS_DEPRECATED void set_camera_pose_vec(const std::vector< ::geometry_msgs::Pose_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Pose_<ContainerAllocator> >::other > & vec) { this->camera_pose = vec; }
00045 ROS_DEPRECATED uint32_t get_camera_id_size() const { return (uint32_t)camera_id.size(); }
00046 ROS_DEPRECATED void set_camera_id_size(uint32_t size) { camera_id.resize((size_t)size); }
00047 ROS_DEPRECATED void get_camera_id_vec(std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > & vec) const { vec = this->camera_id; }
00048 ROS_DEPRECATED void set_camera_id_vec(const std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > & vec) { this->camera_id = vec; }
00049 private:
00050 static const char* __s_getDataType_() { return "camera_pose_calibration/CameraCalibration"; }
00051 public:
00052 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00053
00054 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00055
00056 private:
00057 static const char* __s_getMD5Sum_() { return "7c56b4c541b0941c246e565a97eb5388"; }
00058 public:
00059 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00060
00061 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00062
00063 private:
00064 static const char* __s_getMessageDefinition_() { return "geometry_msgs/Pose[] camera_pose\n\
00065 string[] camera_id\n\
00066 ================================================================================\n\
00067 MSG: geometry_msgs/Pose\n\
00068 # A representation of pose in free space, composed of postion and orientation. \n\
00069 Point position\n\
00070 Quaternion orientation\n\
00071 \n\
00072 ================================================================================\n\
00073 MSG: geometry_msgs/Point\n\
00074 # This contains the position of a point in free space\n\
00075 float64 x\n\
00076 float64 y\n\
00077 float64 z\n\
00078 \n\
00079 ================================================================================\n\
00080 MSG: geometry_msgs/Quaternion\n\
00081 # This represents an orientation in free space in quaternion form.\n\
00082 \n\
00083 float64 x\n\
00084 float64 y\n\
00085 float64 z\n\
00086 float64 w\n\
00087 \n\
00088 "; }
00089 public:
00090 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00091
00092 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00093
00094 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00095 {
00096 ros::serialization::OStream stream(write_ptr, 1000000000);
00097 ros::serialization::serialize(stream, camera_pose);
00098 ros::serialization::serialize(stream, camera_id);
00099 return stream.getData();
00100 }
00101
00102 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00103 {
00104 ros::serialization::IStream stream(read_ptr, 1000000000);
00105 ros::serialization::deserialize(stream, camera_pose);
00106 ros::serialization::deserialize(stream, camera_id);
00107 return stream.getData();
00108 }
00109
00110 ROS_DEPRECATED virtual uint32_t serializationLength() const
00111 {
00112 uint32_t size = 0;
00113 size += ros::serialization::serializationLength(camera_pose);
00114 size += ros::serialization::serializationLength(camera_id);
00115 return size;
00116 }
00117
00118 typedef boost::shared_ptr< ::camera_pose_calibration::CameraCalibration_<ContainerAllocator> > Ptr;
00119 typedef boost::shared_ptr< ::camera_pose_calibration::CameraCalibration_<ContainerAllocator> const> ConstPtr;
00120 };
00121 typedef ::camera_pose_calibration::CameraCalibration_<std::allocator<void> > CameraCalibration;
00122
00123 typedef boost::shared_ptr< ::camera_pose_calibration::CameraCalibration> CameraCalibrationPtr;
00124 typedef boost::shared_ptr< ::camera_pose_calibration::CameraCalibration const> CameraCalibrationConstPtr;
00125
00126
00127 template<typename ContainerAllocator>
00128 std::ostream& operator<<(std::ostream& s, const ::camera_pose_calibration::CameraCalibration_<ContainerAllocator> & v)
00129 {
00130 ros::message_operations::Printer< ::camera_pose_calibration::CameraCalibration_<ContainerAllocator> >::stream(s, "", v);
00131 return s;}
00132
00133 }
00134
00135 namespace ros
00136 {
00137 namespace message_traits
00138 {
00139 template<class ContainerAllocator>
00140 struct MD5Sum< ::camera_pose_calibration::CameraCalibration_<ContainerAllocator> > {
00141 static const char* value()
00142 {
00143 return "7c56b4c541b0941c246e565a97eb5388";
00144 }
00145
00146 static const char* value(const ::camera_pose_calibration::CameraCalibration_<ContainerAllocator> &) { return value(); }
00147 static const uint64_t static_value1 = 0x7c56b4c541b0941cULL;
00148 static const uint64_t static_value2 = 0x246e565a97eb5388ULL;
00149 };
00150
00151 template<class ContainerAllocator>
00152 struct DataType< ::camera_pose_calibration::CameraCalibration_<ContainerAllocator> > {
00153 static const char* value()
00154 {
00155 return "camera_pose_calibration/CameraCalibration";
00156 }
00157
00158 static const char* value(const ::camera_pose_calibration::CameraCalibration_<ContainerAllocator> &) { return value(); }
00159 };
00160
00161 template<class ContainerAllocator>
00162 struct Definition< ::camera_pose_calibration::CameraCalibration_<ContainerAllocator> > {
00163 static const char* value()
00164 {
00165 return "geometry_msgs/Pose[] camera_pose\n\
00166 string[] camera_id\n\
00167 ================================================================================\n\
00168 MSG: geometry_msgs/Pose\n\
00169 # A representation of pose in free space, composed of postion and orientation. \n\
00170 Point position\n\
00171 Quaternion orientation\n\
00172 \n\
00173 ================================================================================\n\
00174 MSG: geometry_msgs/Point\n\
00175 # This contains the position of a point in free space\n\
00176 float64 x\n\
00177 float64 y\n\
00178 float64 z\n\
00179 \n\
00180 ================================================================================\n\
00181 MSG: geometry_msgs/Quaternion\n\
00182 # This represents an orientation in free space in quaternion form.\n\
00183 \n\
00184 float64 x\n\
00185 float64 y\n\
00186 float64 z\n\
00187 float64 w\n\
00188 \n\
00189 ";
00190 }
00191
00192 static const char* value(const ::camera_pose_calibration::CameraCalibration_<ContainerAllocator> &) { return value(); }
00193 };
00194
00195 }
00196 }
00197
00198 namespace ros
00199 {
00200 namespace serialization
00201 {
00202
00203 template<class ContainerAllocator> struct Serializer< ::camera_pose_calibration::CameraCalibration_<ContainerAllocator> >
00204 {
00205 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00206 {
00207 stream.next(m.camera_pose);
00208 stream.next(m.camera_id);
00209 }
00210
00211 ROS_DECLARE_ALLINONE_SERIALIZER;
00212 };
00213 }
00214 }
00215
00216 namespace ros
00217 {
00218 namespace message_operations
00219 {
00220
00221 template<class ContainerAllocator>
00222 struct Printer< ::camera_pose_calibration::CameraCalibration_<ContainerAllocator> >
00223 {
00224 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::camera_pose_calibration::CameraCalibration_<ContainerAllocator> & v)
00225 {
00226 s << indent << "camera_pose[]" << std::endl;
00227 for (size_t i = 0; i < v.camera_pose.size(); ++i)
00228 {
00229 s << indent << " camera_pose[" << i << "]: ";
00230 s << std::endl;
00231 s << indent;
00232 Printer< ::geometry_msgs::Pose_<ContainerAllocator> >::stream(s, indent + " ", v.camera_pose[i]);
00233 }
00234 s << indent << "camera_id[]" << std::endl;
00235 for (size_t i = 0; i < v.camera_id.size(); ++i)
00236 {
00237 s << indent << " camera_id[" << i << "]: ";
00238 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.camera_id[i]);
00239 }
00240 }
00241 };
00242
00243
00244 }
00245 }
00246
00247 #endif // CAMERA_POSE_CALIBRATION_MESSAGE_CAMERACALIBRATION_H
00248