chichengcn / gici-open

GNSS/INS/Camera Integrated Navigation Library
GNU General Public License v3.0
432 stars 118 forks source link

ros运行SRR和SPP_RRR模式段错误 #55

Closed 936384885xy closed 1 month ago

936384885xy commented 1 month ago

非常感谢你们能开源这个项目,我在jetson agx orin平台上进行了部署测试,能正常运行SPP配置,但是运行视觉融合的配置会报段错误。崩溃的位置是在 1 debug运行发现这里frame确实是空的,可以确定输入图像数据确实正常发布了,rviz可以正常显示图像。不知道我是哪里操作有误。 我的SRR配置文件内容如下:

GICI offline pseudo-real-time GNSS/IMU/Camera SRR estimation with ROS topics as input and output

stream: streamers:

estimate:

logging: enable: true min_log_level: 0 log_to_stderr: true file_directory: /home/l1/gici-open/output

chichengcn commented 1 month ago

你的配置文件看起来也没什么问题,这个问题我没有遇到过,你可以考虑根据程序执行顺序定位一下问题,以下是执行顺序:

(1)multisensorestimating.cpp - callback(tag, frame_data); (2)ros_stream.cpp - outputDataCallback - featuredImageOutputCallback(data->frame); (3)publishFeaturedImage(...)

我目前觉得有两种可能的情况:

  1. multisensor_estimating.cpp那里执行callback之前,视觉前端的处理没有成功,导致输出的frame指针为空。如果这样的话,你可以检查一下feature_handler_相关的处理哪里出现了问题。
  2. 由于内存问题导致异常调用。你可以监控一下上述执行路径中的一些变量,如tag、time,保证其值是合理的。
936384885xy commented 1 month ago

非常感谢您的回复,经过排查问题解决了。我的设备上有两个版本的opencv,自带的4.2版本opencv和我自己编译的4.5版本冲突了,删除4.2版本后就可以正常运行了。