Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
unit-tests
func
alt-ir
test-streamimg-before.cpp
Go to the documentation of this file.
1
// License: Apache 2.0. See LICENSE file in root directory.
2
// Copyright(c) 2020 Intel Corporation. All Rights Reserved.
3
4
//#test:device L500*
5
6
#include "../func-common.h"
//todo functional-common.h
7
#include "
alt-ir-common.h
"
//todo alt-ir-common.h
8
9
10
using namespace
rs2
;
11
12
TEST_CASE
(
"Enable AltIR before stream start and check that all streams arrived"
,
"[l500][live]"
)
13
{
14
auto
devices
=
find_devices_by_product_line_or_exit
(
RS2_PRODUCT_LINE_L500
);
15
auto
dev
=
devices
[0];
16
17
auto
depth_sens =
dev
.first<
rs2::depth_sensor
>();
18
if
(
alt_ir_supported_or_message
( depth_sens ) )
19
{
20
REQUIRE_NOTHROW
( depth_sens.set_option(
RS2_OPTION_ALTERNATE_IR
, 1 ) );
21
22
auto
depth
=
find_default_depth_profile
( depth_sens );
23
auto
ir =
find_default_ir_profile
( depth_sens );
24
auto
confidence
=
find_confidence_corresponding_to_depth
( depth_sens, depth );
25
26
enable_alt_ir_and_check_that_all_streams_arrived
(
dev
,
27
depth_sens,
28
{
depth
, ir,
confidence
} );
29
}
30
}
librealsense::confidence
Definition:
l500-options.h:12
test-bad-conditions.dev
dev
Definition:
test-bad-conditions.py:16
rs2::depth_sensor
Definition:
rs_sensor.hpp:454
find_default_depth_profile
stream_profile find_default_depth_profile(rs2::depth_sensor depth_sens)
Definition:
func-common.h:120
depth
GLint GLint GLsizei GLsizei GLsizei depth
Definition:
glad/glad/glad.h:2399
TEST_CASE
TEST_CASE("Enable AltIR before stream start and check that all streams arrived","[l500][live]")
Definition:
test-streamimg-before.cpp:12
rs2
Definition:
cah-model.h:10
alt_ir_supported_or_message
bool alt_ir_supported_or_message(const rs2::depth_sensor &depth_sens)
Definition:
alt-ir-common.h:10
find_devices_by_product_line_or_exit
rs2::device_list find_devices_by_product_line_or_exit(int product)
Definition:
func-common.h:24
test-fg.devices
devices
Definition:
test-fg.py:9
find_default_ir_profile
stream_profile find_default_ir_profile(rs2::depth_sensor depth_sens)
Definition:
func-common.h:134
RS2_PRODUCT_LINE_L500
#define RS2_PRODUCT_LINE_L500
Definition:
rs_context.h:96
enable_alt_ir_and_check_that_all_streams_arrived
void enable_alt_ir_and_check_that_all_streams_arrived(const rs2::device &dev, const rs2::depth_sensor &depth_sens, const std::vector< stream_profile > &expected_profiles)
Definition:
alt-ir-common.h:59
find_confidence_corresponding_to_depth
stream_profile find_confidence_corresponding_to_depth(rs2::depth_sensor depth_sens, stream_profile depth_profile)
Definition:
func-common.h:148
RS2_OPTION_ALTERNATE_IR
Definition:
rs_option.h:107
alt-ir-common.h
REQUIRE_NOTHROW
REQUIRE_NOTHROW(rs2_log(RS2_LOG_SEVERITY_INFO,"Log message using rs2_log()", nullptr))
librealsense2
Author(s): Sergey Dorodnicov
, Doron Hirshberg
, Mark Horn
, Reagan Lopez
, Itay Carpis
autogenerated on Mon May 3 2021 02:50:11