$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-ros_tutorials/doc_stacks/2013-03-02_13-18-38.146089/ros_tutorials/turtlesim/msg/Color.msg */ 00002 #ifndef TURTLESIM_MESSAGE_COLOR_H 00003 #define TURTLESIM_MESSAGE_COLOR_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 turtlesim 00019 { 00020 template <class ContainerAllocator> 00021 struct Color_ { 00022 typedef Color_<ContainerAllocator> Type; 00023 00024 Color_() 00025 : r(0) 00026 , g(0) 00027 , b(0) 00028 { 00029 } 00030 00031 Color_(const ContainerAllocator& _alloc) 00032 : r(0) 00033 , g(0) 00034 , b(0) 00035 { 00036 } 00037 00038 typedef uint8_t _r_type; 00039 uint8_t r; 00040 00041 typedef uint8_t _g_type; 00042 uint8_t g; 00043 00044 typedef uint8_t _b_type; 00045 uint8_t b; 00046 00047 00048 private: 00049 static const char* __s_getDataType_() { return "turtlesim/Color"; } 00050 public: 00051 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00052 00053 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00054 00055 private: 00056 static const char* __s_getMD5Sum_() { return "353891e354491c51aabe32df673fb446"; } 00057 public: 00058 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00059 00060 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00061 00062 private: 00063 static const char* __s_getMessageDefinition_() { return "uint8 r\n\ 00064 uint8 g\n\ 00065 uint8 b\n\ 00066 \n\ 00067 "; } 00068 public: 00069 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00070 00071 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00072 00073 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00074 { 00075 ros::serialization::OStream stream(write_ptr, 1000000000); 00076 ros::serialization::serialize(stream, r); 00077 ros::serialization::serialize(stream, g); 00078 ros::serialization::serialize(stream, b); 00079 return stream.getData(); 00080 } 00081 00082 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00083 { 00084 ros::serialization::IStream stream(read_ptr, 1000000000); 00085 ros::serialization::deserialize(stream, r); 00086 ros::serialization::deserialize(stream, g); 00087 ros::serialization::deserialize(stream, b); 00088 return stream.getData(); 00089 } 00090 00091 ROS_DEPRECATED virtual uint32_t serializationLength() const 00092 { 00093 uint32_t size = 0; 00094 size += ros::serialization::serializationLength(r); 00095 size += ros::serialization::serializationLength(g); 00096 size += ros::serialization::serializationLength(b); 00097 return size; 00098 } 00099 00100 typedef boost::shared_ptr< ::turtlesim::Color_<ContainerAllocator> > Ptr; 00101 typedef boost::shared_ptr< ::turtlesim::Color_<ContainerAllocator> const> ConstPtr; 00102 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00103 }; // struct Color 00104 typedef ::turtlesim::Color_<std::allocator<void> > Color; 00105 00106 typedef boost::shared_ptr< ::turtlesim::Color> ColorPtr; 00107 typedef boost::shared_ptr< ::turtlesim::Color const> ColorConstPtr; 00108 00109 00110 template<typename ContainerAllocator> 00111 std::ostream& operator<<(std::ostream& s, const ::turtlesim::Color_<ContainerAllocator> & v) 00112 { 00113 ros::message_operations::Printer< ::turtlesim::Color_<ContainerAllocator> >::stream(s, "", v); 00114 return s;} 00115 00116 } // namespace turtlesim 00117 00118 namespace ros 00119 { 00120 namespace message_traits 00121 { 00122 template<class ContainerAllocator> struct IsMessage< ::turtlesim::Color_<ContainerAllocator> > : public TrueType {}; 00123 template<class ContainerAllocator> struct IsMessage< ::turtlesim::Color_<ContainerAllocator> const> : public TrueType {}; 00124 template<class ContainerAllocator> 00125 struct MD5Sum< ::turtlesim::Color_<ContainerAllocator> > { 00126 static const char* value() 00127 { 00128 return "353891e354491c51aabe32df673fb446"; 00129 } 00130 00131 static const char* value(const ::turtlesim::Color_<ContainerAllocator> &) { return value(); } 00132 static const uint64_t static_value1 = 0x353891e354491c51ULL; 00133 static const uint64_t static_value2 = 0xaabe32df673fb446ULL; 00134 }; 00135 00136 template<class ContainerAllocator> 00137 struct DataType< ::turtlesim::Color_<ContainerAllocator> > { 00138 static const char* value() 00139 { 00140 return "turtlesim/Color"; 00141 } 00142 00143 static const char* value(const ::turtlesim::Color_<ContainerAllocator> &) { return value(); } 00144 }; 00145 00146 template<class ContainerAllocator> 00147 struct Definition< ::turtlesim::Color_<ContainerAllocator> > { 00148 static const char* value() 00149 { 00150 return "uint8 r\n\ 00151 uint8 g\n\ 00152 uint8 b\n\ 00153 \n\ 00154 "; 00155 } 00156 00157 static const char* value(const ::turtlesim::Color_<ContainerAllocator> &) { return value(); } 00158 }; 00159 00160 template<class ContainerAllocator> struct IsFixedSize< ::turtlesim::Color_<ContainerAllocator> > : public TrueType {}; 00161 } // namespace message_traits 00162 } // namespace ros 00163 00164 namespace ros 00165 { 00166 namespace serialization 00167 { 00168 00169 template<class ContainerAllocator> struct Serializer< ::turtlesim::Color_<ContainerAllocator> > 00170 { 00171 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00172 { 00173 stream.next(m.r); 00174 stream.next(m.g); 00175 stream.next(m.b); 00176 } 00177 00178 ROS_DECLARE_ALLINONE_SERIALIZER; 00179 }; // struct Color_ 00180 } // namespace serialization 00181 } // namespace ros 00182 00183 namespace ros 00184 { 00185 namespace message_operations 00186 { 00187 00188 template<class ContainerAllocator> 00189 struct Printer< ::turtlesim::Color_<ContainerAllocator> > 00190 { 00191 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::turtlesim::Color_<ContainerAllocator> & v) 00192 { 00193 s << indent << "r: "; 00194 Printer<uint8_t>::stream(s, indent + " ", v.r); 00195 s << indent << "g: "; 00196 Printer<uint8_t>::stream(s, indent + " ", v.g); 00197 s << indent << "b: "; 00198 Printer<uint8_t>::stream(s, indent + " ", v.b); 00199 } 00200 }; 00201 00202 00203 } // namespace message_operations 00204 } // namespace ros 00205 00206 #endif // TURTLESIM_MESSAGE_COLOR_H 00207