Go to the documentation of this file.00001
00002 #ifndef SBA_MESSAGE_CAMERANODE_H
00003 #define SBA_MESSAGE_CAMERANODE_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/Transform.h"
00018
00019 namespace sba
00020 {
00021 template <class ContainerAllocator>
00022 struct CameraNode_ {
00023 typedef CameraNode_<ContainerAllocator> Type;
00024
00025 CameraNode_()
00026 : index(0)
00027 , transform()
00028 , fx(0.0)
00029 , fy(0.0)
00030 , cx(0.0)
00031 , cy(0.0)
00032 , baseline(0.0)
00033 , fixed(false)
00034 {
00035 }
00036
00037 CameraNode_(const ContainerAllocator& _alloc)
00038 : index(0)
00039 , transform(_alloc)
00040 , fx(0.0)
00041 , fy(0.0)
00042 , cx(0.0)
00043 , cy(0.0)
00044 , baseline(0.0)
00045 , fixed(false)
00046 {
00047 }
00048
00049 typedef uint32_t _index_type;
00050 uint32_t index;
00051
00052 typedef ::geometry_msgs::Transform_<ContainerAllocator> _transform_type;
00053 ::geometry_msgs::Transform_<ContainerAllocator> transform;
00054
00055 typedef double _fx_type;
00056 double fx;
00057
00058 typedef double _fy_type;
00059 double fy;
00060
00061 typedef double _cx_type;
00062 double cx;
00063
00064 typedef double _cy_type;
00065 double cy;
00066
00067 typedef double _baseline_type;
00068 double baseline;
00069
00070 typedef uint8_t _fixed_type;
00071 uint8_t fixed;
00072
00073
00074 typedef boost::shared_ptr< ::sba::CameraNode_<ContainerAllocator> > Ptr;
00075 typedef boost::shared_ptr< ::sba::CameraNode_<ContainerAllocator> const> ConstPtr;
00076 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00077 };
00078 typedef ::sba::CameraNode_<std::allocator<void> > CameraNode;
00079
00080 typedef boost::shared_ptr< ::sba::CameraNode> CameraNodePtr;
00081 typedef boost::shared_ptr< ::sba::CameraNode const> CameraNodeConstPtr;
00082
00083
00084 template<typename ContainerAllocator>
00085 std::ostream& operator<<(std::ostream& s, const ::sba::CameraNode_<ContainerAllocator> & v)
00086 {
00087 ros::message_operations::Printer< ::sba::CameraNode_<ContainerAllocator> >::stream(s, "", v);
00088 return s;}
00089
00090 }
00091
00092 namespace ros
00093 {
00094 namespace message_traits
00095 {
00096 template<class ContainerAllocator> struct IsMessage< ::sba::CameraNode_<ContainerAllocator> > : public TrueType {};
00097 template<class ContainerAllocator> struct IsMessage< ::sba::CameraNode_<ContainerAllocator> const> : public TrueType {};
00098 template<class ContainerAllocator>
00099 struct MD5Sum< ::sba::CameraNode_<ContainerAllocator> > {
00100 static const char* value()
00101 {
00102 return "0605774cb8ba22085a77f85c7154baa7";
00103 }
00104
00105 static const char* value(const ::sba::CameraNode_<ContainerAllocator> &) { return value(); }
00106 static const uint64_t static_value1 = 0x0605774cb8ba2208ULL;
00107 static const uint64_t static_value2 = 0x5a77f85c7154baa7ULL;
00108 };
00109
00110 template<class ContainerAllocator>
00111 struct DataType< ::sba::CameraNode_<ContainerAllocator> > {
00112 static const char* value()
00113 {
00114 return "sba/CameraNode";
00115 }
00116
00117 static const char* value(const ::sba::CameraNode_<ContainerAllocator> &) { return value(); }
00118 };
00119
00120 template<class ContainerAllocator>
00121 struct Definition< ::sba::CameraNode_<ContainerAllocator> > {
00122 static const char* value()
00123 {
00124 return "# Node Parameters\n\
00125 uint32 index\n\
00126 \n\
00127 # Contains a translation and rotation\n\
00128 geometry_msgs/Transform transform\n\
00129 \n\
00130 # Camera parameters from the K matrix\n\
00131 float64 fx\n\
00132 float64 fy\n\
00133 float64 cx\n\
00134 float64 cy\n\
00135 \n\
00136 # Only relevant for a stereo camera\n\
00137 float64 baseline\n\
00138 \n\
00139 # Whether the camera is fixed in space: i.e., its position is known\n\
00140 bool fixed\n\
00141 \n\
00142 ================================================================================\n\
00143 MSG: geometry_msgs/Transform\n\
00144 # This represents the transform between two coordinate frames in free space.\n\
00145 \n\
00146 Vector3 translation\n\
00147 Quaternion rotation\n\
00148 \n\
00149 ================================================================================\n\
00150 MSG: geometry_msgs/Vector3\n\
00151 # This represents a vector in free space. \n\
00152 \n\
00153 float64 x\n\
00154 float64 y\n\
00155 float64 z\n\
00156 ================================================================================\n\
00157 MSG: geometry_msgs/Quaternion\n\
00158 # This represents an orientation in free space in quaternion form.\n\
00159 \n\
00160 float64 x\n\
00161 float64 y\n\
00162 float64 z\n\
00163 float64 w\n\
00164 \n\
00165 ";
00166 }
00167
00168 static const char* value(const ::sba::CameraNode_<ContainerAllocator> &) { return value(); }
00169 };
00170
00171 template<class ContainerAllocator> struct IsFixedSize< ::sba::CameraNode_<ContainerAllocator> > : public TrueType {};
00172 }
00173 }
00174
00175 namespace ros
00176 {
00177 namespace serialization
00178 {
00179
00180 template<class ContainerAllocator> struct Serializer< ::sba::CameraNode_<ContainerAllocator> >
00181 {
00182 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00183 {
00184 stream.next(m.index);
00185 stream.next(m.transform);
00186 stream.next(m.fx);
00187 stream.next(m.fy);
00188 stream.next(m.cx);
00189 stream.next(m.cy);
00190 stream.next(m.baseline);
00191 stream.next(m.fixed);
00192 }
00193
00194 ROS_DECLARE_ALLINONE_SERIALIZER;
00195 };
00196 }
00197 }
00198
00199 namespace ros
00200 {
00201 namespace message_operations
00202 {
00203
00204 template<class ContainerAllocator>
00205 struct Printer< ::sba::CameraNode_<ContainerAllocator> >
00206 {
00207 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::sba::CameraNode_<ContainerAllocator> & v)
00208 {
00209 s << indent << "index: ";
00210 Printer<uint32_t>::stream(s, indent + " ", v.index);
00211 s << indent << "transform: ";
00212 s << std::endl;
00213 Printer< ::geometry_msgs::Transform_<ContainerAllocator> >::stream(s, indent + " ", v.transform);
00214 s << indent << "fx: ";
00215 Printer<double>::stream(s, indent + " ", v.fx);
00216 s << indent << "fy: ";
00217 Printer<double>::stream(s, indent + " ", v.fy);
00218 s << indent << "cx: ";
00219 Printer<double>::stream(s, indent + " ", v.cx);
00220 s << indent << "cy: ";
00221 Printer<double>::stream(s, indent + " ", v.cy);
00222 s << indent << "baseline: ";
00223 Printer<double>::stream(s, indent + " ", v.baseline);
00224 s << indent << "fixed: ";
00225 Printer<uint8_t>::stream(s, indent + " ", v.fixed);
00226 }
00227 };
00228
00229
00230 }
00231 }
00232
00233 #endif // SBA_MESSAGE_CAMERANODE_H
00234