43 #include <visp3/sensor/vpRealSense2.h> 45 #if defined(VISP_HAVE_REALSENSE2) && defined(VISP_HAVE_CPP11_COMPATIBILITY) 52 std::cout <<
"RealSense characteristics:\n" << rs << std::endl;
53 std::cout <<
"Depth scale: " << std::setprecision(std::numeric_limits<float>::max_digits10) << rs.
getDepthScale() << std::endl;
56 std::cerr <<
"RealSense error " << e.
what() << std::endl;
57 }
catch (
const std::exception &e) {
58 std::cerr << e.what() << std::endl;
66 #if !defined(VISP_HAVE_REALSENSE2) 67 std::cout <<
"You do not have realsense2 SDK functionality enabled..." << std::endl;
68 std::cout <<
"Tip:" << std::endl;
69 std::cout <<
"- Install librealsense2, configure again ViSP using cmake and build again this example" << std::endl;
72 #if !defined(VISP_HAVE_CPP11_COMPATIBILITY) 73 std::cout <<
"You do not build ViSP with C++11 compiler flag" << std::endl;
74 std::cout <<
"Tip:" << std::endl;
75 std::cout <<
"- Configure ViSP again using cmake -DUSE_CPP11=ON, and build again this example" << std::endl;
error that can be emited by ViSP classes.
void open(const rs2::config &cfg=rs2::config())
const char * what() const