Open3D (C++ API)
0.19.0
|
Interface class for control of RGBD cameras. More...
#include <RGBDSensor.h>
Public Member Functions | |
RGBDSensor () | |
Default constructor. Initialize with default settings. More... | |
virtual | ~RGBDSensor () |
virtual bool | InitSensor (const RGBDSensorConfig &sensor_config, size_t sensor_index=0, const std::string &filename="")=0 |
virtual bool | StartCapture (bool start_record=false)=0 |
virtual void | PauseRecord ()=0 |
Pause recording to the file. More... | |
virtual void | ResumeRecord ()=0 |
virtual geometry::RGBDImage | CaptureFrame (bool wait=true, bool align_depth_to_color=true)=0 |
virtual uint64_t | GetTimestamp () const =0 |
Get current timestamp (in us). More... | |
virtual void | StopCapture ()=0 |
Stop capturing frames. More... | |
virtual const RGBDVideoMetadata & | GetMetadata () const =0 |
Get const reference to the metadata of the RGBD video capture. More... | |
virtual std::string | GetFilename () const =0 |
Get filename being written. More... | |
virtual const std::string | ToString () const |
Text Description. More... | |
Interface class for control of RGBD cameras.
|
inline |
Default constructor. Initialize with default settings.
|
inlinevirtual |
|
pure virtual |
Acquire the next synchronized RGBD frameset from the camera.
align_depth_to_color | Enable aligning WFOV depth image to the color image in visualizer. |
wait | If true wait for the next frame set, else return immediately with an empty RGBDImage if it is not yet available |
Implemented in open3d::t::io::RealSenseSensor.
|
pure virtual |
Get filename being written.
Implemented in open3d::t::io::RealSenseSensor.
|
pure virtual |
Get const reference to the metadata of the RGBD video capture.
Implemented in open3d::t::io::RealSenseSensor.
|
pure virtual |
Get current timestamp (in us).
Implemented in open3d::t::io::RealSenseSensor.
|
pure virtual |
Initialize sensor (optional).
Configure sensor with custom settings. If this is skipped, default settings will be used. You can enable recording to a file by specifying a filename.
sensor_config | Camera configuration, such as resolution and framerate. A serial number can be entered here to connect to a specific camera. |
sensor_index | Connect to a camera at this position in the enumeration of RealSense cameras that are currently connected. Use EnumerateDevices() or ListDevices() to obtain a list of connected cameras and their capabilities. This is ignored if sensor_config contains a "serial" entry. |
filename | Save frames to this file. |
Implemented in open3d::t::io::RealSenseSensor.
|
pure virtual |
Pause recording to the file.
Implemented in open3d::t::io::RealSenseSensor.
|
pure virtual |
Resume recording to the file. The file will contain discontinuous segments.
Implemented in open3d::t::io::RealSenseSensor.
|
pure virtual |
Start capturing synchronized depth and color frames.
start_record | start recording to the specified file as well. |
Implemented in open3d::t::io::RealSenseSensor.
|
pure virtual |
Stop capturing frames.
Implemented in open3d::t::io::RealSenseSensor.
|
inlinevirtual |
Text Description.