Fawkes API  Fawkes Development Version
types_lua.h
1 
2 /***************************************************************************
3  * types_lua.h - Fawkes Lua compatibility tf types
4  *
5  * Created: Mon Nov 28 13:22:29 2011
6  * Copyright 2011 Tim Niemueller [www.niemueller.de]
7  ****************************************************************************/
8 
9 /* This program is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation; either version 2 of the License, or
12  * (at your option) any later version. A runtime exception applies to
13  * this software (see LICENSE.GPL_WRE file mentioned below for details).
14  *
15  * This program is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  * GNU Library General Public License for more details.
19  *
20  * Read the full text in the LICENSE.GPL_WRE file in the doc directory.
21  */
22 
23 #ifndef __LIBS_TF_TYPES_LUA_H_
24 #define __LIBS_TF_TYPES_LUA_H_
25 
26 #include <tf/types.h>
27 
28 namespace fawkes {
29  namespace tf {
30 #if 0 /* just to make Emacs auto-indent happy */
31  }
32 }
33 #endif
34 
35 // The following classes are used for better Lua compatibility
36 
37 /// @cond LUA_COMPAT
38 
39 class StampedQuaternion : public Stamped<Quaternion>
40 {
41  public:
42  StampedQuaternion() : Stamped<Quaternion>() {}
43  StampedQuaternion(const Quaternion &input, const fawkes::Time &timestamp,
44  const std::string &frame_id)
45  : Stamped<Quaternion>(input, timestamp, frame_id) {}
46 };
47 
48 class StampedVector3 : public Stamped<Vector3>
49 {
50  public:
51  StampedVector3() : Stamped<Vector3>() {}
52  StampedVector3(const Vector3 &input, const fawkes::Time &timestamp,
53  const std::string &frame_id)
54  : Stamped<Vector3>(input, timestamp, frame_id) {}
55 
56 };
57 
58 
59 class StampedPoint : public Stamped<Point>
60 {
61  public:
62  StampedPoint() : Stamped<Point>() {}
63  StampedPoint(const Point &input, const fawkes::Time &timestamp,
64  const std::string &frame_id)
65  : Stamped<Point>(input, timestamp, frame_id) {}
66 
67 };
68 
69 class StampedPose : public Stamped<Pose>
70 {
71  public:
72  StampedPose() : Stamped<Pose>() {}
73  StampedPose(const Pose &input, const fawkes::Time &timestamp,
74  const std::string &frame_id)
75  : Stamped<Pose>(input, timestamp, frame_id) {}
76 };
77 
78 /// @endcond
79 
80 } // end namespace tf
81 } // end namespace fawkes
82 
83 #endif
Fawkes library namespace.
A class for handling time.
Definition: time.h:91