Go to the documentation of this file.00001
00002 #ifndef VISION_MSGS_MESSAGE_COP_CAMERA_MODE_H
00003 #define VISION_MSGS_MESSAGE_COP_CAMERA_MODE_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 vision_msgs
00019 {
00020 template <class ContainerAllocator>
00021 struct cop_camera_mode_ {
00022 typedef cop_camera_mode_<ContainerAllocator> Type;
00023
00024 cop_camera_mode_()
00025 : mode()
00026 {
00027 }
00028
00029 cop_camera_mode_(const ContainerAllocator& _alloc)
00030 : mode(_alloc)
00031 {
00032 }
00033
00034 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _mode_type;
00035 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > mode;
00036
00037 static const std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > VERY_DARK_ENVIRONMENT;
00038 static const std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > DARK_ENVIRONMENT;
00039 static const std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > AVERAGE_ENVIRONMENT;
00040 static const std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > BRIGHT_ENVIRONMENT;
00041
00042 typedef boost::shared_ptr< ::vision_msgs::cop_camera_mode_<ContainerAllocator> > Ptr;
00043 typedef boost::shared_ptr< ::vision_msgs::cop_camera_mode_<ContainerAllocator> const> ConstPtr;
00044 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00045 };
00046 typedef ::vision_msgs::cop_camera_mode_<std::allocator<void> > cop_camera_mode;
00047
00048 typedef boost::shared_ptr< ::vision_msgs::cop_camera_mode> cop_camera_modePtr;
00049 typedef boost::shared_ptr< ::vision_msgs::cop_camera_mode const> cop_camera_modeConstPtr;
00050
00051 template<typename ContainerAllocator> const std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > cop_camera_mode_<ContainerAllocator>::VERY_DARK_ENVIRONMENT = "VeryDarkEnvironment";
00052 template<typename ContainerAllocator> const std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > cop_camera_mode_<ContainerAllocator>::DARK_ENVIRONMENT = "DarkEnvironment";
00053 template<typename ContainerAllocator> const std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > cop_camera_mode_<ContainerAllocator>::AVERAGE_ENVIRONMENT = "AverageEnvironment";
00054 template<typename ContainerAllocator> const std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > cop_camera_mode_<ContainerAllocator>::BRIGHT_ENVIRONMENT = "BrightEnvironment";
00055
00056 template<typename ContainerAllocator>
00057 std::ostream& operator<<(std::ostream& s, const ::vision_msgs::cop_camera_mode_<ContainerAllocator> & v)
00058 {
00059 ros::message_operations::Printer< ::vision_msgs::cop_camera_mode_<ContainerAllocator> >::stream(s, "", v);
00060 return s;}
00061
00062 }
00063
00064 namespace ros
00065 {
00066 namespace message_traits
00067 {
00068 template<class ContainerAllocator> struct IsMessage< ::vision_msgs::cop_camera_mode_<ContainerAllocator> > : public TrueType {};
00069 template<class ContainerAllocator> struct IsMessage< ::vision_msgs::cop_camera_mode_<ContainerAllocator> const> : public TrueType {};
00070 template<class ContainerAllocator>
00071 struct MD5Sum< ::vision_msgs::cop_camera_mode_<ContainerAllocator> > {
00072 static const char* value()
00073 {
00074 return "238c3e19ca5f691ca2ef2dd46e1bb593";
00075 }
00076
00077 static const char* value(const ::vision_msgs::cop_camera_mode_<ContainerAllocator> &) { return value(); }
00078 static const uint64_t static_value1 = 0x238c3e19ca5f691cULL;
00079 static const uint64_t static_value2 = 0xa2ef2dd46e1bb593ULL;
00080 };
00081
00082 template<class ContainerAllocator>
00083 struct DataType< ::vision_msgs::cop_camera_mode_<ContainerAllocator> > {
00084 static const char* value()
00085 {
00086 return "vision_msgs/cop_camera_mode";
00087 }
00088
00089 static const char* value(const ::vision_msgs::cop_camera_mode_<ContainerAllocator> &) { return value(); }
00090 };
00091
00092 template<class ContainerAllocator>
00093 struct Definition< ::vision_msgs::cop_camera_mode_<ContainerAllocator> > {
00094 static const char* value()
00095 {
00096 return "string VERY_DARK_ENVIRONMENT=VeryDarkEnvironment\n\
00097 string DARK_ENVIRONMENT=DarkEnvironment\n\
00098 string AVERAGE_ENVIRONMENT=AverageEnvironment\n\
00099 string BRIGHT_ENVIRONMENT=BrightEnvironment\n\
00100 \n\
00101 string mode # switches camera to different environment modes\n\
00102 ";
00103 }
00104
00105 static const char* value(const ::vision_msgs::cop_camera_mode_<ContainerAllocator> &) { return value(); }
00106 };
00107
00108 }
00109 }
00110
00111 namespace ros
00112 {
00113 namespace serialization
00114 {
00115
00116 template<class ContainerAllocator> struct Serializer< ::vision_msgs::cop_camera_mode_<ContainerAllocator> >
00117 {
00118 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00119 {
00120 stream.next(m.mode);
00121 }
00122
00123 ROS_DECLARE_ALLINONE_SERIALIZER;
00124 };
00125 }
00126 }
00127
00128 namespace ros
00129 {
00130 namespace message_operations
00131 {
00132
00133 template<class ContainerAllocator>
00134 struct Printer< ::vision_msgs::cop_camera_mode_<ContainerAllocator> >
00135 {
00136 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::vision_msgs::cop_camera_mode_<ContainerAllocator> & v)
00137 {
00138 s << indent << "mode: ";
00139 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.mode);
00140 }
00141 };
00142
00143
00144 }
00145 }
00146
00147 #endif // VISION_MSGS_MESSAGE_COP_CAMERA_MODE_H
00148