43 #include <visp3/sensor/vpRealSense2.h> 45 #if defined(VISP_HAVE_REALSENSE2) && (VISP_CXX_STANDARD >= VISP_CXX_STANDARD_11) 52 std::cout <<
"RealSense characteristics:\n" << rs << std::endl;
56 std::cout <<
"Product line: " << product << std::endl;
59 std::cout <<
"Depth scale: " << std::setprecision(std::numeric_limits<float>::max_digits10) << rs.
getDepthScale() << std::endl;
62 std::cerr <<
"RealSense error " << e.
what() << std::endl;
63 }
catch (
const std::exception &e) {
64 std::cerr << e.what() << std::endl;
72 #if !defined(VISP_HAVE_REALSENSE2) 73 std::cout <<
"You do not have realsense2 SDK functionality enabled..." << std::endl;
74 std::cout <<
"Tip:" << std::endl;
75 std::cout <<
"- Install librealsense2, configure again ViSP using cmake and build again this example" << std::endl;
78 #if (VISP_CXX_STANDARD < VISP_CXX_STANDARD_11) 79 std::cout <<
"You do not build ViSP with c++11 or higher compiler flag" << std::endl;
80 std::cout <<
"Tip:" << std::endl;
81 std::cout <<
"- Configure ViSP again using cmake -DUSE_CXX_STANDARD=11, and build again this example" << std::endl;
std::string getProductLine()
error that can be emited by ViSP classes.
bool open(const rs2::config &cfg=rs2::config())
const char * what() const