Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix pointcloud for L515 #9490

Merged
merged 4 commits into from
Jul 26, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/l500/l500-depth.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -504,6 +504,9 @@ namespace librealsense
{
try
{
auto depth_units = get_option(RS2_OPTION_DEPTH_UNITS).query();
set_frame_metadata_modifier([&, depth_units](frame_additional_data& data) {data.depth_units = depth_units; });

_user_requests = requests;

auto is_ir_requested
Expand Down
9 changes: 9 additions & 0 deletions src/l500/l500-depth.h
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,15 @@ namespace librealsense
return get_l500_recommended_proccesing_blocks();
};

void set_frame_metadata_modifier(on_frame_md callback) override
{
_metadata_modifier = callback;
auto s = get_raw_sensor().get();
auto uvc = As< librealsense::uvc_sensor >(s);
if (uvc)
uvc->set_frame_metadata_modifier(callback);
}

float read_baseline() const override;
float read_znorm();

Expand Down