Comments (3)
我用之前下载的代码也遇到了同样的错误,刚入门c++,还不太熟悉语法,没有看您的修改意见,能把第15行完整代码给我看看吗?并且,我把code那里的代码沾过去,运行的结果变成了这样:
正在将图像转换为点云...
转换图像中: 1
转换图像中: 2
转换图像中: 3
转换图像中: 4
转换图像中: 5
点云共有0个点.
terminate called after throwing an instance of 'pcl::IOException'
what(): : [pcl::PCDWriter::writeBinary] Input point cloud has no data!
Process finished with exit code 134 (interrupted by signal 6: SIGABRT)
from slambook.
It's not a big issue; actually the path to images are not suited that is why it is not able to read the images and giving errors. So change the path accordingly.
I did this th following, but you can change accordingly.
boost::format fmt( "/home/blahh/slambook-master/ch5/joinMap/%s/%d.%s" ); //图像文件格式
colorImgs.push_back( cv::imread( (fmt%"color"%(i+1)%"png").str() ));
depthImgs.push_back( cv::imread( (fmt%"depth"%(i+1)%"pgm").str(), -1 )); // 使用-1读取原始图像
from slambook.
the vector of Eigen objects should use the Eigen aligned allocators, see https://eigen.tuxfamily.org/dox/group__TopicFixedSizeVectorizable.html
I'll fix it in the second edition.
from slambook.
Related Issues (20)
- 第六章 HOT 10
- 123
- 问题:关于三角化
- 请教下第7章中的solvePnP以及projectPoints
- ch5中joinMap问题 HOT 1
- 关于project的四个工程问题 HOT 2
- Monocular triangulation 3D point z is negative
- code error
- Book edits HOT 2
- curr_ = ref_ = frame
- 12章loop_closure 出现Segmentation fault错误 HOT 6
- 对高翔博士“李代数与旋转矩阵的指数变换推导”质疑 HOT 4
- ch7 的 orb_self.cpp 编译错误:/usr/lib/gcc/x86_64-linux-gnu/7/include/popcntintrin.h:35:1: error: inlining failed in call to always_inline HOT 1
- ch5/joinMap中,输入pcl_viewer map.pcd命令,打开点云图后,想旋转或者放大点云图时出现卡顿黑屏的情况 HOT 3
- g2o - csparse linker issue HOT 3
- ch5 joinmap 可以成功生成map.pcd 但用 pcl_viewer打开报错 HOT 1
- error when using visualizeGeometry in ch3(fixed)
- 请问“状态分布与似然和先验的乘积成正比”是如何推导出来的 HOT 1
- ch6 g2o_curve_fitting make的时候报错 HOT 1
- ch6 安装完ceres库之后运行自带示例程序正常,但是运行ceres_curve_fitting会出现错误 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from slambook.