Functions | Variables
test-got-playback-frames Namespace Reference

Functions

def color_frame_call_back (frame)
 
def depth_frame_call_back (frame)
 
def got_frame ()
 
def restart_profiles ()
 
def stop_pipeline (pipeline)
 
def stop_sensor (sensor)
 

Variables

 cfg = None
 
 color_format = None
 
 color_fps = None
 
 color_height = None
 
 color_sensor = dev.first_color_sensor()
 
 color_width = None
 
 cp = None
 
 ctx = rs.context()
 
 depth_format = p.format()
 
 depth_fps = p.fps()
 
 depth_height = p.as_video_stream_profile().height()
 
 depth_sensor = dev.first_depth_sensor()
 
 depth_width = p.as_video_stream_profile().width()
 
 dev = test.find_first_device_or_exit()
 
string file_name = temp_dir.name+os.sep+'rec.bag'
 
bool got_frames = False
 
 pipeline = rs.pipeline()
 
 playback = ctx.load_device( file_name )
 
int previous_color_frame_number = -1
 
int previous_depth_frame_number = -1
 
 recorder = None
 
 sync = rs.syncer()
 
 temp_dir = tempfile.TemporaryDirectory( prefix='recordings_' )
 

Function Documentation

def test-got-playback-frames.color_frame_call_back (   frame)

Definition at line 50 of file test-got-playback-frames.py.

def test-got-playback-frames.depth_frame_call_back (   frame)

Definition at line 56 of file test-got-playback-frames.py.

def test-got-playback-frames.got_frame ( )

Definition at line 46 of file test-got-playback-frames.py.

def test-got-playback-frames.restart_profiles ( )
You can't use the same profile twice, but we need the same profile several times. So this function resets the
profiles with the given parameters to allow quick profile creation

Definition at line 62 of file test-got-playback-frames.py.

def test-got-playback-frames.stop_pipeline (   pipeline)

Definition at line 82 of file test-got-playback-frames.py.

def test-got-playback-frames.stop_sensor (   sensor)

Definition at line 93 of file test-got-playback-frames.py.

Variable Documentation

test-got-playback-frames.cfg = None

Definition at line 115 of file test-got-playback-frames.py.

test-got-playback-frames.color_format = None

Definition at line 11 of file test-got-playback-frames.py.

test-got-playback-frames.color_fps = None

Definition at line 12 of file test-got-playback-frames.py.

test-got-playback-frames.color_height = None

Definition at line 14 of file test-got-playback-frames.py.

test-got-playback-frames.color_sensor = dev.first_color_sensor()

Definition at line 21 of file test-got-playback-frames.py.

test-got-playback-frames.color_width = None

Definition at line 13 of file test-got-playback-frames.py.

test-got-playback-frames.cp = None

Definition at line 10 of file test-got-playback-frames.py.

test-got-playback-frames.ctx = rs.context()

Definition at line 165 of file test-got-playback-frames.py.

test-got-playback-frames.depth_format = p.format()

Definition at line 40 of file test-got-playback-frames.py.

test-got-playback-frames.depth_fps = p.fps()

Definition at line 41 of file test-got-playback-frames.py.

test-got-playback-frames.depth_height = p.as_video_stream_profile().height()

Definition at line 43 of file test-got-playback-frames.py.

test-got-playback-frames.depth_sensor = dev.first_depth_sensor()

Definition at line 20 of file test-got-playback-frames.py.

test-got-playback-frames.depth_width = p.as_video_stream_profile().width()

Definition at line 42 of file test-got-playback-frames.py.

Definition at line 19 of file test-got-playback-frames.py.

string test-got-playback-frames.file_name = temp_dir.name+os.sep+'rec.bag'

Definition at line 110 of file test-got-playback-frames.py.

bool test-got-playback-frames.got_frames = False

Definition at line 17 of file test-got-playback-frames.py.

test-got-playback-frames.pipeline = rs.pipeline()

Definition at line 118 of file test-got-playback-frames.py.

test-got-playback-frames.playback = ctx.load_device( file_name )

Definition at line 166 of file test-got-playback-frames.py.

int test-got-playback-frames.previous_color_frame_number = -1

Definition at line 16 of file test-got-playback-frames.py.

int test-got-playback-frames.previous_depth_frame_number = -1

Definition at line 15 of file test-got-playback-frames.py.

test-got-playback-frames.recorder = None

Definition at line 142 of file test-got-playback-frames.py.

test-got-playback-frames.sync = rs.syncer()

Definition at line 203 of file test-got-playback-frames.py.

test-got-playback-frames.temp_dir = tempfile.TemporaryDirectory( prefix='recordings_' )

Definition at line 109 of file test-got-playback-frames.py.



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