librealsense: Unable to access accelerometer data for some devices.


Required Info
Camera Model D435I
Firmware Version 05.13.00.50
Operating System & Version Ubuntu 18, Windows 10
Kernel Version (Linux Only) 5.4.0-104-generic
Platform PC/Raspberry Pi/ NVIDIA Jetson / etc…
SDK Version pyrealsense2==2.49.0.3474
Language python 3.7
Segment Computer Vision

Issue Description

Hi for some reason I’m unable to access the accelerometer data through python on some machines with the error “Couldn’t resolve request” however there are other machines where the code runs no problem and I don’t understand why, furthermore on the machines where the acceleromter code does not seem to work I’m still able to access the accelerometer data through the realsense-viewer

the code to start the camera looks something like this:

self.config.enable_stream(
    rs.stream.depth,
    cfg.FRAME_WIDTH,
    cfg.FRAME_HEIGHT,
    rs.format.z16,
    cfg.FPS)
self.config.enable_stream(
    rs.stream.color,
    cfg.FRAME_WIDTH,
    cfg.FRAME_HEIGHT,
    rs.format.bgr8,
    cfg.FPS)
self.config.enable_stream(
    rs.stream.accel,
    rs.format.motion_xyz32f,
    250) # must be 63 or 250
				
try:
    self.profile = self.pipeline.start(self.config) # Couldn't resolve request error happens here
except Exception as e:
    self.accelerometer = False
    self.config.disable_stream(rs.stream.accel) # disabling the accelerometer "solves" the issue
    self.profile = self.pipeline.start(self.config)
    print("accelerometer error:", e)

I added the info page for one that works and one that doesn’t image

Any suggestions on how to fix this would be greatly appreciated.

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 25

Most upvoted comments

There was a past case of two Ubuntu PC computers of the same manufacturer / model and the camera worked normally with one but not the other that belonged to the RealSense user’s colleague. Eventually they found that although the two computers seemed identical, the colleague’s computer that the camera worked with had its OS updated to a more recent configuration. Once the computer with the problem was updated to match the colleague’s computer then the camera worked normally.