All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RFIDTag.hh
Go to the documentation of this file.
1 /* Copyright (C) 2012
2  * Jonas Mellin & Zakiruz Zaman
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  * http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 /* Desc: RFID Tag
16  * Author: Jonas Mellin & Zakiruz Zaman
17  * Date: 6th December 2011
18  */
19 
20 #ifndef RFIDTAG_HH
21 #define RFIDTAG_HH
22 
23 #include <vector>
24 #include <string>
25 
27 #include "sensors/Sensor.hh"
28 #include "math/gzmath.hh"
29 #include "physics/physics.hh"
30 
31 namespace gazebo
32 {
35  namespace sensors
36  {
42  class RFIDTag: public Sensor
43  {
45  public: RFIDTag();
46 
48  public: virtual ~RFIDTag();
49 
53  public: virtual void Load(const std::string & _worldName,
54  sdf::ElementPtr &_sdf);
55 
58  public: virtual void Load(const std::string & _worldName);
59 
61  public: virtual void Init();
62 
65  protected: virtual void UpdateImpl(bool _force);
66 
68  public: virtual void Fini();
69 
72  public: math::Pose GetTagPose() {return entity->GetWorldPose();}
73 
74  private: physics::EntityPtr entity;
75  private: transport::PublisherPtr scanPub;
76  };
78  }
79 }
80 #endif