You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!
The text was updated successfully, but these errors were encountered:
Hi @IcookTacos 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.
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:
Thanks in advance for any help I can get!
The text was updated successfully, but these errors were encountered: