supereight
Loading...
Searching...
No Matches
reader_newercollege.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 Marija Popovic
4 * SPDX-FileCopyrightText: 2020-2022 Nils Funk
5 * SPDX-FileCopyrightText: 2020-2022 Sotiris Papatheodorou
6 * SPDX-License-Identifier: BSD-3-Clause
7 */
8
9#ifndef __READER_NEWERCOLLEGE_HPP
10#define __READER_NEWERCOLLEGE_HPP
11
12#include "reader_base.hpp"
13
14namespace se {
15
19class NewerCollegeReader : public Reader {
20 public:
26
28 void restart();
29
34 std::string name() const;
35
36 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
37
38 private:
39 std::vector<std::string> scan_filenames_;
40
41 ReaderStatus nextDepth(Image<float>& depth_image);
42
43 static constexpr int8_t pixel_offset[64] = {
44 0, 6, 12, 18, 0, 6, 12, 18, 0, 6, 12, 18, 0, 6, 12, 18, 0, 6, 12, 18, 0, 6,
45 12, 18, 0, 6, 12, 18, 0, 6, 12, 18, 0, 6, 12, 18, 0, 6, 12, 18, 0, 6, 12, 18,
46 0, 6, 12, 18, 0, 6, 12, 18, 0, 6, 12, 18, 0, 6, 12, 18, 0, 6, 12, 18};
47
55 static std::vector<std::string> getScanFilenames(const std::string& dir);
56};
57
58} // namespace se
59
60#endif
Definition image.hpp:19
Reader for the Newer College dataset.
Definition reader_newercollege.hpp:19
std::string name() const
The name of the reader.
void restart()
Restart reading from the beginning.
NewerCollegeReader(const Config &c)
Construct an NewerCollegeReader from a Config.
Base abstract class for dataset readers.
Definition reader_base.hpp:79
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