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