about pipe->start
In SDK, when you run pipe-> start, * operator-> () const _NOEXCEPT is called, but in my project, pipe-> startf will run immediately pipeline_profile start (). What is the difference between this?
-
I found a discussion that explains the difference between using -> or a full stop.
-
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;
} -
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
Please sign in to leave a comment.
Comments
9 comments