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 "gazebo/sensors/Sensor.hh"
28 #include "gazebo/math/gzmath.hh"
29 #include "gazebo/physics/physics.hh"
30 
31 namespace gazebo
32 {
33  namespace sensors
34  {
37 
40  class RFIDTag: public Sensor
41  {
43  public: RFIDTag();
44 
46  public: virtual ~RFIDTag();
47 
48  // Documentation inherited
49  public: virtual void Load(const std::string & _worldName,
50  sdf::ElementPtr &_sdf);
51 
52  // Documentation inherited
53  public: virtual void Load(const std::string & _worldName);
54 
55  // Documentation inherited
56  public: virtual void Init();
57 
58  // Documentation inherited
59  protected: virtual void UpdateImpl(bool _force);
60 
61  // Documentation inherited
62  public: virtual void Fini();
63 
66  public: math::Pose GetTagPose() const
67  {return entity->GetWorldPose();}
68 
70  private: physics::EntityPtr entity;
71 
73  private: transport::PublisherPtr scanPub;
74  };
76  }
77 }
78 #endif