Skip to content

Commit

Permalink
update ci - notice syncer uses actual-fps
Browse files Browse the repository at this point in the history
  • Loading branch information
maloel committed Apr 25, 2024
1 parent 55406a8 commit 9eebbf4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 7 additions & 1 deletion unit-tests/sw-dev/test-metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,14 @@ def frame_metadata_values():
# Publish a frame
f = sensor.publish( depth.frame() )

# Some metadata may be automatically added, even for software sensors
expected = set()
for md in frame_metadata_values():
test.check_false( f.supports_frame_metadata( md ))
test.info( 'metadata', md )
if md in expected:
test.check( f.supports_frame_metadata( md ))
else:
test.check_false( f.supports_frame_metadata( md ))
except:
test.unexpected_exception()
test.finish()
Expand Down
2 changes: 2 additions & 0 deletions unit-tests/syncer/sw.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ def generate_depth_frame( frame_number, timestamp, next_expected=None ):
depth_sensor.set_metadata( rs.frame_metadata_value.actual_fps, actual_fps )
log.d( "-->", depth_frame, "with actual FPS", actual_fps )
else:
depth_sensor.set_metadata( rs.frame_metadata_value.actual_fps, 0 ) # force to not use
log.d( "-->", depth_frame )
depth_sensor.on_video_frame( depth_frame )

Expand All @@ -228,6 +229,7 @@ def generate_color_frame( frame_number, timestamp, next_expected=None ):
color_sensor.set_metadata( rs.frame_metadata_value.actual_fps, actual_fps )
log.d( "-->", color_frame, "with actual FPS", actual_fps )
else:
color_sensor.set_metadata( rs.frame_metadata_value.actual_fps, 0 ) # force to not use
log.d( "-->", color_frame )
color_sensor.on_video_frame( color_frame )

Expand Down

0 comments on commit 9eebbf4

Please sign in to comment.