完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
大家好,
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个回答
|
|
在自述文件的代码概述标题下,提到了一个名为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 |
|
|
|
只有小组成员才能发言,加入小组>>
506浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-13 10:22 , Processed in 0.843792 second(s), Total 78, Slave 61 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号