This class is a helper class for communicating with the sound_play node via the sound_play::SoundRequest message. More...
Public Member Functions | |
def | __init__ |
Public Attributes | |
actionclient | |
pub | |
Private Attributes | |
_blocking |
This class is a helper class for communicating with the sound_play node via the sound_play::SoundRequest message.
There is a one-to-one mapping between methods and invocations of the sound_play::SoundRequest message.
Definition at line 92 of file libsoundplay.py.
def sound_play.libsoundplay.SoundClient.__init__ | ( | self, | |
blocking = False |
|||
) |
The SoundClient can send SoundRequests in two modes: non-blocking mode (by publishing a message to the soundplay_node directly) which will return as soon as the sound request has been sent, or blocking mode (by using the actionlib interface) which will wait until the sound has finished playing completely. The blocking parameter here is the standard behavior, but can be over-ridden. Each say/play/start/repeat method can take in an optional `blocking=True|False` argument that will over-ride the class-wide behavior. See soundclient_example.py for an example of this behavior. :param blocking: Used as the default behavior unless over-ridden, (default = false)
Definition at line 94 of file libsoundplay.py.
Definition at line 109 of file libsoundplay.py.
Definition at line 109 of file libsoundplay.py.
Definition at line 109 of file libsoundplay.py.