ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
RGBDSensor.h
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // - CloudViewer: www.cloudViewer.org -
3 // ----------------------------------------------------------------------------
4 // Copyright (c) 2018-2024 www.cloudViewer.org
5 // SPDX-License-Identifier: MIT
6 // ----------------------------------------------------------------------------
7 
8 #pragma once
9 
10 #include <memory>
11 
13 
14 namespace cloudViewer {
15 
16 namespace geometry {
17 class RGBDImage;
18 };
19 
20 namespace io {
21 
22 class RGBDSensor {
23 public:
25  virtual bool Connect(size_t sensor_index) = 0;
26  virtual ~RGBDSensor() {};
27 
33  virtual std::shared_ptr<geometry::RGBDImage> CaptureFrame(
34  bool enable_align_depth_to_color) const = 0;
35 };
36 
37 } // namespace io
38 } // namespace cloudViewer
cloudViewer
Generic file read and write utility for python interface.
Definition: CloudViewerConfig.cpp:12
cloudViewer::io::RGBDSensor::RGBDSensor
RGBDSensor()
Definition: RGBDSensor.h:24
cloudViewer::io::RGBDSensor::CaptureFrame
virtual std::shared_ptr< geometry::RGBDImage > CaptureFrame(bool enable_align_depth_to_color) const =0
cloudViewer::io::RGBDSensor::~RGBDSensor
virtual ~RGBDSensor()
Definition: RGBDSensor.h:26
cloudViewer::io::RGBDSensor
Definition: RGBDSensor.h:22
RGBDSensorConfig.h
cloudViewer::io::RGBDSensor::Connect
virtual bool Connect(size_t sensor_index)=0