Added hardware reset for realsense cameras
This commit is contained in:
parent
6500c006d7
commit
e3ec522f03
|
@ -71,6 +71,8 @@ RsT265Device::RsT265Device(bool manual_exposure, int skip_frames,
|
||||||
}
|
}
|
||||||
|
|
||||||
auto device = context.query_devices()[0];
|
auto device = context.query_devices()[0];
|
||||||
|
device.hardware_reset();
|
||||||
|
|
||||||
std::cout << "Device " << device.get_info(RS2_CAMERA_INFO_NAME)
|
std::cout << "Device " << device.get_info(RS2_CAMERA_INFO_NAME)
|
||||||
<< " connected" << std::endl;
|
<< " connected" << std::endl;
|
||||||
sensor = device.query_sensors()[0];
|
sensor = device.query_sensors()[0];
|
||||||
|
|
Loading…
Reference in New Issue