52 static std::vector<RealSenseValidConfigs> EnumerateDevices();
56 static bool ListDevices();
81 size_t sensor_index = 0,
82 const std::string &filename =
"");
84 size_t sensor_index = 0,
85 const std::string &filename =
"")
override {
87 dynamic_cast<const RealSenseSensorConfig &>(sensor_config),
88 sensor_index, filename);
93 virtual bool StartCapture(
bool start_record =
false)
override;
96 virtual void PauseRecord()
override;
100 virtual void ResumeRecord()
override;
109 bool wait =
true,
bool align_depth_to_color =
true)
override;
119 virtual void StopCapture()
override;
127 virtual std::string
GetFilename()
const override {
return filename_; };
130 using RGBDSensor::ToString;
133 bool enable_recording_ =
false;
134 bool is_recording_ =
false;
135 bool is_capturing_ =
false;
136 std::string filename_;
140 std::unique_ptr<rs2::pipeline> pipe_;
141 std::unique_ptr<rs2::align> align_to_color_;
142 std::unique_ptr<rs2::config> rs_config_;
144 static const uint64_t MILLISEC_TO_MICROSEC = 1000;
RealSense camera discovery, configuration, streaming and recording.
Definition: RealSenseSensor.h:47
Definition: RealSenseSensor.h:36
const char const char value recording_handle imu_sample recording_handle uint8_t size_t data_size k4a_record_configuration_t config target_format k4a_capture_t capture_handle k4a_imu_sample_t imu_sample uint64_t
Definition: K4aPlugin.cpp:352
Interface class for control of RGBD cameras.
Definition: RGBDSensor.h:41
virtual bool InitSensor(const RGBDSensorConfig &sensor_config, size_t sensor_index=0, const std::string &filename="") override
Definition: RealSenseSensor.h:83
virtual uint64_t GetTimestamp() const override
Definition: RealSenseSensor.h:116
Definition: RealSenseSensorConfig.h:81
Definition: PinholeCameraIntrinsic.cpp:35
RGBDImage A pair of color and depth images.
Definition: RGBDImage.h:40
virtual const RGBDVideoMetadata & GetMetadata() const override
Get metadata of the RealSense video capture.
Definition: RealSenseSensor.h:122
Definition: RGBDSensorConfig.h:34
virtual std::string GetFilename() const override
Get filename being written.
Definition: RealSenseSensor.h:127