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