Public Member Functions | Private Attributes
stdr_robot::SoundSensor Class Reference

#include <microphone.h>

Inheritance diagram for stdr_robot::SoundSensor:
Inheritance graph
[legend]

List of all members.

Public Member Functions

void receiveSoundSources (const stdr_msgs::SoundSourceVector &msg)
 Receives the existent sound sources.
 SoundSensor (const nav_msgs::OccupancyGrid &map, const stdr_msgs::SoundSensorMsg &msg, const std::string &name, ros::NodeHandle &n)
 Default constructor.
virtual void updateSensorCallback ()
 Updates the sensor measurements.
 ~SoundSensor (void)
 Default destructor.

Private Attributes

stdr_msgs::SoundSensorMsg _description
 < sound sensor description
stdr_msgs::SoundSourceVector sound_sources_
ros::Subscriber sound_sources_subscriber_
 The currently existent sources.

Detailed Description

Definition at line 42 of file microphone.h.


Constructor & Destructor Documentation

stdr_robot::SoundSensor::SoundSensor ( const nav_msgs::OccupancyGrid &  map,
const stdr_msgs::SoundSensorMsg &  msg,
const std::string &  name,
ros::NodeHandle n 
)

Default constructor.

Parameters:
map[const nav_msgs::OccupancyGrid&] An occupancy grid map
msg[const stdr_msgs::SoundSensorMsg&] The sound sensor \ description message
name[const std::string&] The sensor frame id without the base
n[ros::NodeHandle&] The ROS node handle
Returns:
void
Parameters:
map[const nav_msgs::OccupancyGrid&] An occupancy grid map
msg[const stdr_msgs::SoundSensorMsg&] The sensor description message
name[const std::string&] The sensor frame id without the base
n[ros::NodeHandle&] The ROS node handle
Returns:
void

Definition at line 34 of file microphone.cpp.

Default destructor.

Returns:
void

Definition at line 57 of file microphone.cpp.


Member Function Documentation

void stdr_robot::SoundSensor::receiveSoundSources ( const stdr_msgs::SoundSourceVector &  msg)

Receives the existent sound sources.

Receives the existent sources.

Parameters:
msg[const stdr_msgs::SoundSourceVector&] The sound sources message
Returns:
void

Definition at line 125 of file microphone.cpp.

Updates the sensor measurements.

Returns:
void

< 0 db for silence

< Must implement the functionality

< Check for max distance

Implements stdr_robot::Sensor.

Definition at line 66 of file microphone.cpp.


Member Data Documentation

stdr_msgs::SoundSensorMsg stdr_robot::SoundSensor::_description [private]

< sound sensor description

ROS subscriber for sound sources

Definition at line 84 of file microphone.h.

stdr_msgs::SoundSourceVector stdr_robot::SoundSensor::sound_sources_ [private]

Definition at line 88 of file microphone.h.

The currently existent sources.

Definition at line 87 of file microphone.h.


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


stdr_robot
Author(s): Manos Tsardoulias, Chris Zalidis, Aris Thallas
autogenerated on Wed Sep 2 2015 03:36:25