All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RFIDTagVisual.hh
Go to the documentation of this file.
1 /* Copyright (C)
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  */
16 /* Desc:
17  * Author: Jonas Mellin & Zakiruz Zaman
18  * Date: 6th December 2011
19  */
20 
21 #ifndef _RFIDTAGVISUAL_HH_
22 #define _RFIDTAGVISUAL_HH_
23 
24 #include <string>
25 
26 #include "rendering/Visual.hh"
27 #include "msgs/MessageTypes.hh"
29 
30 namespace gazebo
31 {
32  namespace rendering
33  {
36 
39  class RFIDTagVisual : public Visual
40  {
46  public: RFIDTagVisual(const std::string &_name, VisualPtr _vis,
47  const std::string &_topicName);
48 
50  public: virtual ~RFIDTagVisual();
51 
54  private: void OnScan(ConstPosePtr &_msg);
55 
57  private: transport::NodePtr node;
58 
60  private: transport::SubscriberPtr rfidSub;
61  };
63  }
64 }
65 #endif