[ROS]3 Linux编程练习
1.个人资源索引2.SLAM学习笔记(1)基本概念3.SLAM学习笔记(2)SLAM算法4.[ROS]2 尝试编译OrbSLAM5.[ROS]1 小乌龟6.SLAM最近的工作7.SLAM学习笔记(3)相关概念8.[SLAM]2D激光线特征提取9.[SLAM] GMapping SLAM源码阅读(草稿)10.[QGLViewer]First Demo11.SLAM数据集12.[SLAM]2D激光扫描匹配方法13.[g2o]一个备忘14.[ROS] slam_gmapping
15.[ROS]3 Linux编程练习
16.Linux学习和ROS安装(1)17.小豆包的学习之旅:机器人定位18.小豆包的学习之旅:传感器观测模型19.Kinect2.0相机标定20.小豆包的学习之旅:里程计运动模型21.小豆包的学习之旅:入门篇22.Kinect2.0点云数据获取23.[硬件]Robot运动控制24.[硬件]Urg_viewer数据读取25.[硬件]三维点云数据获取26.Kinect2.0获取数据27.ndt histogram_direction28.rplidar & hector slam without odometry29.rplidar测试30.[原创]NDT方法在SLAM中的应用31.[SLAM]Karto SLAM算法学习(草稿)32.ROS学习备忘33.[ROS]激光驱动安装34.OrbSLAM2采集点云数据35.Cartographer源码阅读(8):imu_tracker36.[硬件]点云数据采集237.Cartographer源码阅读(9):图优化的前端——闭环检测38.Cartographer源码阅读(7):轨迹推算和位姿推算的原理39.Ethzasl MSF源码阅读(3):MSF_Core和PoseMeasurement40.Ethzasl MSF源码阅读(2):百川汇海41.Ethzasl MSF源码阅读(1):程序入口和主题订阅42.Cartographer源码阅读(6):LocalTrajectoryBuilder和PoseExtrapolator43.Cartographer源码阅读(5):PoseGraph位姿图44.Cartographer源码阅读(4):Node和MapBuilder对象245.Cartographer源码阅读(3):程序逻辑结构46.Cartographer源码阅读(2):Node和MapBuilder对象47.Cartographer源码阅读(1):程序入口48.实时Cartographer测试(1) - rplidar49.Cartographer安装50.ROS安装(2)51.[ROS]一些传感器数据读取融合问题的思考52.小豆包的学习之旅:占用概率栅格地图和cost-map53.小豆包的学习之旅:开发记录54.[概述]移动机器人自主探索55.MRPT编译一起做RGB-SLAM(2)实验
第二讲 从图像到点云
http://www.cnblogs.com/gaoxiang12/p/4652478.html
1 exbot@ubuntu:~$ cd CodeLearn
2 exbot@ubuntu:~/CodeLearn$ cd Depth2PointCloud
3 exbot@ubuntu:~/CodeLearn/Depth2PointCloud$ mkdir bin include lib src build
4 exbot@ubuntu:~/CodeLearn/Depth2PointCloud$ touch CMakeLists.txt
5 exbot@ubuntu:~/CodeLearn/Depth2PointCloud$ touch src/generatePointCloud.cpp
6 exbot@ubuntu:~/CodeLearn/Depth2PointCloud$ touch src/CMakeLists.txt
7 exbot@ubuntu:~/CodeLearn/Depth2PointCloud$ cd build
8 exbot@ubuntu:~/CodeLearn/Depth2PointCloud/build$ cmake ..
9 -- The C compiler identification is GNU
10 -- The CXX compiler identification is GNU
11 -- Check for working C compiler: /usr/bin/gcc
12 -- Check for working C compiler: /usr/bin/gcc -- works
13 -- Detecting C compiler ABI info
14 -- Detecting C compiler ABI info - done
15 -- Check for working CXX compiler: /usr/bin/c++
16 -- Check for working CXX compiler: /usr/bin/c++ -- works
17 -- Detecting CXX compiler ABI info
18 -- Detecting CXX compiler ABI info - done
19 -- checking for module 'eigen3'
20 -- found eigen3, version 3.2.7
21 -- Found eigen: /usr/include/eigen3
22 -- Boost version: 1.46.1
23 -- Found the following Boost libraries:
24 -- system
25 -- filesystem
26 -- thread
27 -- date_time
28 -- iostreams
29 -- serialization
30 -- checking for module 'openni-dev'
31 -- package 'openni-dev' not found
32 -- Found openni: /usr/lib/libOpenNI.so
33 -- Found libusb-1.0: /usr/include
34 -- looking for PCL_COMMON
35 -- Found PCL_COMMON: /usr/lib/libpcl_common.so
36 -- looking for PCL_OCTREE
37 -- Found PCL_OCTREE: /usr/lib/libpcl_octree.so
38 -- looking for PCL_IO
39 -- Found PCL_IO: /usr/lib/libpcl_io.so
40 -- Found PCL: /usr/lib/libboost_system-mt.so;/usr/lib/libboost_filesystem-mt.so;/usr/lib/libboost_thread-mt.so;pthread;/usr/lib/libboost_date_time-mt.so;/usr/lib/libboost_iostreams-mt.so;/usr/lib/libboost_serialization-mt.so;optimized;/usr/lib/libpcl_common.so;debug;/usr/lib/libpcl_common.so;optimized;/usr/lib/libpcl_octree.so;debug;/usr/lib/libpcl_octree.so;/usr/lib/libOpenNI.so;vtkCommon;vtkRendering;vtkHybrid;vtkCharts;optimized;/usr/lib/libpcl_io.so;debug;/usr/lib/libpcl_io.so;/usr/lib/libboost_system-mt.so;/usr/lib/libboost_filesystem-mt.so;/usr/lib/libboost_thread-mt.so;pthread;/usr/lib/libboost_date_time-mt.so;/usr/lib/libboost_iostreams-mt.so;/usr/lib/libboost_serialization-mt.so;/usr/lib/libOpenNI.so;vtkCommon;vtkRendering;vtkHybrid;vtkCharts
41 -- Configuring done
42 WARNING: Target "generate_pointcloud" requests linking to directory "/usr/lib". Targets may link only to libraries. CMake is dropping the item.
43 -- Generating done
44 -- Build files have been written to: /home/exbot/CodeLearn/Depth2PointCloud/build
45 exbot@ubuntu:~/CodeLearn/Depth2PointCloud/build$ make
46 Scanning dependencies of target generate_pointcloud
47 [100%] Building CXX object src/CMakeFiles/generate_pointcloud.dir/generatePointCloud.cpp.o
48 Linking CXX executable ../../bin/generate_pointcloud
49 [100%] Built target generate_pointcloud
50 exbot@ubuntu:~/CodeLearn/Depth2PointCloud/build$ '/home/exbot/CodeLearn/Depth2PointCloud/bin/generate_pointcloud'
51 point cloud size = 0
52 terminate called after throwing an instance of 'pcl::IOException'
53 what(): : [pcl::PCDWriter::writeASCII] Input point cloud has no data!
54 Aborted (core dumped)
55 exbot@ubuntu:~/CodeLearn/Depth2PointCloud/build$ cd ,,/
56 bash: cd: ,,/: No such file or directory
57 exbot@ubuntu:~/CodeLearn/Depth2PointCloud/build$ cd ../
58 exbot@ubuntu:~/CodeLearn/Depth2PointCloud$ bin/generate_pointcloud
59 point cloud size = 204186
60 Point cloud saved.
61 exbot@ubuntu:~/CodeLearn/Depth2PointCloud$ pcl_viewer data/pointcloud.pcd
62 The viewer window provides interactive commands; for help, press 'h' or 'H' from within the window.
63 > Loading data/pointcloud.pcd [done, 3750 ms : 204186 points]
64 Available dimensions: x y z rgba
作者:太一吾鱼水
文章未经说明均属原创,学习笔记可能有大段的引用,一般会注明参考文献。
欢迎大家留言交流,转载请注明出处。
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 基于Microsoft.Extensions.AI核心库实现RAG应用
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 单元测试从入门到精通
· 上周热点回顾(3.3-3.9)
· Vue3状态管理终极指南:Pinia保姆级教程