Public Member Functions | Private Member Functions | Private Attributes
audio_controller Class Reference

Provides direct communication to the Rovio's audio devices. More...

#include <rovio_audio.h>

List of all members.

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

Detailed Description

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.


Constructor & Destructor Documentation

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.


Member Function Documentation

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.

Parameters:
reqthe request for the wav_play service
respthe response for the wav_play service; this does not contain any information for this service
Returns:
if the file was successfully streamed to the Rovio

Definition at line 48 of file rovio_audio.cpp.


Member Data Documentation

std::string audio_controller::host [private]

host of the Rovio

Definition at line 46 of file rovio_audio.h.

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.

the wav_play service

Definition at line 52 of file rovio_audio.h.


The documentation for this class was generated from the following files:


rovio_av
Author(s): Russell Toris
autogenerated on Mon Oct 6 2014 07:13:10