Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issues with recorder.py #39

Open
vstadnytskyi opened this issue Aug 19, 2022 · 0 comments
Open

issues with recorder.py #39

vstadnytskyi opened this issue Aug 19, 2022 · 0 comments
Assignees

Comments

@vstadnytskyi
Copy link
Owner

vstadnytskyi commented Aug 19, 2022

@AbdelRahmanNasser20

I am trying to run recorder.py

C:\Users\AR-VR lab W1\Documents\Valentyn\custom_python_libraries\intel-realsense-devices\intel_realsense_devices>python recorder.py "C:\Users\AR-VR lab W1\Documents\Valentyn\custom_python_libraries\instrumentation\devices\config_L515_F1231322.yaml" "C:\Users\AR-VR lab W1\AppData\Local\Temp\1.hdf5"

and getting the following error


WARNING:root:Device not found
WARNING:root:camera with given serial number is not found
Traceback (most recent call last):
  File "recorder.py", line 275, in <module>
    recorder = Recorder(config_filename, h5py_filename)
  File "recorder.py", line 37, in __init__
    self.device.init()
  File "c:\users\ar-vr lab w1\documents\valentyn\custom_python_libraries\intel-realsense-devices\intel_realsense_devices\device.py", line 86, in init
    self.buffers[DEPTH] = CircularBuffer(shape = (channels[DEPTHCHANNEL][BUFFERLENGTH],)+ self.driver.get_image_shape(DEPTH), dtype = self.driver.get_image_dtype(DEPTH))
  File "c:\users\ar-vr lab w1\documents\valentyn\custom_python_libraries\intel-realsense-devices\intel_realsense_devices\driver.py", line 302, in get_image_shape
    return self.get_images()[frame_type].shape
  File "c:\users\ar-vr lab w1\documents\valentyn\custom_python_libraries\intel-realsense-devices\intel_realsense_devices\driver.py", line 273, in get_images
    f = self.pipeline[IMAGE].wait_for_frames()
KeyError: 'images'

I know that the camera is connected to the computer because, see below.


C:\Users\AR-VR lab W1\Documents\Valentyn\custom_python_libraries\intel-realsense-devices\intel_realsense_devices>ipython
Python 3.8.8rc1 (tags/v3.8.8rc1:dfd7d68, Feb 17 2021, 11:01:21) [MSC v.1928 64 bit (AMD64)]
Type 'copyright', 'credits' or 'license' for more information
IPython 8.0.1 -- An enhanced Interactive Python. Type '?' for help.

In [1]: import intel_realsense_devices
   ...:
   ...: print(f"current version of the library is {intel_realsense_devices.__version__}")
   ...: from intel_realsense_devices.driver import Driver
   ...:
   ...: driver = Driver()
current version of the library is 0.post145.dev0+g9137b0f

In [2]: driver.find_devices()
Out[2]: [('f1231322', 'L500')]

In [3]:

My config file is


name: 'augemented reality setup'
model: 'Intel RealSense L515'
serial_number: "f1231322"

channels:

  - #<-this is first entry in the channels list
    type: depth
    fps: 30
    buffer_length: 30
    buffer_shape: (480, 640)
    buffer_dtype: unit16

  - #<-this is second entry in the channels list
    type: color
    fps: 30
    buffer_length: 30
    buffer_shape: (540, 960,3)
    buffer_dtype: unit8

  - 
    type: infrared
    fps: 30
    buffer_length: 30
    buffer_shape: (480, 640)
    buffer_dtype: unit8

  - 
    type: accel
    fps: 200
    buffer_length: 30000

  - 
    type: gyro
    fps: 400
    buffer_length: 30000
@vstadnytskyi vstadnytskyi self-assigned this Aug 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant