8#include <RobotsIO/Camera/DatasetCamera.h>
10using namespace RobotsIO::Camera;
13DatasetCamera::DatasetCamera
15 const std::string& data_path,
16 const std::string& data_prefix,
17 const std::string& rgb_prefix,
18 const std::string& depth_prefix,
19 const std::string& data_format,
20 const std::string& rgb_format,
21 const std::string& depth_format,
22 const std::size_t& heading_zeros,
23 const std::size_t& index_offset,
24 const std::size_t& width,
31 Camera(data_path, width, height, fx, cx, fy, cy)
34 dataset_parameters_.data_prefix(data_prefix);
35 dataset_parameters_.rgb_prefix(rgb_prefix);
36 dataset_parameters_.depth_prefix(depth_prefix);
37 dataset_parameters_.data_format(data_format);
38 dataset_parameters_.rgb_format(rgb_format);
39 dataset_parameters_.depth_format(depth_format);
40 dataset_parameters_.heading_zeros(heading_zeros);
41 dataset_parameters_.index_offset(index_offset);
47DatasetCamera::~DatasetCamera()
57std::pair<bool, Eigen::Transform<double, 3, Eigen::Affine>> DatasetCamera::pose(
const bool& blocking)
59 return pose_offline();
63std::pair<bool, cv::Mat> DatasetCamera::rgb(
const bool& blocking)
69std::pair<bool, double> DatasetCamera::time_stamp_rgb()
const
71 return time_stamp_rgb_offline();
75std::pair<bool, double> DatasetCamera::time_stamp_depth()
const
77 return time_stamp_depth_offline();
virtual std::pair< bool, Eigen::MatrixXf > depth_offline()
virtual std::pair< bool, Eigen::MatrixXf > depth(const bool &blocking) override