stdr_gui_rfid.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_GUI_RFID_CONTAINER
23 #define STDR_GUI_RFID_CONTAINER
24 
25 #include "stdr_gui/stdr_tools.h"
26 #include "stdr_msgs/RfidSensorMsg.h"
27 #include "stdr_msgs/RfidSensorMeasurementMsg.h"
28 
33 namespace stdr_gui
34 {
39  class CGuiRfid
40  {
41  //------------------------------------------------------------------------//
42  private:
43 
45  std::string topic_;
47  stdr_msgs::RfidSensorMsg msg_;
51  bool lock_;
53  std::string tf_frame_;
57  stdr_msgs::RfidSensorMeasurementMsg tags_;
58 
60  stdr_msgs::RfidTagVector env_tags_;
61 
62  //------------------------------------------------------------------------//
63  public:
64 
71  CGuiRfid(stdr_msgs::RfidSensorMsg msg,std::string baseTopic);
72 
79  void callback(const stdr_msgs::RfidSensorMeasurementMsg& msg);
80 
88  void paint(QImage *m,float ocgd,tf::TransformListener *listener);
89 
94  ~CGuiRfid(void);
95 
100  char getVisualizationStatus(void);
101 
106  void toggleVisualizationStatus(void);
107 
113  void setVisualizationStatus(char vs);
114 
119  std::string getFrameId(void);
120 
126  void setEnvironmentalTags(stdr_msgs::RfidTagVector env_tags);
127  };
128 }
129 
130 #endif
void setEnvironmentalTags(stdr_msgs::RfidTagVector env_tags)
Sets the tags existent in the environment.
bool lock_
The ROS tf frame.
Definition: stdr_gui_rfid.h:51
std::string tf_frame_
Visualization status of the specific sonar.
Definition: stdr_gui_rfid.h:53
void callback(const stdr_msgs::RfidSensorMeasurementMsg &msg)
Callback for the rfid measurement message.
stdr_msgs::RfidSensorMsg msg_
A ros subscriber.
Definition: stdr_gui_rfid.h:47
std::string getFrameId(void)
Returns the frame id of the specific sensor.
stdr_msgs::RfidSensorMeasurementMsg tags_
The tags that exist in the environment.
Definition: stdr_gui_rfid.h:57
ros::Subscriber subscriber_
Used to avoid drawing when a new sonar message arives.
Definition: stdr_gui_rfid.h:49
void toggleVisualizationStatus(void)
Toggles the visibility status of the specific sensor.
void setVisualizationStatus(char vs)
Sets the visibility status of the specific sensor.
stdr_msgs::RfidTagVector env_tags_
Definition: stdr_gui_rfid.h:60
CGuiRfid(stdr_msgs::RfidSensorMsg msg, std::string baseTopic)
Default contructor.
Implements the functionalities for an RFID antenna sensor.
Definition: stdr_gui_rfid.h:39
char visualization_status_
The stdr rfid sensor measurement msg.
Definition: stdr_gui_rfid.h:55
The main namespace for STDR GUI.
std::string topic_
< The topic from which the new RFID tags will be got
Definition: stdr_gui_rfid.h:45
~CGuiRfid(void)
Default destructor.
char getVisualizationStatus(void)
Returns the visibility status of the specific sensor.
void paint(QImage *m, float ocgd, tf::TransformListener *listener)
Paints the rfid measurements in the map image.


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