RobotsIO
Loading...
Searching...
No Matches
DatasetTransformDelayed.h
1/*
2 * Copyright (C) 2020 Istituto Italiano di Tecnologia (IIT)
3NN *
4 * This software may be modified and distributed under the terms of the
5 * BSD 3-Clause license. See the accompanying LICENSE file for details.
6 */
7
8#ifndef ROBOTSIO_DATASETTRANSFORMDELAYED_H
9#define ROBOTSIO_DATASETTRANSFORMDELAYED_H
10
11#include <Eigen/Dense>
12
13#include <RobotsIO/Utils/DatasetDataStreamDelayed.h>
14#include <RobotsIO/Utils/Transform.h>
15
16namespace RobotsIO {
17 namespace Utils {
18 class DatasetTransformDelayed;
19 }
20}
21
22
25{
26public:
27 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
28
29 DatasetTransformDelayed(const double& fps, const double& simulated_fps, const bool simulate_inference_time, const std::string& file_path, const std::size_t& skip_rows, const std::size_t& skip_cols, const std::size_t& expected_cols, const int rx_time_index = RobotsIO::Utils::DatasetDataStream::NoTimeIndex, const int tx_time_index = RobotsIO::Utils::DatasetDataStream::NoTimeIndex);
30
32
33 Eigen::Transform<double, 3, Eigen::Affine> transform() override;
34
35 bool freeze(const bool blocking = false) override;
36
37 int get_frames_between_iterations() const override;
38
39private:
40 Eigen::Transform<double, 3, Eigen::Affine> transform_;
41
42 double fps_;
43
44 double simulated_fps_;
45
46 const std::string log_name_ = "DatasetTransformDelayed";
47};
48
49#endif /* ROBOTSIO_DATASETTRANSFORMDELAYED_H */