enable_stream(RS2_STREAM_DEPTH, 640, 480, RS2_FORMAT_Z16, 30); cfg.enable_stream(RS2_STREAM_COLOR, 640, 480, RS2_FORMAT_RGB8, 30); 在上述代码中,如果指定的分辨率、格式或帧率不被相机支持,就可能会触发异常。 4. 提出可能的解决方案 检查相机固件和 SDK 版本:确保你的 RealSense 相机固件...
cfg.enable_device(serial_number); cfg.enable_stream(RS2_STREAM_COLOR, 640, 480, RS2_FORMAT_BGR8, 30); cfg.enable_stream(RS2_STREAM_INFRARED, 640, 480, RS2_FORMAT_Y8, 30); cfg.enable_stream(RS2_STREAM_DEPTH, 640, 480, RS2_FORMAT_Z16, 30); // Start the pipeline with the con...
rs2::pipeline pipe; rs2::config c; c.disable_all_streams(); c.enable_stream(RS2_STREAM_DEPTH, RS2_FORMAT_Z16, 30); pipe.start(c); rs2::frameset data = pipe.wait_for_frames(); cout << data.size() << endl; The above code will show only 1....
rs2::pipeline rs_pipe; rs2::config cfg; cfg.enable_stream(RS2_STREAM_DEPTH, 0, RS2_FORMAT_Z16, 30); cfg.enable_stream(RS2_STREAM_INFRARED, 1, 1280, 720, RS2_FORMAT_Y8, 30); cfg.enable_stream(RS2_STREAM_INFRARED, 2, 1280, 720, RS2_FORMAT_Y8, 30); cfg.enable_stream(RS2...
rs2::pipeline pipe; rs2::config c; c.disable_all_streams(); c.enable_stream(RS2_STREAM_DEPTH, RS2_FORMAT_Z16, 30); pipe.start(c); rs2::frameset data = pipe.wait_for_frames(); cout << data.size() << endl; The above code will show only 1.rs2::colorizer color_map; rs2...
float heightOfCamera = nextPose.position.z + 0.03; Before using the robot's pose z as a source of depth of the point, I used this ... float depthofPoint = depth.get_distance (sideA.x, sideA.y); rs2_deproject_pixel_to_point (my3Dpoint, &intrinsics, pixel, depthofPoint); ...
[ INFO] [1589031996.566590273]: depth stream is enabled - width: 640, height: 480, fps: 30, Format: Z16 [ INFO] [1589031996.566896127]: infra1 stream is enabled - width: 640, height: 480, fps: 30, Format: Y8 [ INFO] [1589031996.567172651]: infra2 stream is enabled - width: 640, ...
Depth 424x240 @ 60Hz Z16 Depth 424x240 @ 30Hz Z16 Depth 424x240 @ 15Hz Z16 Depth 424x240 @ 6Hz Z16 Depth 256x144 @ 300Hz Z16 Depth 256x144 @ 90Hz Z16 Stream Profiles supported by Motion Module Supported modes: stream resolution fps format ...