Skip to content

T265: Recording Crash #5479

@neilyoung

Description

@neilyoung
Required Info
Camera Model T265
Firmware Version 0.2.0.896
Operating System & Version macOS Catalina
Kernel Version (Linux Only)
Platform
SDK Version 2.31.0, development, #5213 applied
Language
Segment others

Issue Description

I'm having a well working script, basically running the well known sequences:

 cfg = rs.config()       
 cfg.enable_stream(rs.stream.pose)
 pose_sensor = cfg.resolve(pipe).get_device().first_pose_sensor()
 pose_sensor.set_option(rs.option.enable_map_preservation, 1)

  if args.record:
      cfg.enable_record_to_file("./file.bag")
 
 if args.load_map:
       print(datetime.datetime.now(), "Loading map '{}'".format(args.load_map))
       with open(args.load_map, mode='rb') as map_file:
           map = map_file.read()
           pose_sensor.import_localization_map(map)
   # Start streaming with requested config
   pipe.start(cfg)

It then goes into the

   while (True):
         frames = pipe.wait_for_frames(10000)
         ...

loop and simply works.

I cannot make the bag recording run. Whenever I enable recording, the script excepts with No device connected from different points in the scrpt.

Traceback (most recent call last):
  File "pose.py", line 287, in <module>
    main()
  File "pose.py", line 74, in main
    pose_sensor = cfg.resolve(pipe).get_device().first_pose_sensor()
RuntimeError: No device connected

or

Traceback (most recent call last):
  File "pose.py", line 287, in <module>
    main()
  File "pose.py", line 93, in main
    pipe.start(cfg)
RuntimeError: No device connected

What am I supposed to do or not to do in order to enable recording?

BTW: Somethingi is all the time created on my HD:

-rw-r--r-- 1 decades staff 4707 18 Dez 10:22 the_file.bag

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions