Git Product home page Git Product logo

Comments (3)

xuankuzcr avatar xuankuzcr commented on August 14, 2024

我刚才测了一下感觉没什么太大问题,截图结果如下。另外我一会儿单独为MARS-LVIG dataset创建一个配置文件然后push上去吧,方便大家复现,之后你可以再测试下哈。但最好你能用gdb检查下到底问题出在哪行#53,我比较担心是你的环境配置问题。
rviz_screenshot_2024_07_19-03_33_40
Screenshot from 2024-07-19 12-14-12
Screenshot from 2024-07-19 12-17-24
Screenshot from 2024-07-19 12-17-36
Screenshot from 2024-07-19 12-17-49

from fast-livo.

maxibooksiyi avatar maxibooksiyi commented on August 14, 2024

非常感谢您的回答,很有帮助,我用gdb调试后打印信息如下

[ VIO ]: Add 0 3D points.
[ VIO ]: time: addFromSparseMap: 0.000011 addSparseMap: 0.000055 ComputeJ: 0.000004 addObservation: 0.000002 total time: 0.000072 ave_total: 0.000072.
[ LIO ]: Raw feature num: 11893 downsamp num 10911 Map num: 10964.
[ LIO ]: Using multi-processor, used core number: 4.
[New Thread 0x7fff923f8700 (LWP 18464)]
[New Thread 0x7fff91bf7700 (LWP 18465)]
[New Thread 0x7fff913f6700 (LWP 18466)]
[ LIO ]: time: fov_check: 0.000000 fov_check and readd: 0.002638 match: 0.000000 solve: 0.000000  ICP: 0.001149  map incre: 0.031386 total: 0.035173 icp: 0.000780 construct H: 0.000000.
[ INFO ]: get point cloud at time: 1658137064.324880.
[ VIO ]: Raw feature num: 11893.
[ VIO ]: Add 1761 3D points.
[ VIO ]: time: addFromSparseMap: 0.000001 addSparseMap: 0.006574 ComputeJ: 0.000000 addObservation: 0.000000 total time: 0.006576 ave_total: 0.006576.
[ INFO ]: get img at time: 1658137064.440385.
[ LIO ]: Raw feature num: 11898 downsamp num 10905 Map num: 17091.
[ LIO ]: Using multi-processor, used core number: 4.
[ LIO ]: time: fov_check: 0.000000 fov_check and readd: 0.002378 match: 0.000000 solve: 0.000000  ICP: 0.002737  map incre: 0.020595 total: 0.030441 icp: 0.001689 construct H: 0.000000.
[ INFO ]: get img at time: 1658137064.540787.
[ INFO ]: get point cloud at time: 1658137064.424726.
[ VIO ]: Raw feature num: 11898.

Thread 1 "fastlivo_mappin" received signal SIGSEGV, Segmentation fault.
0x00007ffff32a6088 in lidar_selection::LidarSelector::addFromSparseMap (
    this=this@entry=0x55555c87d3c0, img=..., pg=...)
    at /home/maxi/FASTLIVO_ws/src/FAST-LIVO/src/lidar_selection.cpp:376
376         float it[height*width] = {0.0};
(gdb)

然后参考您给的 #53 ,我把lidar_selection.cpp的376行的float it[height * width] = {0.0};改为了std::vector it(height*width, 0); 再重新编译后运行,便可以基于MARS-LVIG dataset跑起来了。
但是运行不了多长时间(不到一分钟),终端就会报红挂掉,从gnome-system-monitor里面可以看到,FAST-LIVO运行起来后,内存占用一直在累积上升,到达百分之百之后程序终端就会卡住报红挂掉。我是普通笔记本上跑的,内存是16G。似乎和这个 #105 类似是么。
但在跑FAST-LIVO-Datasets里的hku1.bag是可以运行相对长点的时间而且跑完的。

%I_ Q}QLL$8UA8JHM6BN3Z1

from fast-livo.

xuankuzcr avatar xuankuzcr commented on August 14, 2024

相同的地图分辨率,大尺度场景内存涨的会越快,因为每帧的raw points会有特别多的点被用来更新地图。可以试着调低filter_size_map,关掉rviz,或增加swap空间。另外我已经上传了MARS-LVIG的参数和launch文件,并为了适配做了一些的代码修改。如果想要速度更快,内存占用更低的版本,可以follow下FAST-LIVO2。

from fast-livo.

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.