Go to the documentation of this file.00001
00002 #ifndef COROBOT_MSGS_MESSAGE_VIDEOMODE_H
00003 #define COROBOT_MSGS_MESSAGE_VIDEOMODE_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 "std_msgs/Header.h"
00018
00019 namespace corobot_msgs
00020 {
00021 template <class ContainerAllocator>
00022 struct videomode_ {
00023 typedef videomode_<ContainerAllocator> Type;
00024
00025 videomode_()
00026 : header()
00027 , immediately(false)
00028 , width(0)
00029 , height(0)
00030 , fps(0)
00031 , auto_exposure(false)
00032 {
00033 }
00034
00035 videomode_(const ContainerAllocator& _alloc)
00036 : header(_alloc)
00037 , immediately(false)
00038 , width(0)
00039 , height(0)
00040 , fps(0)
00041 , auto_exposure(false)
00042 {
00043 }
00044
00045 typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
00046 ::std_msgs::Header_<ContainerAllocator> header;
00047
00048 typedef uint8_t _immediately_type;
00049 uint8_t immediately;
00050
00051 typedef uint16_t _width_type;
00052 uint16_t width;
00053
00054 typedef uint16_t _height_type;
00055 uint16_t height;
00056
00057 typedef uint8_t _fps_type;
00058 uint8_t fps;
00059
00060 typedef uint8_t _auto_exposure_type;
00061 uint8_t auto_exposure;
00062
00063
00064 typedef boost::shared_ptr< ::corobot_msgs::videomode_<ContainerAllocator> > Ptr;
00065 typedef boost::shared_ptr< ::corobot_msgs::videomode_<ContainerAllocator> const> ConstPtr;
00066 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00067 };
00068 typedef ::corobot_msgs::videomode_<std::allocator<void> > videomode;
00069
00070 typedef boost::shared_ptr< ::corobot_msgs::videomode> videomodePtr;
00071 typedef boost::shared_ptr< ::corobot_msgs::videomode const> videomodeConstPtr;
00072
00073
00074 template<typename ContainerAllocator>
00075 std::ostream& operator<<(std::ostream& s, const ::corobot_msgs::videomode_<ContainerAllocator> & v)
00076 {
00077 ros::message_operations::Printer< ::corobot_msgs::videomode_<ContainerAllocator> >::stream(s, "", v);
00078 return s;}
00079
00080 }
00081
00082 namespace ros
00083 {
00084 namespace message_traits
00085 {
00086 template<class ContainerAllocator> struct IsMessage< ::corobot_msgs::videomode_<ContainerAllocator> > : public TrueType {};
00087 template<class ContainerAllocator> struct IsMessage< ::corobot_msgs::videomode_<ContainerAllocator> const> : public TrueType {};
00088 template<class ContainerAllocator>
00089 struct MD5Sum< ::corobot_msgs::videomode_<ContainerAllocator> > {
00090 static const char* value()
00091 {
00092 return "5bf6aeb9e3ba1dd691c5c50529d7e824";
00093 }
00094
00095 static const char* value(const ::corobot_msgs::videomode_<ContainerAllocator> &) { return value(); }
00096 static const uint64_t static_value1 = 0x5bf6aeb9e3ba1dd6ULL;
00097 static const uint64_t static_value2 = 0x91c5c50529d7e824ULL;
00098 };
00099
00100 template<class ContainerAllocator>
00101 struct DataType< ::corobot_msgs::videomode_<ContainerAllocator> > {
00102 static const char* value()
00103 {
00104 return "corobot_msgs/videomode";
00105 }
00106
00107 static const char* value(const ::corobot_msgs::videomode_<ContainerAllocator> &) { return value(); }
00108 };
00109
00110 template<class ContainerAllocator>
00111 struct Definition< ::corobot_msgs::videomode_<ContainerAllocator> > {
00112 static const char* value()
00113 {
00114 return "Header header\n\
00115 bool immediately\n\
00116 uint16 width\n\
00117 uint16 height\n\
00118 uint8 fps\n\
00119 bool auto_exposure\n\
00120 \n\
00121 ================================================================================\n\
00122 MSG: std_msgs/Header\n\
00123 # Standard metadata for higher-level stamped data types.\n\
00124 # This is generally used to communicate timestamped data \n\
00125 # in a particular coordinate frame.\n\
00126 # \n\
00127 # sequence ID: consecutively increasing ID \n\
00128 uint32 seq\n\
00129 #Two-integer timestamp that is expressed as:\n\
00130 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00131 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00132 # time-handling sugar is provided by the client library\n\
00133 time stamp\n\
00134 #Frame this data is associated with\n\
00135 # 0: no frame\n\
00136 # 1: global frame\n\
00137 string frame_id\n\
00138 \n\
00139 ";
00140 }
00141
00142 static const char* value(const ::corobot_msgs::videomode_<ContainerAllocator> &) { return value(); }
00143 };
00144
00145 template<class ContainerAllocator> struct HasHeader< ::corobot_msgs::videomode_<ContainerAllocator> > : public TrueType {};
00146 template<class ContainerAllocator> struct HasHeader< const ::corobot_msgs::videomode_<ContainerAllocator> > : public TrueType {};
00147 }
00148 }
00149
00150 namespace ros
00151 {
00152 namespace serialization
00153 {
00154
00155 template<class ContainerAllocator> struct Serializer< ::corobot_msgs::videomode_<ContainerAllocator> >
00156 {
00157 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00158 {
00159 stream.next(m.header);
00160 stream.next(m.immediately);
00161 stream.next(m.width);
00162 stream.next(m.height);
00163 stream.next(m.fps);
00164 stream.next(m.auto_exposure);
00165 }
00166
00167 ROS_DECLARE_ALLINONE_SERIALIZER;
00168 };
00169 }
00170 }
00171
00172 namespace ros
00173 {
00174 namespace message_operations
00175 {
00176
00177 template<class ContainerAllocator>
00178 struct Printer< ::corobot_msgs::videomode_<ContainerAllocator> >
00179 {
00180 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::corobot_msgs::videomode_<ContainerAllocator> & v)
00181 {
00182 s << indent << "header: ";
00183 s << std::endl;
00184 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header);
00185 s << indent << "immediately: ";
00186 Printer<uint8_t>::stream(s, indent + " ", v.immediately);
00187 s << indent << "width: ";
00188 Printer<uint16_t>::stream(s, indent + " ", v.width);
00189 s << indent << "height: ";
00190 Printer<uint16_t>::stream(s, indent + " ", v.height);
00191 s << indent << "fps: ";
00192 Printer<uint8_t>::stream(s, indent + " ", v.fps);
00193 s << indent << "auto_exposure: ";
00194 Printer<uint8_t>::stream(s, indent + " ", v.auto_exposure);
00195 }
00196 };
00197
00198
00199 }
00200 }
00201
00202 #endif // COROBOT_MSGS_MESSAGE_VIDEOMODE_H
00203