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 <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
00014 namespace vision_msgs
00015 {
00016 template <class ContainerAllocator>
00017 struct cop_camera_mode_ : public ros::Message
00018 {
00019 typedef cop_camera_mode_<ContainerAllocator> Type;
00020
00021 cop_camera_mode_()
00022 : mode()
00023 {
00024 }
00025
00026 cop_camera_mode_(const ContainerAllocator& _alloc)
00027 : mode(_alloc)
00028 {
00029 }
00030
00031 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _mode_type;
00032 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > mode;
00033
00034 static const std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > VERY_DARK_ENVIRONMENT;
00035 static const std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > DARK_ENVIRONMENT;
00036 static const std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > AVERAGE_ENVIRONMENT;
00037 static const std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > BRIGHT_ENVIRONMENT;
00038
00039 private:
00040 static const char* __s_getDataType_() { return "vision_msgs/cop_camera_mode"; }
00041 public:
00042 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00043
00044 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00045
00046 private:
00047 static const char* __s_getMD5Sum_() { return "238c3e19ca5f691ca2ef2dd46e1bb593"; }
00048 public:
00049 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00050
00051 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00052
00053 private:
00054 static const char* __s_getMessageDefinition_() { return "string VERY_DARK_ENVIRONMENT=VeryDarkEnvironment\n\
00055 string DARK_ENVIRONMENT=DarkEnvironment\n\
00056 string AVERAGE_ENVIRONMENT=AverageEnvironment\n\
00057 string BRIGHT_ENVIRONMENT=BrightEnvironment\n\
00058 \n\
00059 string mode # switches camera to different environment modes\n\
00060 "; }
00061 public:
00062 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00063
00064 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00065
00066 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00067 {
00068 ros::serialization::OStream stream(write_ptr, 1000000000);
00069 ros::serialization::serialize(stream, mode);
00070 return stream.getData();
00071 }
00072
00073 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00074 {
00075 ros::serialization::IStream stream(read_ptr, 1000000000);
00076 ros::serialization::deserialize(stream, mode);
00077 return stream.getData();
00078 }
00079
00080 ROS_DEPRECATED virtual uint32_t serializationLength() const
00081 {
00082 uint32_t size = 0;
00083 size += ros::serialization::serializationLength(mode);
00084 return size;
00085 }
00086
00087 typedef boost::shared_ptr< ::vision_msgs::cop_camera_mode_<ContainerAllocator> > Ptr;
00088 typedef boost::shared_ptr< ::vision_msgs::cop_camera_mode_<ContainerAllocator> const> ConstPtr;
00089 };
00090 typedef ::vision_msgs::cop_camera_mode_<std::allocator<void> > cop_camera_mode;
00091
00092 typedef boost::shared_ptr< ::vision_msgs::cop_camera_mode> cop_camera_modePtr;
00093 typedef boost::shared_ptr< ::vision_msgs::cop_camera_mode const> cop_camera_modeConstPtr;
00094
00095 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";
00096 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";
00097 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";
00098 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";
00099
00100 template<typename ContainerAllocator>
00101 std::ostream& operator<<(std::ostream& s, const ::vision_msgs::cop_camera_mode_<ContainerAllocator> & v)
00102 {
00103 ros::message_operations::Printer< ::vision_msgs::cop_camera_mode_<ContainerAllocator> >::stream(s, "", v);
00104 return s;}
00105
00106 }
00107
00108 namespace ros
00109 {
00110 namespace message_traits
00111 {
00112 template<class ContainerAllocator>
00113 struct MD5Sum< ::vision_msgs::cop_camera_mode_<ContainerAllocator> > {
00114 static const char* value()
00115 {
00116 return "238c3e19ca5f691ca2ef2dd46e1bb593";
00117 }
00118
00119 static const char* value(const ::vision_msgs::cop_camera_mode_<ContainerAllocator> &) { return value(); }
00120 static const uint64_t static_value1 = 0x238c3e19ca5f691cULL;
00121 static const uint64_t static_value2 = 0xa2ef2dd46e1bb593ULL;
00122 };
00123
00124 template<class ContainerAllocator>
00125 struct DataType< ::vision_msgs::cop_camera_mode_<ContainerAllocator> > {
00126 static const char* value()
00127 {
00128 return "vision_msgs/cop_camera_mode";
00129 }
00130
00131 static const char* value(const ::vision_msgs::cop_camera_mode_<ContainerAllocator> &) { return value(); }
00132 };
00133
00134 template<class ContainerAllocator>
00135 struct Definition< ::vision_msgs::cop_camera_mode_<ContainerAllocator> > {
00136 static const char* value()
00137 {
00138 return "string VERY_DARK_ENVIRONMENT=VeryDarkEnvironment\n\
00139 string DARK_ENVIRONMENT=DarkEnvironment\n\
00140 string AVERAGE_ENVIRONMENT=AverageEnvironment\n\
00141 string BRIGHT_ENVIRONMENT=BrightEnvironment\n\
00142 \n\
00143 string mode # switches camera to different environment modes\n\
00144 ";
00145 }
00146
00147 static const char* value(const ::vision_msgs::cop_camera_mode_<ContainerAllocator> &) { return value(); }
00148 };
00149
00150 }
00151 }
00152
00153 namespace ros
00154 {
00155 namespace serialization
00156 {
00157
00158 template<class ContainerAllocator> struct Serializer< ::vision_msgs::cop_camera_mode_<ContainerAllocator> >
00159 {
00160 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00161 {
00162 stream.next(m.mode);
00163 }
00164
00165 ROS_DECLARE_ALLINONE_SERIALIZER;
00166 };
00167 }
00168 }
00169
00170 namespace ros
00171 {
00172 namespace message_operations
00173 {
00174
00175 template<class ContainerAllocator>
00176 struct Printer< ::vision_msgs::cop_camera_mode_<ContainerAllocator> >
00177 {
00178 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::vision_msgs::cop_camera_mode_<ContainerAllocator> & v)
00179 {
00180 s << indent << "mode: ";
00181 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.mode);
00182 }
00183 };
00184
00185
00186 }
00187 }
00188
00189 #endif // VISION_MSGS_MESSAGE_COP_CAMERA_MODE_H
00190