stdr_laser_visualization.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_LASER_VISUALIZATION
23 #define STDR_LASER_VISUALIZATION
24 
25 #include "stdr_gui/stdr_tools.h"
26 #include "ui_laserVisualization.h"
27 
32 namespace stdr_gui
33 {
39  public QWidget,
40  public Ui_laserVisualization
41  {
42  //------------------------------------------------------------------------//
43  private:
44 
46  bool active_;
48  float resolution_;
49 
51  sensor_msgs::LaserScan scan_;
54 
56  stdr_msgs::LaserSensorMsg msg_;
57 
61  QImage void_image_;
63  QString name_;
64 
65  //------------------------------------------------------------------------//
66  public:
73  CLaserVisualisation(QString name,float resolution);
74 
80 
85  bool getActive(void);
86 
92  void setLaser(stdr_msgs::LaserSensorMsg msg);
93 
98  void destruct(void);
99 
105  void closeEvent(QCloseEvent *event);
106 
112  void callback(const sensor_msgs::LaserScan& msg);
113 
118  void paint(void);
119  };
120 }
121 
122 #endif
float resolution_
The latest laser scan.
sensor_msgs::LaserScan scan_
Subscriber for getting the laser scans.
stdr_msgs::LaserSensorMsg msg_
The image to draw into.
void destruct(void)
Destroys the visualizer.
ros::Subscriber subscriber_
Description of the laser sensor.
bool active_
< True if the visualizer is active
CLaserVisualisation(QString name, float resolution)
Default contructor.
void setLaser(stdr_msgs::LaserSensorMsg msg)
Sets the laser description message.
void paint(void)
Paints the visualizer.
Implements the functionalities of the laser visualization widget. Inherits form QWidget and Ui_laserV...
The main namespace for STDR GUI.
void closeEvent(QCloseEvent *event)
Called when the close event is triggered.
QImage void_image_
The laser frame id.
bool getActive(void)
Returns true if the visualizer is active.
~CLaserVisualisation(void)
Default destructor.
void callback(const sensor_msgs::LaserScan &msg)
Called when new laser data are available.


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