mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-13 15:00:21 +08:00
CameraRealSense2: increased wait time from 10 msec to 100 msec
This commit is contained in:
@@ -3536,10 +3536,10 @@ SensorData CameraRealSense2::captureImage(CameraInfo * info)
|
|||||||
try{
|
try{
|
||||||
auto frameset = syncer_.wait_for_frames(5000);
|
auto frameset = syncer_.wait_for_frames(5000);
|
||||||
UTimer timer;
|
UTimer timer;
|
||||||
while (frameset.size() != 2 && timer.elapsed() < 2.0)
|
while (frameset.size() != 2 && timer.elapsed() < 2)
|
||||||
{
|
{
|
||||||
// maybe there is a latency with the USB, try again in 10 ms (for the next 2 seconds)
|
// maybe there is a latency with the USB, try again in 100 ms (for the next 2 seconds)
|
||||||
frameset = syncer_.wait_for_frames(10);
|
frameset = syncer_.wait_for_frames(100);
|
||||||
}
|
}
|
||||||
if (frameset.size() == 2)
|
if (frameset.size() == 2)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user