supereight
Loading...
Searching...
No Matches
reader_tum.hpp
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2020-2022 Smart Robotics Lab, Imperial College London, Technical University of Munich
3 * SPDX-FileCopyrightText: 2020-2022 Nils Funk
4 * SPDX-FileCopyrightText: 2020-2022 Sotiris Papatheodorou
5 * SPDX-License-Identifier: BSD-3-Clause
6 */
7
8#ifndef __READER_TUM_HPP
9#define __READER_TUM_HPP
10
11#include "reader_base.hpp"
12
13namespace se {
14
18class TUMReader : public Reader {
19 public:
25
30 ReaderStatus nextPose(Eigen::Isometry3f& T_WB);
31
32
34 void restart();
35
36
41 std::string name() const;
42
43 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
44
45 private:
46 static constexpr float tum_inverse_scale_ = 1.0f / 5000.0f;
47 float inverse_scale_;
48
49 // TODO Allow setting the max_match_timestamp_dist_ and
50 // max_interp_timestamp_dist_ at runtime from the YAML file. Not sure how
51 // to handle this yet since they only apply to the TUM dataset reader.
52 static constexpr double max_match_timestamp_dist_ = 0.02;
53
54 static constexpr double max_interp_timestamp_dist_ = 10.0 * max_match_timestamp_dist_;
55
56 std::vector<std::string> depth_filenames_;
57
58 std::vector<std::string> rgb_filenames_;
59
60 std::vector<Eigen::Isometry3f, Eigen::aligned_allocator<Eigen::Isometry3f>>
61 associated_gt_poses_;
62
64
66};
67
68
69
70} // namespace se
71
72
73#endif
Definition image.hpp:19
Base abstract class for dataset readers.
Definition reader_base.hpp:79
Reader for the TUM RGBD dataset.
Definition reader_tum.hpp:18
TUMReader(const Config &c)
Construct a TUMReader from a Config.
void restart()
Restart reading from the beginning.
std::string name() const
The name of the reader.
ReaderStatus nextPose(Eigen::Isometry3f &T_WB)
Obtain the nextPose from the TUM RGBD dataset format.
Helper wrapper to allocate and de-allocate octants in the octree.
Definition bounded_vector.hpp:14
ReaderStatus
The result of trying to read a depth/RGB image or a pose.
Definition reader_base.hpp:45
Definition reader_base.hpp:81