stdr_gui_co2.h
Go to the documentation of this file.
00001 /******************************************************************************
00002    STDR Simulator - Simple Two DImensional Robot Simulator
00003    Copyright (C) 2013 STDR Simulator
00004    This program is free software; you can redistribute it and/or modify
00005    it under the terms of the GNU General Public License as published by
00006    the Free Software Foundation; either version 3 of the License, or
00007    (at your option) any later version.
00008    This program is distributed in the hope that it will be useful,
00009    but WITHOUT ANY WARRANTY; without even the implied warranty of
00010    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00011    GNU General Public License for more details.
00012    You should have received a copy of the GNU General Public License
00013    along with this program; if not, write to the Free Software Foundation,
00014    Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301  USA
00015    
00016    Authors : 
00017    * Manos Tsardoulias, etsardou@gmail.com
00018    * Aris Thallas, aris.thallas@gmail.com
00019    * Chris Zalidis, zalidis@gmail.com 
00020 ******************************************************************************/
00021 
00022 #ifndef STDR_GUI_CO2_CONTAINER
00023 #define STDR_GUI_CO2_CONTAINER
00024 
00025 #include "stdr_gui/stdr_tools.h"
00026 #include "stdr_msgs/CO2SensorMsg.h"
00027 #include "stdr_msgs/CO2SensorMeasurementMsg.h"
00028 
00033 namespace stdr_gui
00034 {
00039   class CGuiCO2
00040   {
00041     //------------------------------------------------------------------------//
00042     private:
00043     
00045       std::string topic_;
00047       stdr_msgs::CO2SensorMsg msg_;
00049       ros::Subscriber subscriber_;
00051       bool lock_;
00053       std::string tf_frame_;
00055       char visualization_status_;
00057       stdr_msgs::CO2SensorMeasurementMsg co2_sources_;
00058       
00060       stdr_msgs::CO2SourceVector env_co2_sources_;
00061       
00062     //------------------------------------------------------------------------//
00063     public:
00064       
00071       CGuiCO2(stdr_msgs::CO2SensorMsg msg,std::string baseTopic);
00072       
00079       void callback(const stdr_msgs::CO2SensorMeasurementMsg& msg); 
00080       
00088       void paint(QImage *m,float ocgd,tf::TransformListener *listener);
00089       
00094       ~CGuiCO2(void);
00095       
00100       char getVisualizationStatus(void);
00101       
00106       void toggleVisualizationStatus(void);
00107       
00113       void setVisualizationStatus(char vs);
00114       
00119       std::string getFrameId(void);
00120       
00126       void setEnvironmentalCO2Sources(stdr_msgs::CO2SourceVector env_co2_sources);
00127   };  
00128 }
00129 
00130 #endif


stdr_gui
Author(s): Manos Tsardoulias
autogenerated on Wed Sep 2 2015 03:36:44