Functions | Variables
test_sensor_first_frame_delay Namespace Reference

Functions

def time_to_first_frame (sensor, profile, max_delay_allowed)
 

Variables

 cp
 
 cs = dev.first_color_sensor()
 
 dev = test.find_first_device_or_exit()
 
 device_creation_stopwatch = Stopwatch()
 
 device_creation_time = device_creation_stopwatch.get_elapsed()
 
 dp
 
 ds = dev.first_depth_sensor()
 
 first_color_frame_delay = time_to_first_frame(cs, cp, max_delay_for_color_frame)
 
 first_depth_frame_delay = time_to_first_frame(ds, dp, max_delay_for_depth_frame)
 
float max_delay_for_color_frame = 1.5
 
float max_delay_for_depth_frame = 1.5
 
float max_time_for_device_creation = 1.5
 
 product_line = dev.get_info(rs.camera_info.product_line)
 

Function Documentation

def test_sensor_first_frame_delay.time_to_first_frame (   sensor,
  profile,
  max_delay_allowed 
)
Wait for the first frame for 'max_delay_allowed' + 1 extra second
If the frame arrives it will return the seconds it took since open() call
If no frame it will return 'max_delay_allowed'

Definition at line 18 of file test_sensor_first_frame_delay.py.

Variable Documentation

test_sensor_first_frame_delay.cp
Initial value:
1 = next(p for p in
2  cs.profiles if p.fps() == 30
3  and p.stream_type() == rs.stream.color
4  and p.format() == rs.format.rgb8)
void next(auto_any_t cur, type2type< T, C > *)
Definition: foreach.hpp:757

Definition at line 83 of file test_sensor_first_frame_delay.py.

test_sensor_first_frame_delay.cs = dev.first_color_sensor()

Definition at line 76 of file test_sensor_first_frame_delay.py.

test_sensor_first_frame_delay.dev = test.find_first_device_or_exit()

Definition at line 55 of file test_sensor_first_frame_delay.py.

test_sensor_first_frame_delay.device_creation_stopwatch = Stopwatch()

Definition at line 54 of file test_sensor_first_frame_delay.py.

test_sensor_first_frame_delay.device_creation_time = device_creation_stopwatch.get_elapsed()

Definition at line 56 of file test_sensor_first_frame_delay.py.

test_sensor_first_frame_delay.dp
Initial value:
1 = next(p for p in
2  ds.profiles if p.fps() == 30
3  and p.stream_type() == rs.stream.depth
4  and p.format() == rs.format.z16)
void next(auto_any_t cur, type2type< T, C > *)
Definition: foreach.hpp:757

Definition at line 78 of file test_sensor_first_frame_delay.py.

test_sensor_first_frame_delay.ds = dev.first_depth_sensor()

Definition at line 75 of file test_sensor_first_frame_delay.py.

test_sensor_first_frame_delay.first_color_frame_delay = time_to_first_frame(cs, cp, max_delay_for_color_frame)

Definition at line 99 of file test_sensor_first_frame_delay.py.

test_sensor_first_frame_delay.first_depth_frame_delay = time_to_first_frame(ds, dp, max_delay_for_depth_frame)

Definition at line 91 of file test_sensor_first_frame_delay.py.

float test_sensor_first_frame_delay.max_delay_for_color_frame = 1.5

Definition at line 67 of file test_sensor_first_frame_delay.py.

float test_sensor_first_frame_delay.max_delay_for_depth_frame = 1.5

Definition at line 66 of file test_sensor_first_frame_delay.py.

float test_sensor_first_frame_delay.max_time_for_device_creation = 1.5

Definition at line 57 of file test_sensor_first_frame_delay.py.

test_sensor_first_frame_delay.product_line = dev.get_info(rs.camera_info.product_line)

Definition at line 64 of file test_sensor_first_frame_delay.py.



librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:50:43