sound_play

Summary

sound_play
Version:

0.2.7

Description:

sound_play provides a ROS node that translates commands on a ROS topic (<tt>robotsound</tt>) into sounds. The node supports built-in sounds, playing OGG/WAV files, and doing speech synthesis via festival. C++ and Python bindings allow this node to be used without understanding the details of the message format, allowing faster development and resilience to message format changes.

Maintainers:
  • Austin Hendrix <ahendrix AT willowgarage DOT com>
Licenses:
  • BSD
Urls:
Authors:
  • Blaise Gassend
BuildDepends:
BuildtoolDepends:
 
BuildExportDepends:
 
ExecDepends:
Exports:
  • <cpp cflags=”-I${prefix}/include -I${prefix}/msg/cpp”/>

Types

Message types

sound_play/SoundRequest
Constant:
  • BACKINGUP (int8):1
  • NEEDS_UNPLUGGING (int8):2
  • NEEDS_PLUGGING (int8):3
  • NEEDS_UNPLUGGING_BADLY (int8):4
  • NEEDS_PLUGGING_BADLY (int8):5
  • ALL (int8):-1
  • PLAY_FILE (int8):-2
  • SAY (int8):-3
  • PLAY_STOP (int8):0
  • PLAY_ONCE (int8):1
  • PLAY_START (int8):2
Field:
  • sound (int8) –
  • command (int8) –
  • arg (string) –
  • arg2 (string) –

IMPORTANT: You should never have to generate this message yourself. Use the sound_play::SoundClient C++ helper or the sound_play.libsoundplay.SoundClient Python helper.

Sounds

# IMPORTANT: You should never have to generate this message yourself.
# Use the sound_play::SoundClient C++ helper or the
# sound_play.libsoundplay.SoundClient Python helper.

# Sounds
int8 BACKINGUP = 1
int8 NEEDS_UNPLUGGING = 2
int8 NEEDS_PLUGGING = 3
int8 NEEDS_UNPLUGGING_BADLY = 4
int8 NEEDS_PLUGGING_BADLY = 5

# Sound identifiers that have special meaning
int8 ALL = -1 # Only legal with PLAY_STOP
int8 PLAY_FILE = -2
int8 SAY = -3

int8 sound # Selects which sound to play (see above)

# Commands
int8 PLAY_STOP = 0 # Stop this sound from playing
int8 PLAY_ONCE = 1 # Play the sound once
int8 PLAY_START = 2 # Play the sound in a loop until a stop request occurs

int8 command # Indicates what to do with the sound

string arg # file name or text to say
string arg2 # other arguments