Skip to content

Instantly share code, notes, and snippets.

@tom-doerr
Created December 29, 2020 20:58
Show Gist options
  • Save tom-doerr/fd7ef4763b7cdab43b16adfb3ab142d0 to your computer and use it in GitHub Desktop.
Save tom-doerr/fd7ef4763b7cdab43b16adfb3ab142d0 to your computer and use it in GitHub Desktop.
ROS rqt visualizer "Error opening file"

Problem:

I'm getting the following error message when trying to start the visualizer with the rosbag filename as a command line argument:

[FATAL] [1609275200.354480416]: Error opening file: routes_bags/route_11_406/failure_0.bag
WARNING: CPU random generator seem to be failing, disable hardware random number generation
WARNING: RDRND generated: 0xffffffff 0xffffffff 0xffffffff 0xffffffff
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
[replayer-3] process has died [pid 428, exit code 1, cmd /opt/ros/noetic/lib/rosbag/play routes_bags/route_11_406/failure_0.bag __name:=replayer __log:=/root/.ros/log/e1c32564-4a17-11eb-9849-0242ac110003/replayer-3.log].
log file: /root/.ros/log/e1c32564-4a17-11eb-9849-0242ac110003/replayer-3*.log
[rqt_gui-2] process has finished cleanly

Solution:

Use an absolute path to the rosbag file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment