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

Implements the functionalities of the sonar visualization widget. Inherits form QWidget and Ui_sonarVisualization (auto created from ui file) More...

#include <stdr_sonar_visualization.h>

List of all members.

Public Member Functions

void callback (const sensor_msgs::Range &msg)
 Called when new laser data are available.
void closeEvent (QCloseEvent *event)
 Called when the close event is triggered.
 CSonarVisualisation (QString name, float resolution)
 Default contructor.
void destruct (void)
 Destroys the visualizer.
bool getActive (void)
 Returns true if the visualizer is active.
void paint (void)
 Paints the visualizer.
void setSonar (stdr_msgs::SonarSensorMsg msg)
 Sets the sonar description message.
 ~CSonarVisualisation (void)
 Default destructor.

Private Attributes

bool active_
 < True if the visualizer is active
stdr_msgs::SonarSensorMsg msg_
 The laser frame id.
QString name_
sensor_msgs::Range range_
 Subscriber for getting the sonar ranges.
float resolution_
 The latest sonar range.
ros::Subscriber subscriber_
 Description of the sonar sensor.

Detailed Description

Implements the functionalities of the sonar visualization widget. Inherits form QWidget and Ui_sonarVisualization (auto created from ui file)

Definition at line 39 of file stdr_sonar_visualization.h.


Constructor & Destructor Documentation

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

Default contructor.

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

Definition at line 32 of file stdr_sonar_visualization.cpp.

Default destructor.

Returns:
void

Definition at line 55 of file stdr_sonar_visualization.cpp.


Member Function Documentation

void stdr_gui::CSonarVisualisation::callback ( const sensor_msgs::Range &  msg)

Called when new laser data are available.

Parameters:
msg[const sensor_msgs::Range&] The new sonar data
Returns:
void

Definition at line 111 of file stdr_sonar_visualization.cpp.

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

Called when the close event is triggered.

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

Definition at line 78 of file stdr_sonar_visualization.cpp.

Destroys the visualizer.

Returns:
void

Definition at line 64 of file stdr_sonar_visualization.cpp.

Returns true if the visualizer is active.

Returns:
bool

Definition at line 89 of file stdr_sonar_visualization.cpp.

Paints the visualizer.

Returns:
void

Definition at line 120 of file stdr_sonar_visualization.cpp.

void stdr_gui::CSonarVisualisation::setSonar ( stdr_msgs::SonarSensorMsg  msg)

Sets the sonar description message.

Parameters:
msg[stdr_msgs::SonarSensorMsg] The sonar description
Returns:
void

Definition at line 99 of file stdr_sonar_visualization.cpp.


Member Data Documentation

< True if the visualizer is active

The map resolution

Definition at line 47 of file stdr_sonar_visualization.h.

stdr_msgs::SonarSensorMsg stdr_gui::CSonarVisualisation::msg_ [private]

The laser frame id.

Definition at line 55 of file stdr_sonar_visualization.h.

Definition at line 56 of file stdr_sonar_visualization.h.

sensor_msgs::Range stdr_gui::CSonarVisualisation::range_ [private]

Subscriber for getting the sonar ranges.

Definition at line 51 of file stdr_sonar_visualization.h.

The latest sonar range.

Definition at line 49 of file stdr_sonar_visualization.h.

Description of the sonar sensor.

Definition at line 53 of file stdr_sonar_visualization.h.


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


stdr_gui
Author(s): Manos Tsardoulias
autogenerated on Thu Jun 6 2019 18:57:38