Go to the documentation of this file.00001
00002 #ifndef KOBUKI_COMMS_MESSAGE_SOUND_H
00003 #define KOBUKI_COMMS_MESSAGE_SOUND_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 Sound_ {
00022 typedef Sound_<ContainerAllocator> Type;
00023
00024 Sound_()
00025 : value(0)
00026 {
00027 }
00028
00029 Sound_(const ContainerAllocator& _alloc)
00030 : value(0)
00031 {
00032 }
00033
00034 typedef uint8_t _value_type;
00035 uint8_t value;
00036
00037 enum { ON = 0 };
00038 enum { OFF = 1 };
00039 enum { RECHARGE = 2 };
00040 enum { BUTTON = 3 };
00041 enum { ERROR = 4 };
00042 enum { CLEANINGSTART = 5 };
00043 enum { CLEANINGEND = 6 };
00044
00045 typedef boost::shared_ptr< ::kobuki_comms::Sound_<ContainerAllocator> > Ptr;
00046 typedef boost::shared_ptr< ::kobuki_comms::Sound_<ContainerAllocator> const> ConstPtr;
00047 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00048 };
00049 typedef ::kobuki_comms::Sound_<std::allocator<void> > Sound;
00050
00051 typedef boost::shared_ptr< ::kobuki_comms::Sound> SoundPtr;
00052 typedef boost::shared_ptr< ::kobuki_comms::Sound const> SoundConstPtr;
00053
00054
00055 template<typename ContainerAllocator>
00056 std::ostream& operator<<(std::ostream& s, const ::kobuki_comms::Sound_<ContainerAllocator> & v)
00057 {
00058 ros::message_operations::Printer< ::kobuki_comms::Sound_<ContainerAllocator> >::stream(s, "", v);
00059 return s;}
00060
00061 }
00062
00063 namespace ros
00064 {
00065 namespace message_traits
00066 {
00067 template<class ContainerAllocator> struct IsMessage< ::kobuki_comms::Sound_<ContainerAllocator> > : public TrueType {};
00068 template<class ContainerAllocator> struct IsMessage< ::kobuki_comms::Sound_<ContainerAllocator> const> : public TrueType {};
00069 template<class ContainerAllocator>
00070 struct MD5Sum< ::kobuki_comms::Sound_<ContainerAllocator> > {
00071 static const char* value()
00072 {
00073 return "dfeab0daae67749c426c1db741a4f420";
00074 }
00075
00076 static const char* value(const ::kobuki_comms::Sound_<ContainerAllocator> &) { return value(); }
00077 static const uint64_t static_value1 = 0xdfeab0daae67749cULL;
00078 static const uint64_t static_value2 = 0x426c1db741a4f420ULL;
00079 };
00080
00081 template<class ContainerAllocator>
00082 struct DataType< ::kobuki_comms::Sound_<ContainerAllocator> > {
00083 static const char* value()
00084 {
00085 return "kobuki_comms/Sound";
00086 }
00087
00088 static const char* value(const ::kobuki_comms::Sound_<ContainerAllocator> &) { return value(); }
00089 };
00090
00091 template<class ContainerAllocator>
00092 struct Definition< ::kobuki_comms::Sound_<ContainerAllocator> > {
00093 static const char* value()
00094 {
00095 return "# Sends a command for playing sounds.\n\
00096 # The available sound sequences:\n\
00097 # 0 - turn on\n\
00098 # 1 - turn off\n\
00099 # 2 - recharge start\n\
00100 # 3 - press button,\n\
00101 # 4 - error sound\n\
00102 # 5 - start cleaning\n\
00103 # 6 - cleaning end\n\
00104 \n\
00105 uint8 ON = 0\n\
00106 uint8 OFF = 1\n\
00107 uint8 RECHARGE = 2\n\
00108 uint8 BUTTON = 3\n\
00109 uint8 ERROR = 4\n\
00110 uint8 CLEANINGSTART = 5\n\
00111 uint8 CLEANINGEND = 6\n\
00112 \n\
00113 uint8 value\n\
00114 ";
00115 }
00116
00117 static const char* value(const ::kobuki_comms::Sound_<ContainerAllocator> &) { return value(); }
00118 };
00119
00120 template<class ContainerAllocator> struct IsFixedSize< ::kobuki_comms::Sound_<ContainerAllocator> > : public TrueType {};
00121 }
00122 }
00123
00124 namespace ros
00125 {
00126 namespace serialization
00127 {
00128
00129 template<class ContainerAllocator> struct Serializer< ::kobuki_comms::Sound_<ContainerAllocator> >
00130 {
00131 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00132 {
00133 stream.next(m.value);
00134 }
00135
00136 ROS_DECLARE_ALLINONE_SERIALIZER;
00137 };
00138 }
00139 }
00140
00141 namespace ros
00142 {
00143 namespace message_operations
00144 {
00145
00146 template<class ContainerAllocator>
00147 struct Printer< ::kobuki_comms::Sound_<ContainerAllocator> >
00148 {
00149 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::kobuki_comms::Sound_<ContainerAllocator> & v)
00150 {
00151 s << indent << "value: ";
00152 Printer<uint8_t>::stream(s, indent + " ", v.value);
00153 }
00154 };
00155
00156
00157 }
00158 }
00159
00160 #endif // KOBUKI_COMMS_MESSAGE_SOUND_H
00161