stdr_gui_sound.h
Go to the documentation of this file.
1 /******************************************************************************
2  STDR Simulator - Simple Two DImensional Robot Simulator
3  Copyright (C) 2013 STDR Simulator
4  This program is free software; you can redistribute it and/or modify
5  it under the terms of the GNU General Public License as published by
6  the Free Software Foundation; either version 3 of the License, or
7  (at your option) any later version.
8  This program is distributed in the hope that it will be useful,
9  but WITHOUT ANY WARRANTY; without even the implied warranty of
10  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  GNU General Public License for more details.
12  You should have received a copy of the GNU General Public License
13  along with this program; if not, write to the Free Software Foundation,
14  Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
15 
16  Authors :
17  * Manos Tsardoulias, etsardou@gmail.com
18  * Aris Thallas, aris.thallas@gmail.com
19  * Chris Zalidis, zalidis@gmail.com
20 ******************************************************************************/
21 
22 #ifndef STDR_GUI_SOUND_CONTAINER
23 #define STDR_GUI_SOUND_CONTAINER
24 
25 #include "stdr_gui/stdr_tools.h"
26 #include "stdr_msgs/SoundSensorMsg.h"
27 #include "stdr_msgs/SoundSensorMeasurementMsg.h"
28 
33 namespace stdr_gui
34 {
39  class CGuiSound
40  {
41  //------------------------------------------------------------------------//
42  private:
43 
45  std::string topic_;
47  stdr_msgs::SoundSensorMsg msg_;
51  bool lock_;
53  std::string tf_frame_;
57  stdr_msgs::SoundSensorMeasurementMsg sound_sources_;
58 
60  stdr_msgs::SoundSourceVector env_sound_sources_;
61 
62  //------------------------------------------------------------------------//
63  public:
64 
71  CGuiSound(stdr_msgs::SoundSensorMsg msg,std::string baseTopic);
72 
79  void callback(const stdr_msgs::SoundSensorMeasurementMsg& msg);
80 
88  void paint(QImage *m,float ocgd,tf::TransformListener *listener);
89 
94  ~CGuiSound(void);
95 
100  char getVisualizationStatus(void);
101 
106  void toggleVisualizationStatus(void);
107 
113  void setVisualizationStatus(char vs);
114 
119  std::string getFrameId(void);
120 
126  void setEnvironmentalSoundSources(stdr_msgs::SoundSourceVector env_sound_sources);
127  };
128 }
129 
130 #endif
std::string getFrameId(void)
Returns the frame id of the specific sensor.
ros::Subscriber subscriber_
Used to avoid drawing when a new sonar message arives.
std::string tf_frame_
Visualization status of the specific sonar.
char getVisualizationStatus(void)
Returns the visibility status of the specific sensor.
void toggleVisualizationStatus(void)
Toggles the visibility status of the specific sensor.
std::string topic_
< The topic from which the new RFID tags will be got
char visualization_status_
The stdr rfid sensor measurement msg.
void paint(QImage *m, float ocgd, tf::TransformListener *listener)
Paints the rfid measurements in the map image.
bool lock_
The ROS tf frame.
CGuiSound(stdr_msgs::SoundSensorMsg msg, std::string baseTopic)
Default contructor.
stdr_msgs::SoundSensorMeasurementMsg sound_sources_
The tags that exist in the environment.
void callback(const stdr_msgs::SoundSensorMeasurementMsg &msg)
Callback for the rfid measurement message.
void setEnvironmentalSoundSources(stdr_msgs::SoundSourceVector env_sound_sources)
Sets the tags existent in the environment.
~CGuiSound(void)
Default destructor.
The main namespace for STDR GUI.
stdr_msgs::SoundSensorMsg msg_
A ros subscriber.
stdr_msgs::SoundSourceVector env_sound_sources_
void setVisualizationStatus(char vs)
Sets the visibility status of the specific sensor.


stdr_gui
Author(s): Manos Tsardoulias
autogenerated on Mon Jun 10 2019 15:15:16