$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-nxt/doc_stacks/2013-03-01_16-09-41.480973/nxt/nxt_msgs/msg/Color.msg */ 00002 #ifndef NXT_MSGS_MESSAGE_COLOR_H 00003 #define NXT_MSGS_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 #include "std_msgs/Header.h" 00018 00019 namespace nxt_msgs 00020 { 00021 template <class ContainerAllocator> 00022 struct Color_ { 00023 typedef Color_<ContainerAllocator> Type; 00024 00025 Color_() 00026 : header() 00027 , intensity(0.0) 00028 , r(0.0) 00029 , g(0.0) 00030 , b(0.0) 00031 { 00032 } 00033 00034 Color_(const ContainerAllocator& _alloc) 00035 : header(_alloc) 00036 , intensity(0.0) 00037 , r(0.0) 00038 , g(0.0) 00039 , b(0.0) 00040 { 00041 } 00042 00043 typedef ::std_msgs::Header_<ContainerAllocator> _header_type; 00044 ::std_msgs::Header_<ContainerAllocator> header; 00045 00046 typedef double _intensity_type; 00047 double intensity; 00048 00049 typedef double _r_type; 00050 double r; 00051 00052 typedef double _g_type; 00053 double g; 00054 00055 typedef double _b_type; 00056 double b; 00057 00058 00059 private: 00060 static const char* __s_getDataType_() { return "nxt_msgs/Color"; } 00061 public: 00062 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00063 00064 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00065 00066 private: 00067 static const char* __s_getMD5Sum_() { return "a62a6387c4711f26d641ffa6e12a86e8"; } 00068 public: 00069 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00070 00071 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00072 00073 private: 00074 static const char* __s_getMessageDefinition_() { return "Header header\n\ 00075 float64 intensity\n\ 00076 float64 r\n\ 00077 float64 g\n\ 00078 float64 b\n\ 00079 ================================================================================\n\ 00080 MSG: std_msgs/Header\n\ 00081 # Standard metadata for higher-level stamped data types.\n\ 00082 # This is generally used to communicate timestamped data \n\ 00083 # in a particular coordinate frame.\n\ 00084 # \n\ 00085 # sequence ID: consecutively increasing ID \n\ 00086 uint32 seq\n\ 00087 #Two-integer timestamp that is expressed as:\n\ 00088 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00089 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00090 # time-handling sugar is provided by the client library\n\ 00091 time stamp\n\ 00092 #Frame this data is associated with\n\ 00093 # 0: no frame\n\ 00094 # 1: global frame\n\ 00095 string frame_id\n\ 00096 \n\ 00097 "; } 00098 public: 00099 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00100 00101 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00102 00103 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00104 { 00105 ros::serialization::OStream stream(write_ptr, 1000000000); 00106 ros::serialization::serialize(stream, header); 00107 ros::serialization::serialize(stream, intensity); 00108 ros::serialization::serialize(stream, r); 00109 ros::serialization::serialize(stream, g); 00110 ros::serialization::serialize(stream, b); 00111 return stream.getData(); 00112 } 00113 00114 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00115 { 00116 ros::serialization::IStream stream(read_ptr, 1000000000); 00117 ros::serialization::deserialize(stream, header); 00118 ros::serialization::deserialize(stream, intensity); 00119 ros::serialization::deserialize(stream, r); 00120 ros::serialization::deserialize(stream, g); 00121 ros::serialization::deserialize(stream, b); 00122 return stream.getData(); 00123 } 00124 00125 ROS_DEPRECATED virtual uint32_t serializationLength() const 00126 { 00127 uint32_t size = 0; 00128 size += ros::serialization::serializationLength(header); 00129 size += ros::serialization::serializationLength(intensity); 00130 size += ros::serialization::serializationLength(r); 00131 size += ros::serialization::serializationLength(g); 00132 size += ros::serialization::serializationLength(b); 00133 return size; 00134 } 00135 00136 typedef boost::shared_ptr< ::nxt_msgs::Color_<ContainerAllocator> > Ptr; 00137 typedef boost::shared_ptr< ::nxt_msgs::Color_<ContainerAllocator> const> ConstPtr; 00138 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00139 }; // struct Color 00140 typedef ::nxt_msgs::Color_<std::allocator<void> > Color; 00141 00142 typedef boost::shared_ptr< ::nxt_msgs::Color> ColorPtr; 00143 typedef boost::shared_ptr< ::nxt_msgs::Color const> ColorConstPtr; 00144 00145 00146 template<typename ContainerAllocator> 00147 std::ostream& operator<<(std::ostream& s, const ::nxt_msgs::Color_<ContainerAllocator> & v) 00148 { 00149 ros::message_operations::Printer< ::nxt_msgs::Color_<ContainerAllocator> >::stream(s, "", v); 00150 return s;} 00151 00152 } // namespace nxt_msgs 00153 00154 namespace ros 00155 { 00156 namespace message_traits 00157 { 00158 template<class ContainerAllocator> struct IsMessage< ::nxt_msgs::Color_<ContainerAllocator> > : public TrueType {}; 00159 template<class ContainerAllocator> struct IsMessage< ::nxt_msgs::Color_<ContainerAllocator> const> : public TrueType {}; 00160 template<class ContainerAllocator> 00161 struct MD5Sum< ::nxt_msgs::Color_<ContainerAllocator> > { 00162 static const char* value() 00163 { 00164 return "a62a6387c4711f26d641ffa6e12a86e8"; 00165 } 00166 00167 static const char* value(const ::nxt_msgs::Color_<ContainerAllocator> &) { return value(); } 00168 static const uint64_t static_value1 = 0xa62a6387c4711f26ULL; 00169 static const uint64_t static_value2 = 0xd641ffa6e12a86e8ULL; 00170 }; 00171 00172 template<class ContainerAllocator> 00173 struct DataType< ::nxt_msgs::Color_<ContainerAllocator> > { 00174 static const char* value() 00175 { 00176 return "nxt_msgs/Color"; 00177 } 00178 00179 static const char* value(const ::nxt_msgs::Color_<ContainerAllocator> &) { return value(); } 00180 }; 00181 00182 template<class ContainerAllocator> 00183 struct Definition< ::nxt_msgs::Color_<ContainerAllocator> > { 00184 static const char* value() 00185 { 00186 return "Header header\n\ 00187 float64 intensity\n\ 00188 float64 r\n\ 00189 float64 g\n\ 00190 float64 b\n\ 00191 ================================================================================\n\ 00192 MSG: std_msgs/Header\n\ 00193 # Standard metadata for higher-level stamped data types.\n\ 00194 # This is generally used to communicate timestamped data \n\ 00195 # in a particular coordinate frame.\n\ 00196 # \n\ 00197 # sequence ID: consecutively increasing ID \n\ 00198 uint32 seq\n\ 00199 #Two-integer timestamp that is expressed as:\n\ 00200 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00201 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00202 # time-handling sugar is provided by the client library\n\ 00203 time stamp\n\ 00204 #Frame this data is associated with\n\ 00205 # 0: no frame\n\ 00206 # 1: global frame\n\ 00207 string frame_id\n\ 00208 \n\ 00209 "; 00210 } 00211 00212 static const char* value(const ::nxt_msgs::Color_<ContainerAllocator> &) { return value(); } 00213 }; 00214 00215 template<class ContainerAllocator> struct HasHeader< ::nxt_msgs::Color_<ContainerAllocator> > : public TrueType {}; 00216 template<class ContainerAllocator> struct HasHeader< const ::nxt_msgs::Color_<ContainerAllocator> > : public TrueType {}; 00217 } // namespace message_traits 00218 } // namespace ros 00219 00220 namespace ros 00221 { 00222 namespace serialization 00223 { 00224 00225 template<class ContainerAllocator> struct Serializer< ::nxt_msgs::Color_<ContainerAllocator> > 00226 { 00227 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00228 { 00229 stream.next(m.header); 00230 stream.next(m.intensity); 00231 stream.next(m.r); 00232 stream.next(m.g); 00233 stream.next(m.b); 00234 } 00235 00236 ROS_DECLARE_ALLINONE_SERIALIZER; 00237 }; // struct Color_ 00238 } // namespace serialization 00239 } // namespace ros 00240 00241 namespace ros 00242 { 00243 namespace message_operations 00244 { 00245 00246 template<class ContainerAllocator> 00247 struct Printer< ::nxt_msgs::Color_<ContainerAllocator> > 00248 { 00249 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::nxt_msgs::Color_<ContainerAllocator> & v) 00250 { 00251 s << indent << "header: "; 00252 s << std::endl; 00253 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header); 00254 s << indent << "intensity: "; 00255 Printer<double>::stream(s, indent + " ", v.intensity); 00256 s << indent << "r: "; 00257 Printer<double>::stream(s, indent + " ", v.r); 00258 s << indent << "g: "; 00259 Printer<double>::stream(s, indent + " ", v.g); 00260 s << indent << "b: "; 00261 Printer<double>::stream(s, indent + " ", v.b); 00262 } 00263 }; 00264 00265 00266 } // namespace message_operations 00267 } // namespace ros 00268 00269 #endif // NXT_MSGS_MESSAGE_COLOR_H 00270