Implements the functionalities of the laser visualization widget. Inherits form QWidget and Ui_laserVisualization (auto created from ui file) More...
#include <stdr_laser_visualization.h>
Public Member Functions | |
| void | callback (const sensor_msgs::LaserScan &msg) |
| Called when new laser data are available. | |
| CLaserVisualisation (QString name, float resolution) | |
| Default contructor. | |
| void | closeEvent (QCloseEvent *event) |
| Called when the close event is triggered. | |
| void | destruct (void) |
| Destroys the visualizer. | |
| bool | getActive (void) |
| Returns true if the visualizer is active. | |
| void | paint (void) |
| Paints the visualizer. | |
| void | setLaser (stdr_msgs::LaserSensorMsg msg) |
| Sets the laser description message. | |
| ~CLaserVisualisation (void) | |
| Default destructor. | |
Private Attributes | |
| bool | active_ |
| < True if the visualizer is active | |
| QImage | internal_image_ |
| A void image. | |
| stdr_msgs::LaserSensorMsg | msg_ |
| The image to draw into. | |
| QString | name_ |
| float | resolution_ |
| The latest laser scan. | |
| sensor_msgs::LaserScan | scan_ |
| Subscriber for getting the laser scans. | |
| ros::Subscriber | subscriber_ |
| Description of the laser sensor. | |
| QImage | void_image_ |
| The laser frame id. | |
Implements the functionalities of the laser visualization widget. Inherits form QWidget and Ui_laserVisualization (auto created from ui file)
Definition at line 38 of file stdr_laser_visualization.h.
| stdr_gui::CLaserVisualisation::CLaserVisualisation | ( | QString | name, |
| float | resolution | ||
| ) |
Default contructor.
| name | [QString] Laser frame id |
| resolution | [float] Map resolution |
Definition at line 33 of file stdr_laser_visualization.cpp.
| void stdr_gui::CLaserVisualisation::callback | ( | const sensor_msgs::LaserScan & | msg | ) |
Called when new laser data are available.
| msg | [const sensor_msgs::LaserScan&] The new laser data |
Definition at line 119 of file stdr_laser_visualization.cpp.
| void stdr_gui::CLaserVisualisation::closeEvent | ( | QCloseEvent * | event | ) |
Called when the close event is triggered.
| event | [QCloseEvent*] The close event |
Definition at line 86 of file stdr_laser_visualization.cpp.
| void stdr_gui::CLaserVisualisation::destruct | ( | void | ) |
| bool stdr_gui::CLaserVisualisation::getActive | ( | void | ) |
Returns true if the visualizer is active.
Definition at line 97 of file stdr_laser_visualization.cpp.
| void stdr_gui::CLaserVisualisation::paint | ( | void | ) |
| void stdr_gui::CLaserVisualisation::setLaser | ( | stdr_msgs::LaserSensorMsg | msg | ) |
Sets the laser description message.
| msg | [stdr_msgs::LaserSensorMsg] The laser description |
Definition at line 107 of file stdr_laser_visualization.cpp.
bool stdr_gui::CLaserVisualisation::active_ [private] |
< True if the visualizer is active
The map resolution
Definition at line 47 of file stdr_laser_visualization.h.
QImage stdr_gui::CLaserVisualisation::internal_image_ [private] |
A void image.
Definition at line 60 of file stdr_laser_visualization.h.
stdr_msgs::LaserSensorMsg stdr_gui::CLaserVisualisation::msg_ [private] |
The image to draw into.
Definition at line 58 of file stdr_laser_visualization.h.
QString stdr_gui::CLaserVisualisation::name_ [private] |
Definition at line 63 of file stdr_laser_visualization.h.
float stdr_gui::CLaserVisualisation::resolution_ [private] |
The latest laser scan.
Definition at line 50 of file stdr_laser_visualization.h.
sensor_msgs::LaserScan stdr_gui::CLaserVisualisation::scan_ [private] |
Subscriber for getting the laser scans.
Definition at line 52 of file stdr_laser_visualization.h.
Description of the laser sensor.
Definition at line 55 of file stdr_laser_visualization.h.
QImage stdr_gui::CLaserVisualisation::void_image_ [private] |
The laser frame id.
Definition at line 62 of file stdr_laser_visualization.h.