View my account

about pipe->start

Comments

9 comments

  • MartyG

    I have not seen pipe -> start used before.  The start instruction usually has a full stop before it, such as pipe.start()

    0
    Comment actions Permalink
  • Yoichi Hagiwara

    SDK record_playback uses pipe-> start?

    0
    Comment actions Permalink
  • MartyG

    The record-playback and multicam examples are the only examples I could find that use '->' instead of '.' and I am not sure why, though it does not seem to prevent the program from running.  What happens please if you use .start in your program instead of ->start?

    0
    Comment actions Permalink
  • Yoichi Hagiwara

    When "." Or "->" is used, the current phenomenon does not change.

    0
    Comment actions Permalink
  • MartyG

    I found a discussion that explains the difference between using -> or a full stop.

    https://github.com/IntelRealSense/librealsense/issues/2587 

    0
    Comment actions Permalink
  • Yoichi Hagiwara

    It seems different from the phenomenon I'm worried about.

    0
    Comment actions Permalink
  • MartyG

    Yes, I was just mentioning it to show that using -> for the pipeline is a valid choice for programs that involve recording streams.

    0
    Comment actions Permalink
  • Yoichi Hagiwara

    The exception no longer occurs when the caller is changed.
    Even if the following program is executed, it is not recorded. Why?


    std :: shared_ptr <rs2 :: pipeline> strPipe;
    void rs2start (const char * str) try
    {
      Std :: make_shared <rs2 :: pipeline> ();
      auto pipe = std :: make_shared <rs2 :: pipeline> ();
      strPipe = pipe;

      rs2 :: config cfg; // Declare a new configuration
      cfg.enable_record_to_file (str);
      pipe-> start (cfg); // File will be opened at this point
    }
    catch (const rs2 :: error & e)
    {
      std :: cout << "RealSense error calling" << e.get_failed_function () << "(" << e.get_failed_args () << "): \ n" << e.what () << std :: endl;
    }
    catch (const std :: exception & e)
    {
      std :: cerr << e.what () << std :: endl;
    }

    0
    Comment actions Permalink
  • MartyG

    Please ask about this on the GitHub site, which is better suited to answer a programming question like this.  Thank you very much!

    https://github.com/IntelRealSense/librealsense/issues 

     

    0
    Comment actions Permalink

Please sign in to leave a comment.