Ask Your Question
0

terminate called after throwing an instance of 'rosbag::BagIOException' what(): Error opening file: [closed]

asked 2018-10-03 04:44:50 -0500

tengfei han gravatar image

I would like to run ORB_SLAM with my own drone. when typing roslaunch SLAM SLAM.launchin the terminal, I got an error that has never seen before as follows:

process[SLAM-1]: started with pid [13284]
terminate called after throwing an instance of 'rosbag::BagIOException'
  what():  Error opening file: 
[SLAM-1] process has died [pid 13284, exit code -6, cmd /home/htf/orb_ws/src/SLAM/bin/SLAM /home/htf/orb_ws/src/SLAM/Data/ORBvoc.txt /home/htf/orb_ws/src/SLAM/Data/Drone.yaml __name:=SLAM __log:=/home/htf/.ros/log/b3cdf97a-c6ef-11e8-bd1c-80a589d234a5/SLAM-1.log].
log file: /home/htf/.ros/log/b3cdf97a-c6ef-11e8-bd1c-80a589d234a5/SLAM-1*.log
all processes on machine have died, roslaunch will exit
shutting down processing monitor...
... shutting down processing monitor complete

here is the launch file:

<launch>
  <node name="SLAM" pkg="SLAM" type="SLAM" args="/home/htf/orb_ws/src/SLAM/Data/ORBvoc.txt /home/htf/orb_ws/src/SLAM/Data/Drone.yaml"/>

</launch>

does anyone know how to fix it? thanks a lot.

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by tengfei han
close date 2018-10-03 19:06:21.147902

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-10-03 05:16:15 -0500

tfoote gravatar image

I'm not familiar with orb slam, but the error is that it is failing to open a bag file. You should check your configuration to make sure that all your paths are right and that you have permissions on any directory where it's going to try to read a bag or write a bag file. Sometimes it uses the current working directory too.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2018-10-03 04:44:50 -0500

Seen: 277 times

Last updated: Oct 03 '18