Go to the documentation of this file.00001
00002 #ifndef CANON_VBC50I_MESSAGE_PTZ_H
00003 #define CANON_VBC50I_MESSAGE_PTZ_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
00018 namespace canon_vbc50i
00019 {
00020 template <class ContainerAllocator>
00021 struct PTZ_ {
00022 typedef PTZ_<ContainerAllocator> Type;
00023
00024 PTZ_()
00025 : pan(0.0)
00026 , tilt(0.0)
00027 , zoom(0.0)
00028 {
00029 }
00030
00031 PTZ_(const ContainerAllocator& _alloc)
00032 : pan(0.0)
00033 , tilt(0.0)
00034 , zoom(0.0)
00035 {
00036 }
00037
00038 typedef float _pan_type;
00039 float pan;
00040
00041 typedef float _tilt_type;
00042 float tilt;
00043
00044 typedef float _zoom_type;
00045 float zoom;
00046
00047
00048 typedef boost::shared_ptr< ::canon_vbc50i::PTZ_<ContainerAllocator> > Ptr;
00049 typedef boost::shared_ptr< ::canon_vbc50i::PTZ_<ContainerAllocator> const> ConstPtr;
00050 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00051 };
00052 typedef ::canon_vbc50i::PTZ_<std::allocator<void> > PTZ;
00053
00054 typedef boost::shared_ptr< ::canon_vbc50i::PTZ> PTZPtr;
00055 typedef boost::shared_ptr< ::canon_vbc50i::PTZ const> PTZConstPtr;
00056
00057
00058 template<typename ContainerAllocator>
00059 std::ostream& operator<<(std::ostream& s, const ::canon_vbc50i::PTZ_<ContainerAllocator> & v)
00060 {
00061 ros::message_operations::Printer< ::canon_vbc50i::PTZ_<ContainerAllocator> >::stream(s, "", v);
00062 return s;}
00063
00064 }
00065
00066 namespace ros
00067 {
00068 namespace message_traits
00069 {
00070 template<class ContainerAllocator> struct IsMessage< ::canon_vbc50i::PTZ_<ContainerAllocator> > : public TrueType {};
00071 template<class ContainerAllocator> struct IsMessage< ::canon_vbc50i::PTZ_<ContainerAllocator> const> : public TrueType {};
00072 template<class ContainerAllocator>
00073 struct MD5Sum< ::canon_vbc50i::PTZ_<ContainerAllocator> > {
00074 static const char* value()
00075 {
00076 return "eef4827ef5b8ba89a8c9fa0810a30294";
00077 }
00078
00079 static const char* value(const ::canon_vbc50i::PTZ_<ContainerAllocator> &) { return value(); }
00080 static const uint64_t static_value1 = 0xeef4827ef5b8ba89ULL;
00081 static const uint64_t static_value2 = 0xa8c9fa0810a30294ULL;
00082 };
00083
00084 template<class ContainerAllocator>
00085 struct DataType< ::canon_vbc50i::PTZ_<ContainerAllocator> > {
00086 static const char* value()
00087 {
00088 return "canon_vbc50i/PTZ";
00089 }
00090
00091 static const char* value(const ::canon_vbc50i::PTZ_<ContainerAllocator> &) { return value(); }
00092 };
00093
00094 template<class ContainerAllocator>
00095 struct Definition< ::canon_vbc50i::PTZ_<ContainerAllocator> > {
00096 static const char* value()
00097 {
00098 return "float32 pan\n\
00099 float32 tilt\n\
00100 float32 zoom\n\
00101 \n\
00102 ";
00103 }
00104
00105 static const char* value(const ::canon_vbc50i::PTZ_<ContainerAllocator> &) { return value(); }
00106 };
00107
00108 template<class ContainerAllocator> struct IsFixedSize< ::canon_vbc50i::PTZ_<ContainerAllocator> > : public TrueType {};
00109 }
00110 }
00111
00112 namespace ros
00113 {
00114 namespace serialization
00115 {
00116
00117 template<class ContainerAllocator> struct Serializer< ::canon_vbc50i::PTZ_<ContainerAllocator> >
00118 {
00119 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00120 {
00121 stream.next(m.pan);
00122 stream.next(m.tilt);
00123 stream.next(m.zoom);
00124 }
00125
00126 ROS_DECLARE_ALLINONE_SERIALIZER;
00127 };
00128 }
00129 }
00130
00131 namespace ros
00132 {
00133 namespace message_operations
00134 {
00135
00136 template<class ContainerAllocator>
00137 struct Printer< ::canon_vbc50i::PTZ_<ContainerAllocator> >
00138 {
00139 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::canon_vbc50i::PTZ_<ContainerAllocator> & v)
00140 {
00141 s << indent << "pan: ";
00142 Printer<float>::stream(s, indent + " ", v.pan);
00143 s << indent << "tilt: ";
00144 Printer<float>::stream(s, indent + " ", v.tilt);
00145 s << indent << "zoom: ";
00146 Printer<float>::stream(s, indent + " ", v.zoom);
00147 }
00148 };
00149
00150
00151 }
00152 }
00153
00154 #endif // CANON_VBC50I_MESSAGE_PTZ_H
00155