RealSense camera discovery, configuration, streaming and recording.
More...
#include <RealSenseSensor.h>
RealSense camera discovery, configuration, streaming and recording.
◆ RealSenseSensor() [1/2]
open3d::t::io::RealSenseSensor::RealSenseSensor |
( |
| ) |
|
Default constructor. Initialize with default settings.
◆ RealSenseSensor() [2/2]
open3d::t::io::RealSenseSensor::RealSenseSensor |
( |
const RealSenseSensor & |
| ) |
|
|
delete |
◆ ~RealSenseSensor()
open3d::t::io::RealSenseSensor::~RealSenseSensor |
( |
| ) |
|
|
overridevirtual |
◆ CaptureFrame()
geometry::RGBDImage open3d::t::io::RealSenseSensor::CaptureFrame |
( |
bool |
wait = true , |
|
|
bool |
align_depth_to_color = true |
|
) |
| |
|
overridevirtual |
Acquire the next synchronized RGBD frameset from the camera.
- Parameters
-
wait | If true wait for the next frame set, else return immediately with an empty RGBDImage if it is not yet available. |
align_depth_to_color | Enable aligning WFOV depth image to the color image in visualizer. |
Implements open3d::t::io::RGBDSensor.
◆ EnumerateDevices()
Query all connected RealSense cameras for their capabilities.
- Returns
- A list of devices and their supported capabilities.
◆ GetFilename()
virtual std::string open3d::t::io::RealSenseSensor::GetFilename |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ GetMetadata()
virtual const RGBDVideoMetadata& open3d::t::io::RealSenseSensor::GetMetadata |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ GetTimestamp()
virtual uint64_t open3d::t::io::RealSenseSensor::GetTimestamp |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ InitSensor() [1/2]
Initialize sensor (optional).
Configure sensor with custom settings. If this is skipped, default settings will be used. You can enable recording to a bag file by specifying a filename.
- Parameters
-
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. This is ignored if sensor_config contains a serial entry. |
filename | Save frames to a bag file |
- Returns
- true if a camera was found and initialized with the given settings, else false.
◆ InitSensor() [2/2]
virtual bool open3d::t::io::RealSenseSensor::InitSensor |
( |
const RGBDSensorConfig & |
sensor_config, |
|
|
size_t |
sensor_index = 0 , |
|
|
const std::string & |
filename = "" |
|
) |
| |
|
inlineoverridevirtual |
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.
- Parameters
-
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. |
- Returns
- true if a camera was found and initialized with the given settings, else false.
Implements open3d::t::io::RGBDSensor.
◆ ListDevices()
bool open3d::t::io::RealSenseSensor::ListDevices |
( |
| ) |
|
|
static |
List all RealSense cameras connected to the system along with their capabilities. Use this listing to select an appropriate configuration for a camera.
◆ operator=()
◆ PauseRecord()
void open3d::t::io::RealSenseSensor::PauseRecord |
( |
| ) |
|
|
overridevirtual |
◆ ResumeRecord()
void open3d::t::io::RealSenseSensor::ResumeRecord |
( |
| ) |
|
|
overridevirtual |
◆ StartCapture()
bool open3d::t::io::RealSenseSensor::StartCapture |
( |
bool |
start_record = false | ) |
|
|
overridevirtual |
Start capturing synchronized depth and color frames.
- Parameters
-
start_record | start recording to the specified bag file as well. |
Implements open3d::t::io::RGBDSensor.
◆ StopCapture()
void open3d::t::io::RealSenseSensor::StopCapture |
( |
| ) |
|
|
overridevirtual |
◆ ToString()
virtual const std::string open3d::t::io::RGBDSensor::ToString |
|
inline |
The documentation for this class was generated from the following files: