Public Member Functions | Private Attributes | List of all members
stdr_gui::CGuiCO2 Class Reference

Implements the functionalities for an RFID antenna sensor. More...

#include <stdr_gui_co2.h>

Public Member Functions

void callback (const stdr_msgs::CO2SensorMeasurementMsg &msg)
 Callback for the rfid measurement message. More...
 
 CGuiCO2 (stdr_msgs::CO2SensorMsg msg, std::string baseTopic)
 Default contructor. More...
 
std::string getFrameId (void)
 Returns the frame id of the specific sensor. More...
 
char getVisualizationStatus (void)
 Returns the visibility status of the specific sensor. More...
 
void paint (QImage *m, float ocgd, tf::TransformListener *listener)
 Paints the rfid measurements in the map image. More...
 
void setEnvironmentalCO2Sources (stdr_msgs::CO2SourceVector env_co2_sources)
 Sets the tags existent in the environment. More...
 
void setVisualizationStatus (char vs)
 Sets the visibility status of the specific sensor. More...
 
void toggleVisualizationStatus (void)
 Toggles the visibility status of the specific sensor. More...
 
 ~CGuiCO2 (void)
 Default destructor. More...
 

Private Attributes

stdr_msgs::CO2SensorMeasurementMsg co2_sources_
 The tags that exist in the environment. More...
 
stdr_msgs::CO2SourceVector env_co2_sources_
 
bool lock_
 The ROS tf frame. More...
 
stdr_msgs::CO2SensorMsg msg_
 A ros subscriber. More...
 
ros::Subscriber subscriber_
 Used to avoid drawing when a new sonar message arives. More...
 
std::string tf_frame_
 Visualization status of the specific sonar. More...
 
std::string topic_
 < The topic from which the new RFID tags will be got More...
 
char visualization_status_
 The stdr rfid sensor measurement msg. More...
 

Detailed Description

Implements the functionalities for an RFID antenna sensor.

Definition at line 39 of file stdr_gui_co2.h.

Constructor & Destructor Documentation

stdr_gui::CGuiCO2::CGuiCO2 ( stdr_msgs::CO2SensorMsg  msg,
std::string  baseTopic 
)

Default contructor.

Parameters
msg[stdr_msgs::RfidSensorMsg] The rfid antenna description msg
baseTopic[std::string] The ros topic for subscription
Returns
void

Definition at line 29 of file stdr_gui_co2.cpp.

stdr_gui::CGuiCO2::~CGuiCO2 ( void  )

Default destructor.

Returns
void

Definition at line 128 of file stdr_gui_co2.cpp.

Member Function Documentation

void stdr_gui::CGuiCO2::callback ( const stdr_msgs::CO2SensorMeasurementMsg &  msg)

Callback for the rfid measurement message.

Callback for the rfid measurements message.

Parameters
msg[const stdr_msgs::RfidSensorMeasurementMsg&] The new rfid\ sensor measurement message
Returns
void

Definition at line 43 of file stdr_gui_co2.cpp.

std::string stdr_gui::CGuiCO2::getFrameId ( void  )

Returns the frame id of the specific sensor.

Returns
std::string : The sensor's frame id

Definition at line 161 of file stdr_gui_co2.cpp.

char stdr_gui::CGuiCO2::getVisualizationStatus ( void  )

Returns the visibility status of the specific sensor.

Returns
char : The visibility status

Definition at line 136 of file stdr_gui_co2.cpp.

void stdr_gui::CGuiCO2::paint ( QImage *  m,
float  ocgd,
tf::TransformListener listener 
)

Paints the rfid measurements in the map image.

Paints the sensor measurement in the map image.

Parameters
m[QImage*] The image to be drawn
ocgd[float] The map's resolution
listener[tf::TransformListener *] ROS tf transform listener
Returns
void

< Find transformation

< Draw measurement stuff

Definition at line 55 of file stdr_gui_co2.cpp.

void stdr_gui::CGuiCO2::setEnvironmentalCO2Sources ( stdr_msgs::CO2SourceVector  env_co2_sources)

Sets the tags existent in the environment.

Parameters
env_tags[stdr_msgs::RfidTagVector] The tag vector
Returns
void
Parameters
env_tags[stdr_msgs::CO2SourceVector] The sources vector
Returns
void

Definition at line 171 of file stdr_gui_co2.cpp.

void stdr_gui::CGuiCO2::setVisualizationStatus ( char  vs)

Sets the visibility status of the specific sensor.

Parameters
vs[char] The new visibility status
Returns
void

Definition at line 152 of file stdr_gui_co2.cpp.

void stdr_gui::CGuiCO2::toggleVisualizationStatus ( void  )

Toggles the visibility status of the specific sensor.

Returns
void

Definition at line 144 of file stdr_gui_co2.cpp.

Member Data Documentation

stdr_msgs::CO2SensorMeasurementMsg stdr_gui::CGuiCO2::co2_sources_
private

The tags that exist in the environment.

Definition at line 57 of file stdr_gui_co2.h.

stdr_msgs::CO2SourceVector stdr_gui::CGuiCO2::env_co2_sources_
private

Definition at line 60 of file stdr_gui_co2.h.

bool stdr_gui::CGuiCO2::lock_
private

The ROS tf frame.

Definition at line 51 of file stdr_gui_co2.h.

stdr_msgs::CO2SensorMsg stdr_gui::CGuiCO2::msg_
private

A ros subscriber.

Definition at line 47 of file stdr_gui_co2.h.

ros::Subscriber stdr_gui::CGuiCO2::subscriber_
private

Used to avoid drawing when a new sonar message arives.

Definition at line 49 of file stdr_gui_co2.h.

std::string stdr_gui::CGuiCO2::tf_frame_
private

Visualization status of the specific sonar.

Definition at line 53 of file stdr_gui_co2.h.

std::string stdr_gui::CGuiCO2::topic_
private

< The topic from which the new RFID tags will be got

The description for the rfid antenna message

Definition at line 45 of file stdr_gui_co2.h.

char stdr_gui::CGuiCO2::visualization_status_
private

The stdr rfid sensor measurement msg.

Definition at line 55 of file stdr_gui_co2.h.


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


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