Files
OliviaCandClaude Opus 5.5 11e5bf5af5 fix: compare_host_align refuses pyrealsense2 without software depth units
Tried on pyrealsense2 2.50 (PC2's version): software_video_frame has no
depth_units there, the software depth frames get scale 0 and rs.align
returns an almost empty depth (1 valid pixel instead of 306565) with NO
error. The read-only depth_units option on the sensor is not enough.
The script now checks for the attribute and stops with an explicit
message; 2.58 (this PC) works. rs.__version__ does not exist in 2.50
either: read with getattr.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-01 10:18:04 +02:00
..