Line | |
---|
1 | #ifndef LIB3DV_POSE_H
|
---|
2 | #define LIB3DV_POSE_H
|
---|
3 |
|
---|
4 | /* lib3dv/pose.h
|
---|
5 | *
|
---|
6 | * Copyright (C) 2014 VisLab
|
---|
7 | *
|
---|
8 | * This file is part of lib3dv; you can redistribute it and/or modify
|
---|
9 | * it under the terms of the GNU Lesser General Public License as published by
|
---|
10 | * the Free Software Foundation; either version 3 of the License, or (at
|
---|
11 | * your option) any later version.
|
---|
12 | *
|
---|
13 | * This program is distributed in the hope that it will be useful, but
|
---|
14 | * WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
---|
16 | * General Public License for more details.
|
---|
17 | *
|
---|
18 | * You should have received a copy of the GNU Lesser General Public License
|
---|
19 | * along with this program; if not, see <http://www.gnu.org/licenses/>.
|
---|
20 | */
|
---|
21 |
|
---|
22 |
|
---|
23 | #include <boost/date_time/posix_time/posix_time.hpp>
|
---|
24 |
|
---|
25 | #include <vector>
|
---|
26 |
|
---|
27 | namespace lib3dv
|
---|
28 | {
|
---|
29 | /**
|
---|
30 | * @brief Pose data.
|
---|
31 | *
|
---|
32 | * The estimated pose is a 4x4 Matrix represented as a scalable array.
|
---|
33 | */
|
---|
34 | struct pose
|
---|
35 | {
|
---|
36 | /**
|
---|
37 | * @brief Pose type.
|
---|
38 | */
|
---|
39 | struct type
|
---|
40 | {
|
---|
41 | enum types
|
---|
42 | {
|
---|
43 | CURRENT_POSE = 0, ///< Absolute current pose
|
---|
44 | RELATIVE_POSE ///< Relative pose
|
---|
45 | };
|
---|
46 | };
|
---|
47 |
|
---|
48 | type::types m_type; ///< Pose type. @see lib3dv::pose::type
|
---|
49 | boost::posix_time::ptime m_timestamp; ///< Pose timestamp.
|
---|
50 | std::vector<double> m_data; ///< Pose array data.
|
---|
51 | };
|
---|
52 | }
|
---|
53 |
|
---|
54 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.