Added hardware reset for realsense cameras

This commit is contained in:
Vladyslav Usenko 2020-08-22 10:10:46 +02:00
parent 6500c006d7
commit e3ec522f03
1 changed files with 2 additions and 0 deletions

View File

@ -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];