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

Update multi-return for more types of return and all RGL fields. #324

Merged
merged 23 commits into from
Aug 23, 2024

Conversation

PawelLiberadzki
Copy link
Contributor

@PawelLiberadzki PawelLiberadzki commented Aug 2, 2024

Description

This PRs introduces an update to RGL multi-return - more types are handled now (first, second, last, strongest and second strongest) and all RGL fields are handled. Moreover, this vastly simplifies an amount of effort to introduce multi-return for ROS 2 and UDP publishing.

A temporary downgrade is that multi-return samples are allocated even if beam divergence is set to zero. However, that was the case also before this update. This will be solved in close future PRs.

Multi-return modes and beam divergences are configurable at runtime.

Testing

Run implemented unit tests - most important here is asyncStressTest. For runtime check I propose running cube_in_motion test from multiReturnTest suite - uncomment GTEST_SKIP there. Results are visible in RViz2 ("world" frame). Divergence is configured on beams, and return modes switch circularly in following order:

  • RGL_RETURN_FIRST
  • RGL_RETURN_LAST
  • RGL_RETURN_FIRST_LAST

…return configuration on RaytraceNode.

Signed-off-by: Paweł Liberadzki <[email protected]>
Signed-off-by: Paweł Liberadzki <[email protected]>
Signed-off-by: Paweł Liberadzki <[email protected]>
Signed-off-by: Paweł Liberadzki <[email protected]>
Signed-off-by: Paweł Liberadzki <[email protected]>
Copy link
Collaborator

@msz-rai msz-rai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job! 🦾
Minor suggestions to consider.

include/rgl/api/core.h Outdated Show resolved Hide resolved
src/api/apiCore.cpp Outdated Show resolved Hide resolved
src/api/apiCore.cpp Outdated Show resolved Hide resolved
src/gpu/optixPrograms.cu Show resolved Hide resolved
src/gpu/nodeKernels.cu Outdated Show resolved Hide resolved
src/gpu/nodeKernels.cu Outdated Show resolved Hide resolved
src/gpu/nodeKernels.cu Outdated Show resolved Hide resolved
src/gpu/nodeKernels.cu Outdated Show resolved Hide resolved
Copy link
Collaborator

@prybicki prybicki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@PawelLiberadzki PawelLiberadzki merged commit 5a098ad into develop Aug 23, 2024
24 checks passed
@PawelLiberadzki PawelLiberadzki deleted the feature/update-multi-return branch August 23, 2024 12:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants