Skip to content

Commit

Permalink
PR #12458 from noacoohen: Test point-cloud-from-recordng
Browse files Browse the repository at this point in the history
  • Loading branch information
Nir-Az authored Nov 30, 2023
2 parents 093cdc4 + c02d4bb commit 3be0596
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
3 changes: 2 additions & 1 deletion unit-tests/live/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ dl_file( ${PP_Rosbag_Recordings_URL} recordings [aligned_2c]_all_combinations_de
# for post-processing/post-processing-from-bag.py
dl_file( ${PP_Rosbag_Recordings_URL} recordings [aligned_2d]_all_combinations_depth_color.bag OFF )


# for post-processing/post-processing-from-bag.py
dl_file( ${PP_Rosbag_Recordings_URL} recordings [pointcloud]_all_combinations_depth_color.bag OFF )
6 changes: 6 additions & 0 deletions unit-tests/post-processing/test-post-processing-from-bag.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,4 +116,10 @@ def compare_processed_frames_vs_recorded_frames(file):

compare_processed_frames_vs_recorded_frames("[aligned_2d]_all_combinations_depth_color.bag")
################################################################################################
with test.closure("Test point cloud from recording"):
pc = rs.pointcloud()
process_frame_callback = lambda fs: pc.calculate(fs.get_depth_frame())

compare_processed_frames_vs_recorded_frames("[pointcloud]_all_combinations_depth_color.bag")
################################################################################################
test.print_results_and_exit()
6 changes: 3 additions & 3 deletions unit-tests/unit-tests-post-processing-from-bag.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -541,19 +541,19 @@ TEST_CASE("Record point cloud software-device all resolutions", "[record-bag][po
record_frames_all_res(record_block, "[pointcloud]_all_combinations_depth_color.bag");
}

TEST_CASE("Test align color to depth from recording", "[software-device][align]")
TEST_CASE("Test align color to depth from recording", "[software-device-disabled][align]")
{
auto record_block = align_record_block(RS2_STREAM_DEPTH, RS2_STREAM_COLOR);
compare_processed_frames_vs_recorded_frames(record_block, "[aligned_2d]_all_combinations_depth_color.bag");
}

TEST_CASE("Test align depth to color from recording", "[software-device][align]")
TEST_CASE("Test align depth to color from recording", "[software-device-disabled][align]")
{
auto record_block = align_record_block(RS2_STREAM_COLOR, RS2_STREAM_DEPTH);
compare_processed_frames_vs_recorded_frames(record_block, "[aligned_2c]_all_combinations_depth_color.bag");
}

TEST_CASE("Test point cloud from recording", "[software-device][point-cloud]")
TEST_CASE("Test point cloud from recording", "[software-device-disabled][point-cloud]")
{
auto record_block = pointcloud_record_block();
compare_processed_frames_vs_recorded_frames(record_block, "[pointcloud]_all_combinations_depth_color.bag");
Expand Down

0 comments on commit 3be0596

Please sign in to comment.