Trying to play rosbag with pyrealsense but get the error: Invalid file format, file does not contain topic "/file_version" nor "/FILE_VERSION"
Hello! I've recorded a rosbag using the intel realsense depth camera D455. I'm playing the rosbag in one terminal on loop and trying to initialize a pyrealsense2 pipeline but I get the following error:
RunTimeError: Failed to resolve request. Request to enable_device_from_file("testBag.bag") was invalid, Reason: Failed to create ros reader: Invalid file fromat, file does not contain topic "/file_version" nor "/FILE_VERSION"
Anyone who knows what causes this or how I can fix it?
Thanks in advance for any help you can give!
-
Hi Zeidlitzerik If you recorded the rosbag in a ROS terminal then it may not be entirely compatible with being read by the RealSense SDK (librealsense). The reasons for this are described in the discussion in the link below, which is about a RealSense Python user who experienced the same error.
Please sign in to leave a comment.
Comments
1 comment