00001
00002 #ifndef SBA_MESSAGE_CAMERANODE_H
00003 #define SBA_MESSAGE_CAMERANODE_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/Transform.h"
00014
00015 namespace sba
00016 {
00017 template <class ContainerAllocator>
00018 struct CameraNode_ : public ros::Message
00019 {
00020 typedef CameraNode_<ContainerAllocator> Type;
00021
00022 CameraNode_()
00023 : index(0)
00024 , transform()
00025 , fx(0.0)
00026 , fy(0.0)
00027 , cx(0.0)
00028 , cy(0.0)
00029 , baseline(0.0)
00030 , fixed(false)
00031 {
00032 }
00033
00034 CameraNode_(const ContainerAllocator& _alloc)
00035 : index(0)
00036 , transform(_alloc)
00037 , fx(0.0)
00038 , fy(0.0)
00039 , cx(0.0)
00040 , cy(0.0)
00041 , baseline(0.0)
00042 , fixed(false)
00043 {
00044 }
00045
00046 typedef uint32_t _index_type;
00047 uint32_t index;
00048
00049 typedef ::geometry_msgs::Transform_<ContainerAllocator> _transform_type;
00050 ::geometry_msgs::Transform_<ContainerAllocator> transform;
00051
00052 typedef double _fx_type;
00053 double fx;
00054
00055 typedef double _fy_type;
00056 double fy;
00057
00058 typedef double _cx_type;
00059 double cx;
00060
00061 typedef double _cy_type;
00062 double cy;
00063
00064 typedef double _baseline_type;
00065 double baseline;
00066
00067 typedef uint8_t _fixed_type;
00068 uint8_t fixed;
00069
00070
00071 private:
00072 static const char* __s_getDataType_() { return "sba/CameraNode"; }
00073 public:
00074 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00075
00076 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00077
00078 private:
00079 static const char* __s_getMD5Sum_() { return "0605774cb8ba22085a77f85c7154baa7"; }
00080 public:
00081 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00082
00083 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00084
00085 private:
00086 static const char* __s_getMessageDefinition_() { return "# Node Parameters\n\
00087 uint32 index\n\
00088 \n\
00089 # Contains a translation and rotation\n\
00090 geometry_msgs/Transform transform\n\
00091 \n\
00092 # Camera parameters from the K matrix\n\
00093 float64 fx\n\
00094 float64 fy\n\
00095 float64 cx\n\
00096 float64 cy\n\
00097 \n\
00098 # Only relevant for a stereo camera\n\
00099 float64 baseline\n\
00100 \n\
00101 # Whether the camera is fixed in space: i.e., its position is known\n\
00102 bool fixed\n\
00103 \n\
00104 ================================================================================\n\
00105 MSG: geometry_msgs/Transform\n\
00106 # This represents the transform between two coordinate frames in free space.\n\
00107 \n\
00108 Vector3 translation\n\
00109 Quaternion rotation\n\
00110 \n\
00111 ================================================================================\n\
00112 MSG: geometry_msgs/Vector3\n\
00113 # This represents a vector in free space. \n\
00114 \n\
00115 float64 x\n\
00116 float64 y\n\
00117 float64 z\n\
00118 ================================================================================\n\
00119 MSG: geometry_msgs/Quaternion\n\
00120 # This represents an orientation in free space in quaternion form.\n\
00121 \n\
00122 float64 x\n\
00123 float64 y\n\
00124 float64 z\n\
00125 float64 w\n\
00126 \n\
00127 "; }
00128 public:
00129 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00130
00131 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00132
00133 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00134 {
00135 ros::serialization::OStream stream(write_ptr, 1000000000);
00136 ros::serialization::serialize(stream, index);
00137 ros::serialization::serialize(stream, transform);
00138 ros::serialization::serialize(stream, fx);
00139 ros::serialization::serialize(stream, fy);
00140 ros::serialization::serialize(stream, cx);
00141 ros::serialization::serialize(stream, cy);
00142 ros::serialization::serialize(stream, baseline);
00143 ros::serialization::serialize(stream, fixed);
00144 return stream.getData();
00145 }
00146
00147 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00148 {
00149 ros::serialization::IStream stream(read_ptr, 1000000000);
00150 ros::serialization::deserialize(stream, index);
00151 ros::serialization::deserialize(stream, transform);
00152 ros::serialization::deserialize(stream, fx);
00153 ros::serialization::deserialize(stream, fy);
00154 ros::serialization::deserialize(stream, cx);
00155 ros::serialization::deserialize(stream, cy);
00156 ros::serialization::deserialize(stream, baseline);
00157 ros::serialization::deserialize(stream, fixed);
00158 return stream.getData();
00159 }
00160
00161 ROS_DEPRECATED virtual uint32_t serializationLength() const
00162 {
00163 uint32_t size = 0;
00164 size += ros::serialization::serializationLength(index);
00165 size += ros::serialization::serializationLength(transform);
00166 size += ros::serialization::serializationLength(fx);
00167 size += ros::serialization::serializationLength(fy);
00168 size += ros::serialization::serializationLength(cx);
00169 size += ros::serialization::serializationLength(cy);
00170 size += ros::serialization::serializationLength(baseline);
00171 size += ros::serialization::serializationLength(fixed);
00172 return size;
00173 }
00174
00175 typedef boost::shared_ptr< ::sba::CameraNode_<ContainerAllocator> > Ptr;
00176 typedef boost::shared_ptr< ::sba::CameraNode_<ContainerAllocator> const> ConstPtr;
00177 };
00178 typedef ::sba::CameraNode_<std::allocator<void> > CameraNode;
00179
00180 typedef boost::shared_ptr< ::sba::CameraNode> CameraNodePtr;
00181 typedef boost::shared_ptr< ::sba::CameraNode const> CameraNodeConstPtr;
00182
00183
00184 template<typename ContainerAllocator>
00185 std::ostream& operator<<(std::ostream& s, const ::sba::CameraNode_<ContainerAllocator> & v)
00186 {
00187 ros::message_operations::Printer< ::sba::CameraNode_<ContainerAllocator> >::stream(s, "", v);
00188 return s;}
00189
00190 }
00191
00192 namespace ros
00193 {
00194 namespace message_traits
00195 {
00196 template<class ContainerAllocator>
00197 struct MD5Sum< ::sba::CameraNode_<ContainerAllocator> > {
00198 static const char* value()
00199 {
00200 return "0605774cb8ba22085a77f85c7154baa7";
00201 }
00202
00203 static const char* value(const ::sba::CameraNode_<ContainerAllocator> &) { return value(); }
00204 static const uint64_t static_value1 = 0x0605774cb8ba2208ULL;
00205 static const uint64_t static_value2 = 0x5a77f85c7154baa7ULL;
00206 };
00207
00208 template<class ContainerAllocator>
00209 struct DataType< ::sba::CameraNode_<ContainerAllocator> > {
00210 static const char* value()
00211 {
00212 return "sba/CameraNode";
00213 }
00214
00215 static const char* value(const ::sba::CameraNode_<ContainerAllocator> &) { return value(); }
00216 };
00217
00218 template<class ContainerAllocator>
00219 struct Definition< ::sba::CameraNode_<ContainerAllocator> > {
00220 static const char* value()
00221 {
00222 return "# Node Parameters\n\
00223 uint32 index\n\
00224 \n\
00225 # Contains a translation and rotation\n\
00226 geometry_msgs/Transform transform\n\
00227 \n\
00228 # Camera parameters from the K matrix\n\
00229 float64 fx\n\
00230 float64 fy\n\
00231 float64 cx\n\
00232 float64 cy\n\
00233 \n\
00234 # Only relevant for a stereo camera\n\
00235 float64 baseline\n\
00236 \n\
00237 # Whether the camera is fixed in space: i.e., its position is known\n\
00238 bool fixed\n\
00239 \n\
00240 ================================================================================\n\
00241 MSG: geometry_msgs/Transform\n\
00242 # This represents the transform between two coordinate frames in free space.\n\
00243 \n\
00244 Vector3 translation\n\
00245 Quaternion rotation\n\
00246 \n\
00247 ================================================================================\n\
00248 MSG: geometry_msgs/Vector3\n\
00249 # This represents a vector in free space. \n\
00250 \n\
00251 float64 x\n\
00252 float64 y\n\
00253 float64 z\n\
00254 ================================================================================\n\
00255 MSG: geometry_msgs/Quaternion\n\
00256 # This represents an orientation in free space in quaternion form.\n\
00257 \n\
00258 float64 x\n\
00259 float64 y\n\
00260 float64 z\n\
00261 float64 w\n\
00262 \n\
00263 ";
00264 }
00265
00266 static const char* value(const ::sba::CameraNode_<ContainerAllocator> &) { return value(); }
00267 };
00268
00269 template<class ContainerAllocator> struct IsFixedSize< ::sba::CameraNode_<ContainerAllocator> > : public TrueType {};
00270 }
00271 }
00272
00273 namespace ros
00274 {
00275 namespace serialization
00276 {
00277
00278 template<class ContainerAllocator> struct Serializer< ::sba::CameraNode_<ContainerAllocator> >
00279 {
00280 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00281 {
00282 stream.next(m.index);
00283 stream.next(m.transform);
00284 stream.next(m.fx);
00285 stream.next(m.fy);
00286 stream.next(m.cx);
00287 stream.next(m.cy);
00288 stream.next(m.baseline);
00289 stream.next(m.fixed);
00290 }
00291
00292 ROS_DECLARE_ALLINONE_SERIALIZER;
00293 };
00294 }
00295 }
00296
00297 namespace ros
00298 {
00299 namespace message_operations
00300 {
00301
00302 template<class ContainerAllocator>
00303 struct Printer< ::sba::CameraNode_<ContainerAllocator> >
00304 {
00305 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::sba::CameraNode_<ContainerAllocator> & v)
00306 {
00307 s << indent << "index: ";
00308 Printer<uint32_t>::stream(s, indent + " ", v.index);
00309 s << indent << "transform: ";
00310 s << std::endl;
00311 Printer< ::geometry_msgs::Transform_<ContainerAllocator> >::stream(s, indent + " ", v.transform);
00312 s << indent << "fx: ";
00313 Printer<double>::stream(s, indent + " ", v.fx);
00314 s << indent << "fy: ";
00315 Printer<double>::stream(s, indent + " ", v.fy);
00316 s << indent << "cx: ";
00317 Printer<double>::stream(s, indent + " ", v.cx);
00318 s << indent << "cy: ";
00319 Printer<double>::stream(s, indent + " ", v.cy);
00320 s << indent << "baseline: ";
00321 Printer<double>::stream(s, indent + " ", v.baseline);
00322 s << indent << "fixed: ";
00323 Printer<uint8_t>::stream(s, indent + " ", v.fixed);
00324 }
00325 };
00326
00327
00328 }
00329 }
00330
00331 #endif // SBA_MESSAGE_CAMERANODE_H
00332