Go to the documentation of this file.00001
00002 #ifndef KOBUKI_COMMS_MESSAGE_LED_H
00003 #define KOBUKI_COMMS_MESSAGE_LED_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 kobuki_comms
00019 {
00020 template <class ContainerAllocator>
00021 struct Led_ {
00022 typedef Led_<ContainerAllocator> Type;
00023
00024 Led_()
00025 : value(0)
00026 {
00027 }
00028
00029 Led_(const ContainerAllocator& _alloc)
00030 : value(0)
00031 {
00032 }
00033
00034 typedef uint8_t _value_type;
00035 uint8_t value;
00036
00037 enum { BLACK = 0 };
00038 enum { GREEN = 1 };
00039 enum { ORANGE = 2 };
00040 enum { RED = 3 };
00041
00042 typedef boost::shared_ptr< ::kobuki_comms::Led_<ContainerAllocator> > Ptr;
00043 typedef boost::shared_ptr< ::kobuki_comms::Led_<ContainerAllocator> const> ConstPtr;
00044 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00045 };
00046 typedef ::kobuki_comms::Led_<std::allocator<void> > Led;
00047
00048 typedef boost::shared_ptr< ::kobuki_comms::Led> LedPtr;
00049 typedef boost::shared_ptr< ::kobuki_comms::Led const> LedConstPtr;
00050
00051
00052 template<typename ContainerAllocator>
00053 std::ostream& operator<<(std::ostream& s, const ::kobuki_comms::Led_<ContainerAllocator> & v)
00054 {
00055 ros::message_operations::Printer< ::kobuki_comms::Led_<ContainerAllocator> >::stream(s, "", v);
00056 return s;}
00057
00058 }
00059
00060 namespace ros
00061 {
00062 namespace message_traits
00063 {
00064 template<class ContainerAllocator> struct IsMessage< ::kobuki_comms::Led_<ContainerAllocator> > : public TrueType {};
00065 template<class ContainerAllocator> struct IsMessage< ::kobuki_comms::Led_<ContainerAllocator> const> : public TrueType {};
00066 template<class ContainerAllocator>
00067 struct MD5Sum< ::kobuki_comms::Led_<ContainerAllocator> > {
00068 static const char* value()
00069 {
00070 return "4391183b0cf05f8f25d04220401b9f43";
00071 }
00072
00073 static const char* value(const ::kobuki_comms::Led_<ContainerAllocator> &) { return value(); }
00074 static const uint64_t static_value1 = 0x4391183b0cf05f8fULL;
00075 static const uint64_t static_value2 = 0x25d04220401b9f43ULL;
00076 };
00077
00078 template<class ContainerAllocator>
00079 struct DataType< ::kobuki_comms::Led_<ContainerAllocator> > {
00080 static const char* value()
00081 {
00082 return "kobuki_comms/Led";
00083 }
00084
00085 static const char* value(const ::kobuki_comms::Led_<ContainerAllocator> &) { return value(); }
00086 };
00087
00088 template<class ContainerAllocator>
00089 struct Definition< ::kobuki_comms::Led_<ContainerAllocator> > {
00090 static const char* value()
00091 {
00092 return "# Sends a command for controlling the a LED.\n\
00093 # \n\
00094 # Typically the first LED is always reserved to denote\n\
00095 # the state - the remainder will be controllable. \n\
00096 \n\
00097 uint8 BLACK = 0\n\
00098 uint8 GREEN = 1\n\
00099 uint8 ORANGE = 2\n\
00100 uint8 RED = 3\n\
00101 \n\
00102 # For kobuki there are only two controllable LED's.\n\
00103 uint8 value\n\
00104 \n\
00105 ";
00106 }
00107
00108 static const char* value(const ::kobuki_comms::Led_<ContainerAllocator> &) { return value(); }
00109 };
00110
00111 template<class ContainerAllocator> struct IsFixedSize< ::kobuki_comms::Led_<ContainerAllocator> > : public TrueType {};
00112 }
00113 }
00114
00115 namespace ros
00116 {
00117 namespace serialization
00118 {
00119
00120 template<class ContainerAllocator> struct Serializer< ::kobuki_comms::Led_<ContainerAllocator> >
00121 {
00122 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00123 {
00124 stream.next(m.value);
00125 }
00126
00127 ROS_DECLARE_ALLINONE_SERIALIZER;
00128 };
00129 }
00130 }
00131
00132 namespace ros
00133 {
00134 namespace message_operations
00135 {
00136
00137 template<class ContainerAllocator>
00138 struct Printer< ::kobuki_comms::Led_<ContainerAllocator> >
00139 {
00140 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::kobuki_comms::Led_<ContainerAllocator> & v)
00141 {
00142 s << indent << "value: ";
00143 Printer<uint8_t>::stream(s, indent + " ", v.value);
00144 }
00145 };
00146
00147
00148 }
00149 }
00150
00151 #endif // KOBUKI_COMMS_MESSAGE_LED_H
00152