62 size_t sensor_index = 0,
63 const std::string &filename =
"");
65 size_t sensor_index = 0,
66 const std::string &filename =
"")
override {
69 sensor_index, filename);
74 virtual bool StartCapture(
bool start_record =
false)
override;
93 bool wait =
true,
bool align_depth_to_color =
true)
override;
111 virtual std::string
GetFilename()
const override {
return filename_; };
117 bool enable_recording_ =
false;
118 bool is_recording_ =
false;
119 bool is_capturing_ =
false;
120 std::string filename_;
124 std::unique_ptr<rs2::pipeline> pipe_;
125 std::unique_ptr<rs2::align> align_to_color_;
126 std::unique_ptr<rs2::config> rs_config_;
128 static const uint64_t MILLISEC_TO_MICROSEC = 1000;
Definition: RGBDSensorConfig.h:15
RGBDImage A pair of color and depth images.
Definition: RGBDImage.h:21
Interface class for control of RGBD cameras.
Definition: RGBDSensor.h:22
virtual const std::string ToString() const
Text Description.
Definition: RGBDSensor.h:81
Definition: RealSenseSensorConfig.h:62
RealSense camera discovery, configuration, streaming and recording.
Definition: RealSenseSensor.h:28
virtual void StopCapture() override
Stop capturing frames.
Definition: RealSenseSensor.cpp:288
virtual void PauseRecord() override
Definition: RealSenseSensor.cpp:227
virtual void ResumeRecord() override
Definition: RealSenseSensor.cpp:234
RealSenseSensor()
Default constructor. Initialize with default settings.
Definition: RealSenseSensor.cpp:115
virtual geometry::RGBDImage CaptureFrame(bool wait=true, bool align_depth_to_color=true) override
Definition: RealSenseSensor.cpp:255
virtual ~RealSenseSensor() override
Definition: RealSenseSensor.cpp:122
RealSenseSensor(const RealSenseSensor &)=delete
static std::vector< RealSenseValidConfigs > EnumerateDevices()
Definition: RealSenseSensor.cpp:45
virtual const RGBDVideoMetadata & GetMetadata() const override
Get metadata of the RealSense video capture.
Definition: RealSenseSensor.h:106
static bool ListDevices()
Definition: RealSenseSensor.cpp:24
virtual bool StartCapture(bool start_record=false) override
Definition: RealSenseSensor.cpp:197
virtual bool InitSensor(const RGBDSensorConfig &sensor_config, size_t sensor_index=0, const std::string &filename="") override
Definition: RealSenseSensor.h:64
virtual uint64_t GetTimestamp() const override
Definition: RealSenseSensor.h:100
RealSenseSensor & operator=(const RealSenseSensor &)=delete
virtual std::string GetFilename() const override
Get filename being written.
Definition: RealSenseSensor.h:111
virtual bool InitSensor(const RealSenseSensorConfig &sensor_config=RealSenseSensorConfig{}, size_t sensor_index=0, const std::string &filename="")
Definition: RealSenseSensor.cpp:124
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:343
Definition: PinholeCameraIntrinsic.cpp:16
Definition: RealSenseSensor.h:17