Giter VIP home page Giter VIP logo

Comments (3)

XZLeo avatar XZLeo commented on August 27, 2024

我用之前下载的代码也遇到了同样的错误,刚入门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.

gs14iitbbs avatar gs14iitbbs commented on August 27, 2024

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.

gaoxiang12 avatar gaoxiang12 commented on August 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.