43 #include <visp3/core/vpConfig.h>
44 #include <visp3/sensor/vpRealSense2.h>
46 #if defined(VISP_HAVE_REALSENSE2) && (VISP_CXX_STANDARD >= VISP_CXX_STANDARD_11)
50 #ifdef ENABLE_VISP_NAMESPACE
56 std::cout <<
"RealSense characteristics:\n" << rs << std::endl;
60 std::cout <<
"Product line: " << product << std::endl;
63 std::cout <<
"Depth scale: " << std::setprecision(std::numeric_limits<float>::max_digits10) << rs.
getDepthScale()
68 std::cerr <<
"RealSense error " << e.
what() << std::endl;
70 catch (
const std::exception &e) {
71 std::cerr << e.what() << std::endl;
79 #if !defined(VISP_HAVE_REALSENSE2)
80 std::cout <<
"You do not have realsense2 SDK functionality enabled..." << std::endl;
81 std::cout <<
"Tip:" << std::endl;
82 std::cout <<
"- Install librealsense2, configure again ViSP using cmake and build again this example" << std::endl;
error that can be emitted by ViSP classes.
const char * what() const
bool open(const rs2::config &cfg=rs2::config())
std::string getProductLine()