RobotsIO
Loading...
Searching...
No Matches
DatasetCamera.h
1/*
2 * Copyright (C) 2019 Istituto Italiano di Tecnologia (IIT)
3 *
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_DATASETCAMERA_H
9#define ROBOTSIO_DATASETCAMERA_H
10
11#include <RobotsIO/Camera/Camera.h>
12
13#include <string>
14
15namespace RobotsIO {
16 namespace Camera {
17 class DatasetCamera;
18 }
19}
20
21
23{
24public:
25 DatasetCamera(const std::string& data_path, const std::string& data_prefix, const std::string& rgb_prefix, const std::string& depth_prefix, const std::string& data_format, const std::string& rgb_format, const std::string& depth_format, const std::size_t& heading_zeros, const std::size_t& index_offset, const std::size_t& width, const double& height, const double& fx, const double& cx, const double& fy, const double& cy);
26
27 virtual ~DatasetCamera();
28
33 virtual std::pair<bool, Eigen::MatrixXf> depth(const bool& blocking) override;
34
35 virtual std::pair<bool, Eigen::Transform<double, 3, Eigen::Affine>> pose(const bool& blocking) override;
36
37 virtual std::pair<bool, cv::Mat> rgb(const bool& blocking) override;
38
39 virtual std::pair<bool, double> time_stamp_rgb() const override;
40
41 virtual std::pair<bool, double> time_stamp_depth() const override;
42
43private:
44 const std::string log_name_ = "DatasetCamera";
45};
46
47#endif /* ROBOTSIO_DATASETCAMERA_H */
virtual std::pair< bool, Eigen::MatrixXf > depth(const bool &blocking) override