#include <stdr_gui_sound.h>
Public Member Functions | |
void | callback (const stdr_msgs::SoundSensorMeasurementMsg &msg) |
Callback for the rfid measurement message. | |
CGuiSound (stdr_msgs::SoundSensorMsg msg, std::string baseTopic) | |
Default contructor. | |
std::string | getFrameId (void) |
Returns the frame id of the specific sensor. | |
char | getVisualizationStatus (void) |
Returns the visibility status of the specific sensor. | |
void | paint (QImage *m, float ocgd, tf::TransformListener *listener) |
Paints the rfid measurements in the map image. | |
void | setEnvironmentalSoundSources (stdr_msgs::SoundSourceVector env_sound_sources) |
Sets the tags existent in the environment. | |
void | setVisualizationStatus (char vs) |
Sets the visibility status of the specific sensor. | |
void | toggleVisualizationStatus (void) |
Toggles the visibility status of the specific sensor. | |
~CGuiSound (void) | |
Default destructor. | |
Private Attributes | |
stdr_msgs::SoundSourceVector | env_sound_sources_ |
bool | lock_ |
The ROS tf frame. | |
stdr_msgs::SoundSensorMsg | msg_ |
A ros subscriber. | |
stdr_msgs::SoundSensorMeasurementMsg | sound_sources_ |
The tags that exist in the environment. | |
ros::Subscriber | subscriber_ |
Used to avoid drawing when a new sonar message arives. | |
std::string | tf_frame_ |
Visualization status of the specific sonar. | |
std::string | topic_ |
< The topic from which the new RFID tags will be got | |
char | visualization_status_ |
The stdr rfid sensor measurement msg. |
Definition at line 39 of file stdr_gui_sound.h.
stdr_gui::CGuiSound::CGuiSound | ( | stdr_msgs::SoundSensorMsg | msg, |
std::string | baseTopic | ||
) |
Default contructor.
msg | [stdr_msgs::RfidSensorMsg] The rfid antenna description msg |
baseTopic | [std::string] The ros topic for subscription |
Definition at line 29 of file stdr_gui_sound.cpp.
stdr_gui::CGuiSound::~CGuiSound | ( | void | ) |
void stdr_gui::CGuiSound::callback | ( | const stdr_msgs::SoundSensorMeasurementMsg & | msg | ) |
Callback for the rfid measurement message.
Callback for the rfid measurements message.
msg | [const stdr_msgs::RfidSensorMeasurementMsg&] The new rfid\ sensor measurement message |
Definition at line 43 of file stdr_gui_sound.cpp.
std::string stdr_gui::CGuiSound::getFrameId | ( | void | ) |
Returns the frame id of the specific sensor.
Definition at line 165 of file stdr_gui_sound.cpp.
char stdr_gui::CGuiSound::getVisualizationStatus | ( | void | ) |
Returns the visibility status of the specific sensor.
Definition at line 140 of file stdr_gui_sound.cpp.
void stdr_gui::CGuiSound::paint | ( | QImage * | m, |
float | ocgd, | ||
tf::TransformListener * | listener | ||
) |
Paints the rfid measurements in the map image.
Paints the sensor measurement in the map image.
m | [QImage*] The image to be drawn |
ocgd | [float] The map's resolution |
listener | [tf::TransformListener *] ROS tf transform listener |
< Find transformation
< Draw measurement stuff
Definition at line 55 of file stdr_gui_sound.cpp.
void stdr_gui::CGuiSound::setEnvironmentalSoundSources | ( | stdr_msgs::SoundSourceVector | env_sound_sources | ) |
Sets the tags existent in the environment.
env_tags | [stdr_msgs::RfidTagVector] The tag vector |
env_tags | [stdr_msgs::CO2SourceVector] The sources vector |
Definition at line 175 of file stdr_gui_sound.cpp.
void stdr_gui::CGuiSound::setVisualizationStatus | ( | char | vs | ) |
Sets the visibility status of the specific sensor.
vs | [char] The new visibility status |
Definition at line 156 of file stdr_gui_sound.cpp.
void stdr_gui::CGuiSound::toggleVisualizationStatus | ( | void | ) |
Toggles the visibility status of the specific sensor.
Definition at line 148 of file stdr_gui_sound.cpp.
stdr_msgs::SoundSourceVector stdr_gui::CGuiSound::env_sound_sources_ [private] |
Definition at line 60 of file stdr_gui_sound.h.
bool stdr_gui::CGuiSound::lock_ [private] |
The ROS tf frame.
Definition at line 52 of file stdr_gui_sound.h.
stdr_msgs::SoundSensorMsg stdr_gui::CGuiSound::msg_ [private] |
A ros subscriber.
Definition at line 48 of file stdr_gui_sound.h.
stdr_msgs::SoundSensorMeasurementMsg stdr_gui::CGuiSound::sound_sources_ [private] |
The tags that exist in the environment.
Definition at line 59 of file stdr_gui_sound.h.
Used to avoid drawing when a new sonar message arives.
Definition at line 50 of file stdr_gui_sound.h.
std::string stdr_gui::CGuiSound::tf_frame_ [private] |
Visualization status of the specific sonar.
Definition at line 54 of file stdr_gui_sound.h.
std::string stdr_gui::CGuiSound::topic_ [private] |
< The topic from which the new RFID tags will be got
The description for the rfid antenna message
Definition at line 46 of file stdr_gui_sound.h.
char stdr_gui::CGuiSound::visualization_status_ [private] |
The stdr rfid sensor measurement msg.
Definition at line 56 of file stdr_gui_sound.h.