Public Member Functions | Private Attributes
stdr_gui::CLaserVisualisation Class Reference

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>

List of all members.

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.

Detailed Description

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.


Constructor & Destructor Documentation

stdr_gui::CLaserVisualisation::CLaserVisualisation ( QString  name,
float  resolution 
)

Default contructor.

Parameters:
name[QString] Laser frame id
resolution[float] Map resolution
Returns:
void

Definition at line 33 of file stdr_laser_visualization.cpp.

Default destructor.

Returns:
void

Definition at line 61 of file stdr_laser_visualization.cpp.


Member Function Documentation

void stdr_gui::CLaserVisualisation::callback ( const sensor_msgs::LaserScan &  msg)

Called when new laser data are available.

Parameters:
msg[const sensor_msgs::LaserScan&] The new laser data
Returns:
void

Definition at line 119 of file stdr_laser_visualization.cpp.

void stdr_gui::CLaserVisualisation::closeEvent ( QCloseEvent *  event)

Called when the close event is triggered.

Parameters:
event[QCloseEvent*] The close event
Returns:
void

Definition at line 86 of file stdr_laser_visualization.cpp.

Destroys the visualizer.

Returns:
void

Definition at line 70 of file stdr_laser_visualization.cpp.

Returns true if the visualizer is active.

Returns:
bool

Definition at line 97 of file stdr_laser_visualization.cpp.

Paints the visualizer.

Returns:
void

Definition at line 128 of file stdr_laser_visualization.cpp.

void stdr_gui::CLaserVisualisation::setLaser ( stdr_msgs::LaserSensorMsg  msg)

Sets the laser description message.

Parameters:
msg[stdr_msgs::LaserSensorMsg] The laser description
Returns:
void

Definition at line 107 of file stdr_laser_visualization.cpp.


Member Data Documentation

< True if the visualizer is active

The map resolution

Definition at line 47 of file stdr_laser_visualization.h.

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.

Definition at line 63 of file stdr_laser_visualization.h.

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.

The laser frame id.

Definition at line 62 of file stdr_laser_visualization.h.


The documentation for this class was generated from the following files:


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