Provides direct communication to the Rovio's audio devices. More...
#include <rovio_audio.h>
Public Member Functions | |
audio_controller () | |
Creates an audio_controller using ROS parameters. | |
Private Member Functions | |
bool | wav_play_callback (rovio_shared::wav_play::Request &req, rovio_shared::wav_play::Response &resp) |
wav_play service callback function. | |
Private Attributes | |
std::string | host |
ros::NodeHandle | node |
std::string | pass |
std::string | user |
ros::ServiceServer | wav_play |
Provides direct communication to the Rovio's audio devices.
The audio_controller handles communication to the Rovio's audio devices. ROS nodes and services are created and maintained within this object.
Definition at line 24 of file rovio_audio.h.
Creates an audio_controller using ROS parameters.
Creates an audio_controller object that can be used to stream .wav files to the Rovio. A valid username, password, and host must be set as ROS parameters.
Definition at line 23 of file rovio_audio.cpp.
bool audio_controller::wav_play_callback | ( | rovio_shared::wav_play::Request & | req, |
rovio_shared::wav_play::Response & | resp | ||
) | [private] |
wav_play service callback function.
Process the service request and attempt to stream the given file to the Rovio. This call will block until the file has finished being sent.
req | the request for the wav_play service |
resp | the response for the wav_play service; this does not contain any information for this service |
Definition at line 48 of file rovio_audio.cpp.
std::string audio_controller::host [private] |
host of the Rovio
Definition at line 46 of file rovio_audio.h.
ros::NodeHandle audio_controller::node [private] |
a handle for this ROS node
Definition at line 50 of file rovio_audio.h.
std::string audio_controller::pass [private] |
password authentication information for the Rovio
Definition at line 48 of file rovio_audio.h.
std::string audio_controller::user [private] |
username authentication information for the Rovio
Definition at line 47 of file rovio_audio.h.
ros::ServiceServer audio_controller::wav_play [private] |
the wav_play service
Definition at line 52 of file rovio_audio.h.