英特尔
直播中

李子跃

8年用户 200经验值
私信 关注
[问答]

SDK2.0 rs-pointcloud示例不一致

大家好,
1.导航到;
程序文件(x86)> Intel Realsense SDK 2.0>工具> rs-pointcloud.exe,该应用程序允许操纵3D PointCloud的旋转,缩放和平移。
但是,当手动编译样本CPP文件(rs-pointcloud.cpp)时,它缺少缩放功能。
3.在GitHub页面(master上的librealsense / examples / pointcloud·IntelRealSense / librealsense·GitHub)中,README的代码如下:
- struct state {double yaw,pitch,last_x,last_y;
bool ml;
float offset_x,offset_y;
纹理tex;
};
//用于管理pointcloud视图旋转的Struct
- state app_state = {0,0,0,0,false,0,0,0};
//构造一个对象来管理视图状态
- register_glfw_callbacks(app,app_state);
//注册回调以允许操纵pointcloud
但是在同一个GitHub页面上的rs-pointcloud.cpp文件中不存在!!
当这些示例(可能是救生员)与文档不一致时,试图理解每行代码作为新手的作用更具挑战性。
提前感谢您对可以做的事情的任何反馈或见解。

以上来自于谷歌翻译


以下为原文

Hi all again,

1. Navigating to; Program Files(x86) > Intel Realsense SDK 2.0 > tools > rs-pointcloud.exe, the application allows for the manipulation of rotating, zooming, and panning of the 3D PointCloud.

2. However, when the sample CPP file (rs-pointcloud.cpp) is manually compiled, it is lacking the function to zoom.

3. On the GitHub page (librealsense/examples/pointcloud at master · IntelRealSense/librealsense · GitHub ), the README have codes like:
[color=#cda869 !important]     - struct state { double yaw, pitch, last_x, last_y; bool ml; float offset_x, offset_y; texture tex; }; // Struct for managing rotation of pointcloud view
     - state app_state = { 0, 0, 0, 0, false, 0, 0, 0 }; // Construct an object to manage view state
     - register_glfw_callbacks(app, app_state); // register callbacks to allow manipulation of the pointcloud

    but does not exist on the rs-pointcloud.cpp file on the same GitHub page!!

Trying to understand what each line of code does as a newbie is even more challenging when these examples (which could be lifesavers) are not consistent with the documentation. Thank you in advance for any feedback or insight to what can be done.

回帖(1)

卿洁

2018-10-24 15:27:09
在自述文件的代码概述标题下,提到了一个名为example.hpp的“帮助程序库”,以及指向该脚本的链接。
鼠标操作控制代码位于此脚本中,该脚本检查鼠标滚动或左键按下,并在检测到输入并发现为“真”时执行适当的功能。
master上的librealsense / example.hpp·IntelRealSense / librealsense·GitHub

以上来自于谷歌翻译


以下为原文

Under the Code Overview heading of the readme, there is mention of a 'helper library' called example.hpp, and a link to that script.  The mouse-action control code is in this script, which checks for mouse scroll or left-button press and carries out the appropriate function when the input is detected and found to be 'true'.
 
librealsense/example.hpp at master · IntelRealSense/librealsense · GitHub
举报

更多回帖

发帖
×
20
完善资料,
赚取积分