stdr_laser_visualization.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_LASER_VISUALIZATION
00023 #define STDR_LASER_VISUALIZATION
00024 
00025 #include "stdr_gui/stdr_tools.h"
00026 #include "ui_laserVisualization.h"
00027 
00032 namespace stdr_gui
00033 {
00038   class CLaserVisualisation : 
00039     public QWidget, 
00040     public Ui_laserVisualization
00041   {
00042     //------------------------------------------------------------------------//
00043     private:
00044       
00046       bool active_;
00048       float resolution_;
00049       
00051       sensor_msgs::LaserScan   scan_;
00053       ros::Subscriber     subscriber_;
00054       
00056       stdr_msgs::LaserSensorMsg msg_;
00057       
00059       QImage internal_image_;
00061       QImage void_image_;
00063       QString name_;
00064     
00065     //------------------------------------------------------------------------//
00066     public:
00073       CLaserVisualisation(QString name,float resolution);
00074       
00079       ~CLaserVisualisation(void);
00080     
00085       bool getActive(void);
00086       
00092       void setLaser(stdr_msgs::LaserSensorMsg msg);
00093       
00098       void destruct(void);
00099       
00105       void closeEvent(QCloseEvent *event);
00106       
00112       void callback(const sensor_msgs::LaserScan& msg); 
00113       
00118       void paint(void);
00119   };  
00120 }
00121 
00122 #endif


stdr_gui
Author(s): Manos Tsardoulias
autogenerated on Tue Feb 7 2017 03:46:43