SoundRequest.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-groovy-audio_common/doc_stacks/2013-08-29_00-47-50.717772/audio_common/sound_play/msg/SoundRequest.msg */
00002 #ifndef SOUND_PLAY_MESSAGE_SOUNDREQUEST_H
00003 #define SOUND_PLAY_MESSAGE_SOUNDREQUEST_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 sound_play
00019 {
00020 template <class ContainerAllocator>
00021 struct SoundRequest_ {
00022   typedef SoundRequest_<ContainerAllocator> Type;
00023 
00024   SoundRequest_()
00025   : sound(0)
00026   , command(0)
00027   , arg()
00028   , arg2()
00029   {
00030   }
00031 
00032   SoundRequest_(const ContainerAllocator& _alloc)
00033   : sound(0)
00034   , command(0)
00035   , arg(_alloc)
00036   , arg2(_alloc)
00037   {
00038   }
00039 
00040   typedef int8_t _sound_type;
00041   int8_t sound;
00042 
00043   typedef int8_t _command_type;
00044   int8_t command;
00045 
00046   typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  _arg_type;
00047   std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  arg;
00048 
00049   typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  _arg2_type;
00050   std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  arg2;
00051 
00052   enum { BACKINGUP = 1 };
00053   enum { NEEDS_UNPLUGGING = 2 };
00054   enum { NEEDS_PLUGGING = 3 };
00055   enum { NEEDS_UNPLUGGING_BADLY = 4 };
00056   enum { NEEDS_PLUGGING_BADLY = 5 };
00057   enum { ALL = -1 };
00058   enum { PLAY_FILE = -2 };
00059   enum { SAY = -3 };
00060   enum { PLAY_STOP = 0 };
00061   enum { PLAY_ONCE = 1 };
00062   enum { PLAY_START = 2 };
00063 
00064   typedef boost::shared_ptr< ::sound_play::SoundRequest_<ContainerAllocator> > Ptr;
00065   typedef boost::shared_ptr< ::sound_play::SoundRequest_<ContainerAllocator>  const> ConstPtr;
00066   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00067 }; // struct SoundRequest
00068 typedef  ::sound_play::SoundRequest_<std::allocator<void> > SoundRequest;
00069 
00070 typedef boost::shared_ptr< ::sound_play::SoundRequest> SoundRequestPtr;
00071 typedef boost::shared_ptr< ::sound_play::SoundRequest const> SoundRequestConstPtr;
00072 
00073 
00074 template<typename ContainerAllocator>
00075 std::ostream& operator<<(std::ostream& s, const  ::sound_play::SoundRequest_<ContainerAllocator> & v)
00076 {
00077   ros::message_operations::Printer< ::sound_play::SoundRequest_<ContainerAllocator> >::stream(s, "", v);
00078   return s;}
00079 
00080 } // namespace sound_play
00081 
00082 namespace ros
00083 {
00084 namespace message_traits
00085 {
00086 template<class ContainerAllocator> struct IsMessage< ::sound_play::SoundRequest_<ContainerAllocator> > : public TrueType {};
00087 template<class ContainerAllocator> struct IsMessage< ::sound_play::SoundRequest_<ContainerAllocator>  const> : public TrueType {};
00088 template<class ContainerAllocator>
00089 struct MD5Sum< ::sound_play::SoundRequest_<ContainerAllocator> > {
00090   static const char* value() 
00091   {
00092     return "f194e75f1c3bf7a3e1e8b16bc9ef7c2a";
00093   }
00094 
00095   static const char* value(const  ::sound_play::SoundRequest_<ContainerAllocator> &) { return value(); } 
00096   static const uint64_t static_value1 = 0xf194e75f1c3bf7a3ULL;
00097   static const uint64_t static_value2 = 0xe1e8b16bc9ef7c2aULL;
00098 };
00099 
00100 template<class ContainerAllocator>
00101 struct DataType< ::sound_play::SoundRequest_<ContainerAllocator> > {
00102   static const char* value() 
00103   {
00104     return "sound_play/SoundRequest";
00105   }
00106 
00107   static const char* value(const  ::sound_play::SoundRequest_<ContainerAllocator> &) { return value(); } 
00108 };
00109 
00110 template<class ContainerAllocator>
00111 struct Definition< ::sound_play::SoundRequest_<ContainerAllocator> > {
00112   static const char* value() 
00113   {
00114     return "# IMPORTANT: You should never have to generate this message yourself.\n\
00115 # Use the sound_play::SoundClient C++ helper or the\n\
00116 # sound_play.libsoundplay.SoundClient Python helper.\n\
00117 \n\
00118 # Sounds\n\
00119 int8 BACKINGUP = 1\n\
00120 int8 NEEDS_UNPLUGGING = 2\n\
00121 int8 NEEDS_PLUGGING = 3\n\
00122 int8 NEEDS_UNPLUGGING_BADLY = 4\n\
00123 int8 NEEDS_PLUGGING_BADLY = 5\n\
00124 \n\
00125 # Sound identifiers that have special meaning\n\
00126 int8 ALL = -1 # Only legal with PLAY_STOP\n\
00127 int8 PLAY_FILE = -2\n\
00128 int8 SAY = -3\n\
00129 \n\
00130 int8 sound # Selects which sound to play (see above)\n\
00131 \n\
00132 # Commands\n\
00133 int8 PLAY_STOP = 0 # Stop this sound from playing\n\
00134 int8 PLAY_ONCE = 1 # Play the sound once\n\
00135 int8 PLAY_START = 2 # Play the sound in a loop until a stop request occurs\n\
00136 \n\
00137 int8 command # Indicates what to do with the sound\n\
00138 \n\
00139 string arg # file name or text to say\n\
00140 string arg2 # other arguments\n\
00141 \n\
00142 ";
00143   }
00144 
00145   static const char* value(const  ::sound_play::SoundRequest_<ContainerAllocator> &) { return value(); } 
00146 };
00147 
00148 } // namespace message_traits
00149 } // namespace ros
00150 
00151 namespace ros
00152 {
00153 namespace serialization
00154 {
00155 
00156 template<class ContainerAllocator> struct Serializer< ::sound_play::SoundRequest_<ContainerAllocator> >
00157 {
00158   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00159   {
00160     stream.next(m.sound);
00161     stream.next(m.command);
00162     stream.next(m.arg);
00163     stream.next(m.arg2);
00164   }
00165 
00166   ROS_DECLARE_ALLINONE_SERIALIZER;
00167 }; // struct SoundRequest_
00168 } // namespace serialization
00169 } // namespace ros
00170 
00171 namespace ros
00172 {
00173 namespace message_operations
00174 {
00175 
00176 template<class ContainerAllocator>
00177 struct Printer< ::sound_play::SoundRequest_<ContainerAllocator> >
00178 {
00179   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::sound_play::SoundRequest_<ContainerAllocator> & v) 
00180   {
00181     s << indent << "sound: ";
00182     Printer<int8_t>::stream(s, indent + "  ", v.sound);
00183     s << indent << "command: ";
00184     Printer<int8_t>::stream(s, indent + "  ", v.command);
00185     s << indent << "arg: ";
00186     Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + "  ", v.arg);
00187     s << indent << "arg2: ";
00188     Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + "  ", v.arg2);
00189   }
00190 };
00191 
00192 
00193 } // namespace message_operations
00194 } // namespace ros
00195 
00196 #endif // SOUND_PLAY_MESSAGE_SOUNDREQUEST_H
00197 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends


sound_play
Author(s): Blaise Gassend, Austin Hendrix/ahendrix@willowgarage.com
autogenerated on Thu Aug 29 2013 00:50:45