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