Functions | Variables
test-set-option Namespace Reference

Functions

def check_color_frame_drops (frame)
 
def check_depth_frame_drops (frame)
 
def get_allowed_drops ()
 
def set_new_value (sensor, option, value)
 
def test_option_changes (sensor)
 

Variables

bool after_set_option = False
 
 color_profile
 
 color_sensor = dev.first_color_sensor()
 
int current_laser_control = 10
 
 depth_profile
 
 depth_sensor = dev.first_depth_sensor()
 
 dev = test.find_first_device_or_exit()
 
 laser_power = rs.option.laser_power
 Test #1. More...
 
int new_value = current_laser_control+10
 
list options_to_ignore = []
 
int previous_color_frame_number = -1
 
int previous_depth_frame_number = -1
 
 product_line = dev.get_info(rs.camera_info.product_line)
 

Function Documentation

def test-set-option.check_color_frame_drops (   frame)

Definition at line 45 of file test-set-option.py.

def test-set-option.check_depth_frame_drops (   frame)

Definition at line 39 of file test-set-option.py.

def test-set-option.get_allowed_drops ( )

Definition at line 22 of file test-set-option.py.

def test-set-option.set_new_value (   sensor,
  option,
  value 
)

Definition at line 32 of file test-set-option.py.

def test-set-option.test_option_changes (   sensor)

Definition at line 97 of file test-set-option.py.

Variable Documentation

bool test-set-option.after_set_option = False

Definition at line 19 of file test-set-option.py.

test-set-option.color_profile
Initial value:
1 = next(p for p in color_sensor.profiles if p.fps() == 30
2  and p.stream_type() == rs.stream.color
3  and p.format() == rs.format.yuyv
4  and p.as_video_stream_profile().width() == 640
5  and p.as_video_stream_profile().height() == 480)
void next(auto_any_t cur, type2type< T, C > *)
Definition: foreach.hpp:757

Definition at line 59 of file test-set-option.py.

test-set-option.color_sensor = dev.first_color_sensor()

Definition at line 15 of file test-set-option.py.

int test-set-option.current_laser_control = 10

Definition at line 75 of file test-set-option.py.

test-set-option.depth_profile
Initial value:
1 = next(p for p in
2  depth_sensor.profiles if p.fps() == 30
3  and p.stream_type() == rs.stream.depth
4  and p.format() == rs.format.z16
5  and p.as_video_stream_profile().width() == 640
6  and p.as_video_stream_profile().height() == 480)
void next(auto_any_t cur, type2type< T, C > *)
Definition: foreach.hpp:757

Definition at line 52 of file test-set-option.py.

test-set-option.depth_sensor = dev.first_depth_sensor()

Definition at line 14 of file test-set-option.py.

Definition at line 13 of file test-set-option.py.

test-set-option.laser_power = rs.option.laser_power

Test #1.

Definition at line 74 of file test-set-option.py.

int test-set-option.new_value = current_laser_control+10

Definition at line 80 of file test-set-option.py.

list test-set-option.options_to_ignore = []

Definition at line 92 of file test-set-option.py.

int test-set-option.previous_color_frame_number = -1

Definition at line 18 of file test-set-option.py.

int test-set-option.previous_depth_frame_number = -1

Definition at line 17 of file test-set-option.py.

test-set-option.product_line = dev.get_info(rs.camera_info.product_line)

Definition at line 91 of file test-set-option.py.



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