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