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"
Here's a code snippit from where the error occours:
import rospy import cv2 import pyrealsense2 as rs from sensor_msg.msg import Image from cv_bridge import CvBridge def process_image(msg): pipeline = rs.pipeline() cfg = rs.config() cfg.enable_device_from_file("testBag.bag") profile = pipeline.start(cfg)
Thanks in advance for any help I can get!
Thanks for reaching out to us.
This forum primarily support queries related to issues with intel distribution of python. RealSense queries are not supported here. Please submit RealSense queries here:
We wouldn't be monitoring this thread further. Please feel free to raise a new thread in case of issues with Intel distribution of python.