处理点云程序段错误process has died [pid 31695, exit code -11, cmd /home

问题:

编写了一个处理点云的程序。编译全部通过,播放点云bag包后运行程序时报错:

[plane_fitter-1] process has died [pid 31695, exit code -11, cmd /home/lskk/ls_pc/devel/lib/plane_fitter/plane_fitter __name:=plane_fitter __log:=/home/lskk/.ros/log/5b94e870-573f-11ec-afbe-f02f74b2823c/plane_fitter-1.log].
log file: /home/lskk/.ros/log/5b94e870-573f-11ec-afbe-f02f74b2823c/plane_fitter-1*.log
^C[rviz-2] killing on exit
shutting down processing monitor...
... shutting down processing monitor complete
done

处理点云程序段错误process has died [pid 31695, exit code -11, cmd /home_第1张图片

 解决:

这种问题编写点云程序时经常遇到,今天记录一下。原因是程序中的点云序列号超出范围,可以理解为访问了无效内存,检查程序中访问点云序号的边界条件就可以解决,一般在循环/迭代语句中。

你可能感兴趣的:(bug,c++,自动驾驶)