rfid_reader.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 RFID_READER_H
23 #define RFID_READER_H
24 
27 #include <stdr_msgs/RfidSensorMsg.h>
28 #include <stdr_msgs/RfidSensorMeasurementMsg.h>
29 #include <stdr_msgs/RfidTagVector.h>
30 
35 namespace stdr_robot {
36 
41  class RfidReader : public Sensor {
42 
43  public:
53  RfidReader(const nav_msgs::OccupancyGrid& map,
54  const stdr_msgs::RfidSensorMsg& msg,
55  const std::string& name,
56  ros::NodeHandle& n);
57 
62  virtual void updateSensorCallback();
63 
68  ~RfidReader(void);
69 
75  void receiveRfids(const stdr_msgs::RfidTagVector& msg);
76 
77  private:
78 
80  stdr_msgs::RfidSensorMsg _description;
81 
84 
86  stdr_msgs::RfidTagVector rfid_tags_;
87  };
88 
89 }
90 
91 #endif
stdr_msgs::RfidSensorMsg _description
< Sonar rfid reader description
Definition: rfid_reader.h:80
The main namespace for STDR Robot.
Definition: exceptions.h:27
A class that provides sensor abstraction.
Definition: sensor_base.h:40
virtual void updateSensorCallback()
Updates the sensor measurements.
Definition: rfid_reader.cpp:66
ros::Subscriber rfids_subscriber_
The currently existent RFID tags.
Definition: rfid_reader.h:83
~RfidReader(void)
Default destructor.
Definition: rfid_reader.cpp:57
void receiveRfids(const stdr_msgs::RfidTagVector &msg)
Receives the existent rfid tags.
stdr_msgs::RfidTagVector rfid_tags_
Definition: rfid_reader.h:86
RfidReader(const nav_msgs::OccupancyGrid &map, const stdr_msgs::RfidSensorMsg &msg, const std::string &name, ros::NodeHandle &n)
Default constructor.
Definition: rfid_reader.cpp:34


stdr_robot
Author(s): Manos Tsardoulias, Chris Zalidis, Aris Thallas
autogenerated on Mon Jun 10 2019 15:15:10