From e3ec522f0342aa8168beedb936830af6ad1d7425 Mon Sep 17 00:00:00 2001 From: Vladyslav Usenko Date: Sat, 22 Aug 2020 10:10:46 +0200 Subject: [PATCH] Added hardware reset for realsense cameras --- src/device/rs_t265.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/device/rs_t265.cpp b/src/device/rs_t265.cpp index 19abeec..5bd4214 100644 --- a/src/device/rs_t265.cpp +++ b/src/device/rs_t265.cpp @@ -71,6 +71,8 @@ RsT265Device::RsT265Device(bool manual_exposure, int skip_frames, } auto device = context.query_devices()[0]; + device.hardware_reset(); + std::cout << "Device " << device.get_info(RS2_CAMERA_INFO_NAME) << " connected" << std::endl; sensor = device.query_sensors()[0];