Giter VIP home page Giter VIP logo

Comments (9)

ddiakopoulos avatar ddiakopoulos commented on May 10, 2024

For R200 we have a few unpublished commits that let you reset the device after a frame timeout. Ping @sgorsten to push them in the next few days.

from librealsense.

Wollimayer avatar Wollimayer commented on May 10, 2024

How do you catch the timeout errors? I do use try-catch to wrap the code for wait-for-frames and frame capturing, but it looks like no error is thrown. The programm freezes while waiting for a frame and never gets back.

from librealsense.

ddiakopoulos avatar ddiakopoulos commented on May 10, 2024

@digitologist do you have a snippit of code to share with @Wollimayer?

from librealsense.

digitologist avatar digitologist commented on May 10, 2024

Here's how I do it:

for (int i = 0; i < deviceCount; ++i) {
    if (deviceAbort[i]) continue;
    try {
        deviceManager[i]->wait_for_frames();
    }
    catch (const rs::error & e) {
        deviceAbort[i] = true;
        cout << "Realsense Error: cam " << i << ": " << e.what() << endl;
    }
}

from librealsense.

Wollimayer avatar Wollimayer commented on May 10, 2024

@digitologist Thank you. I'm using the same construct right now, but no error is thrown.
It might be a different problem ( issue #29 ).

from librealsense.

ddiakopoulos avatar ddiakopoulos commented on May 10, 2024

@Wollimayer - can you use one of the other sample apps to print out the firmware versions of each of your F200s?

from librealsense.

Wollimayer avatar Wollimayer commented on May 10, 2024

2.60.0.0 And two 2.50.0.0 .
The problem occurs on both versions.

from librealsense.

ddiakopoulos avatar ddiakopoulos commented on May 10, 2024

@Wollimayer will discuss in #29, streaming timeouts and config timeouts are logically different issues.

For streaming timeouts, code on the the current dev branch should be able to reset a device fully at runtime after code like @digitologist detects a timeout.

from librealsense.

MFUHH avatar MFUHH commented on May 10, 2024

Hi, I also have problems with timeout of streaming. I can catch the error, stop and start the camera and then the stream is running. But the timestamps then are wrong. the get_frame_timestamp function gives numbers between -3 and 4. Is that a bug? How can I restart the camera properly?

from librealsense.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.