RFIDTag.hh
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2012-2015 Open Source Robotics Foundation
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16 */
17 #ifndef _GAZEBO_RFIDTAG_HH_
18 #define _GAZEBO_RFIDTAG_HH_
19 
20 #include <vector>
21 #include <string>
22 #include <ignition/math/Pose3.hh>
23 
26 #include "gazebo/sensors/Sensor.hh"
27 #include "gazebo/math/Pose.hh"
28 #include "gazebo/physics/physics.hh"
29 #include "gazebo/util/system.hh"
30 
31 namespace gazebo
32 {
33  namespace sensors
34  {
37 
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 bool UpdateImpl(bool _force);
60 
61  // Documentation inherited
62  public: virtual void Fini();
63 
68  public: math::Pose GetTagPose() const GAZEBO_DEPRECATED(6.0);
69 
72  public: ignition::math::Pose3d TagPose() const;
73 
75  private: physics::EntityPtr entity;
76 
78  private: transport::PublisherPtr scanPub;
79  };
81  }
82 }
83 #endif
Encapsulates a position and rotation in three space.
Definition: Pose.hh:37
Forward declarations for transport.
#define GAZEBO_DEPRECATED(version)
Definition: CommonTypes.hh:47
RFIDTag to interact with RFIDTagSensors.
Definition: RFIDTag.hh:40
boost::shared_ptr< Entity > EntityPtr
Definition: PhysicsTypes.hh:76
GAZEBO_VISIBLE void Init(google::protobuf::Message &_message, const std::string &_id="")
Initialize a message.
boost::shared_ptr< Publisher > PublisherPtr
Definition: TransportTypes.hh:49
Base class for sensors.
Definition: Sensor.hh:69
#define GAZEBO_VISIBLE
Use to represent "symbol visible" if supported.
Definition: system.hh:66