$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-audio_common/doc_stacks/2013-03-01_14-12-27.024160/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 private: 00065 static const char* __s_getDataType_() { return "sound_play/SoundRequest"; } 00066 public: 00067 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00068 00069 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00070 00071 private: 00072 static const char* __s_getMD5Sum_() { return "f194e75f1c3bf7a3e1e8b16bc9ef7c2a"; } 00073 public: 00074 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00075 00076 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00077 00078 private: 00079 static const char* __s_getMessageDefinition_() { return "# IMPORTANT: You should never have to generate this message yourself.\n\ 00080 # Use the sound_play::SoundClient C++ helper or the\n\ 00081 # sound_play.libsoundplay.SoundClient Python helper.\n\ 00082 \n\ 00083 # Sounds\n\ 00084 int8 BACKINGUP = 1\n\ 00085 int8 NEEDS_UNPLUGGING = 2\n\ 00086 int8 NEEDS_PLUGGING = 3\n\ 00087 int8 NEEDS_UNPLUGGING_BADLY = 4\n\ 00088 int8 NEEDS_PLUGGING_BADLY = 5\n\ 00089 \n\ 00090 # Sound identifiers that have special meaning\n\ 00091 int8 ALL = -1 # Only legal with PLAY_STOP\n\ 00092 int8 PLAY_FILE = -2\n\ 00093 int8 SAY = -3\n\ 00094 \n\ 00095 int8 sound # Selects which sound to play (see above)\n\ 00096 \n\ 00097 # Commands\n\ 00098 int8 PLAY_STOP = 0 # Stop this sound from playing\n\ 00099 int8 PLAY_ONCE = 1 # Play the sound once\n\ 00100 int8 PLAY_START = 2 # Play the sound in a loop until a stop request occurs\n\ 00101 \n\ 00102 int8 command # Indicates what to do with the sound\n\ 00103 \n\ 00104 string arg # file name or text to say\n\ 00105 string arg2 # other arguments\n\ 00106 \n\ 00107 "; } 00108 public: 00109 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00110 00111 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00112 00113 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00114 { 00115 ros::serialization::OStream stream(write_ptr, 1000000000); 00116 ros::serialization::serialize(stream, sound); 00117 ros::serialization::serialize(stream, command); 00118 ros::serialization::serialize(stream, arg); 00119 ros::serialization::serialize(stream, arg2); 00120 return stream.getData(); 00121 } 00122 00123 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00124 { 00125 ros::serialization::IStream stream(read_ptr, 1000000000); 00126 ros::serialization::deserialize(stream, sound); 00127 ros::serialization::deserialize(stream, command); 00128 ros::serialization::deserialize(stream, arg); 00129 ros::serialization::deserialize(stream, arg2); 00130 return stream.getData(); 00131 } 00132 00133 ROS_DEPRECATED virtual uint32_t serializationLength() const 00134 { 00135 uint32_t size = 0; 00136 size += ros::serialization::serializationLength(sound); 00137 size += ros::serialization::serializationLength(command); 00138 size += ros::serialization::serializationLength(arg); 00139 size += ros::serialization::serializationLength(arg2); 00140 return size; 00141 } 00142 00143 typedef boost::shared_ptr< ::sound_play::SoundRequest_<ContainerAllocator> > Ptr; 00144 typedef boost::shared_ptr< ::sound_play::SoundRequest_<ContainerAllocator> const> ConstPtr; 00145 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00146 }; // struct SoundRequest 00147 typedef ::sound_play::SoundRequest_<std::allocator<void> > SoundRequest; 00148 00149 typedef boost::shared_ptr< ::sound_play::SoundRequest> SoundRequestPtr; 00150 typedef boost::shared_ptr< ::sound_play::SoundRequest const> SoundRequestConstPtr; 00151 00152 00153 template<typename ContainerAllocator> 00154 std::ostream& operator<<(std::ostream& s, const ::sound_play::SoundRequest_<ContainerAllocator> & v) 00155 { 00156 ros::message_operations::Printer< ::sound_play::SoundRequest_<ContainerAllocator> >::stream(s, "", v); 00157 return s;} 00158 00159 } // namespace sound_play 00160 00161 namespace ros 00162 { 00163 namespace message_traits 00164 { 00165 template<class ContainerAllocator> struct IsMessage< ::sound_play::SoundRequest_<ContainerAllocator> > : public TrueType {}; 00166 template<class ContainerAllocator> struct IsMessage< ::sound_play::SoundRequest_<ContainerAllocator> const> : public TrueType {}; 00167 template<class ContainerAllocator> 00168 struct MD5Sum< ::sound_play::SoundRequest_<ContainerAllocator> > { 00169 static const char* value() 00170 { 00171 return "f194e75f1c3bf7a3e1e8b16bc9ef7c2a"; 00172 } 00173 00174 static const char* value(const ::sound_play::SoundRequest_<ContainerAllocator> &) { return value(); } 00175 static const uint64_t static_value1 = 0xf194e75f1c3bf7a3ULL; 00176 static const uint64_t static_value2 = 0xe1e8b16bc9ef7c2aULL; 00177 }; 00178 00179 template<class ContainerAllocator> 00180 struct DataType< ::sound_play::SoundRequest_<ContainerAllocator> > { 00181 static const char* value() 00182 { 00183 return "sound_play/SoundRequest"; 00184 } 00185 00186 static const char* value(const ::sound_play::SoundRequest_<ContainerAllocator> &) { return value(); } 00187 }; 00188 00189 template<class ContainerAllocator> 00190 struct Definition< ::sound_play::SoundRequest_<ContainerAllocator> > { 00191 static const char* value() 00192 { 00193 return "# IMPORTANT: You should never have to generate this message yourself.\n\ 00194 # Use the sound_play::SoundClient C++ helper or the\n\ 00195 # sound_play.libsoundplay.SoundClient Python helper.\n\ 00196 \n\ 00197 # Sounds\n\ 00198 int8 BACKINGUP = 1\n\ 00199 int8 NEEDS_UNPLUGGING = 2\n\ 00200 int8 NEEDS_PLUGGING = 3\n\ 00201 int8 NEEDS_UNPLUGGING_BADLY = 4\n\ 00202 int8 NEEDS_PLUGGING_BADLY = 5\n\ 00203 \n\ 00204 # Sound identifiers that have special meaning\n\ 00205 int8 ALL = -1 # Only legal with PLAY_STOP\n\ 00206 int8 PLAY_FILE = -2\n\ 00207 int8 SAY = -3\n\ 00208 \n\ 00209 int8 sound # Selects which sound to play (see above)\n\ 00210 \n\ 00211 # Commands\n\ 00212 int8 PLAY_STOP = 0 # Stop this sound from playing\n\ 00213 int8 PLAY_ONCE = 1 # Play the sound once\n\ 00214 int8 PLAY_START = 2 # Play the sound in a loop until a stop request occurs\n\ 00215 \n\ 00216 int8 command # Indicates what to do with the sound\n\ 00217 \n\ 00218 string arg # file name or text to say\n\ 00219 string arg2 # other arguments\n\ 00220 \n\ 00221 "; 00222 } 00223 00224 static const char* value(const ::sound_play::SoundRequest_<ContainerAllocator> &) { return value(); } 00225 }; 00226 00227 } // namespace message_traits 00228 } // namespace ros 00229 00230 namespace ros 00231 { 00232 namespace serialization 00233 { 00234 00235 template<class ContainerAllocator> struct Serializer< ::sound_play::SoundRequest_<ContainerAllocator> > 00236 { 00237 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00238 { 00239 stream.next(m.sound); 00240 stream.next(m.command); 00241 stream.next(m.arg); 00242 stream.next(m.arg2); 00243 } 00244 00245 ROS_DECLARE_ALLINONE_SERIALIZER; 00246 }; // struct SoundRequest_ 00247 } // namespace serialization 00248 } // namespace ros 00249 00250 namespace ros 00251 { 00252 namespace message_operations 00253 { 00254 00255 template<class ContainerAllocator> 00256 struct Printer< ::sound_play::SoundRequest_<ContainerAllocator> > 00257 { 00258 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::sound_play::SoundRequest_<ContainerAllocator> & v) 00259 { 00260 s << indent << "sound: "; 00261 Printer<int8_t>::stream(s, indent + " ", v.sound); 00262 s << indent << "command: "; 00263 Printer<int8_t>::stream(s, indent + " ", v.command); 00264 s << indent << "arg: "; 00265 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.arg); 00266 s << indent << "arg2: "; 00267 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.arg2); 00268 } 00269 }; 00270 00271 00272 } // namespace message_operations 00273 } // namespace ros 00274 00275 #endif // SOUND_PLAY_MESSAGE_SOUNDREQUEST_H 00276