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

[ROS2] Raycast Results Refactor #751

Merged
merged 3 commits into from
Aug 29, 2024

Conversation

alek-kam-robotec-ai
Copy link
Contributor

What does this PR do?

This pull request features:

  • Refactor of the Raycast Request class:
    • results now are guaranteed to be the same size
    • introducing new fields is now easier
  • New ROS 2 pc message builder class

This PR aims to resolve #736.

How was this PR tested?

Ran in multiple configurations (also with RGL gem) on a simple project.

Copy link
Contributor

@michalpelka michalpelka left a comment

Choose a reason for hiding this comment

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

I did not test those changes, but added some questions and suggestions.

Signed-off-by: Aleksander Kamiński <[email protected]>
Signed-off-by: Aleksander Kamiński <[email protected]>
Copy link
Contributor

@PawelLiberadzki PawelLiberadzki left a comment

Choose a reason for hiding this comment

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

Nice code! I did not run it so far, but I will definitely check the runtime before approving.

Gems/ROS2/Code/Include/ROS2/Lidar/RaycastResults.h Outdated Show resolved Hide resolved
Gems/ROS2/Code/Include/ROS2/Lidar/RaycastResults.h Outdated Show resolved Hide resolved
Gems/ROS2/Code/Source/Lidar/LidarCore.cpp Outdated Show resolved Hide resolved
Gems/ROS2/Code/Source/Lidar/LidarCore.cpp Show resolved Hide resolved
Gems/ROS2/Code/Source/Lidar/PointCloudMessageBuilder.h Outdated Show resolved Hide resolved
Gems/ROS2/Code/Source/Lidar/RaycastResults.cpp Outdated Show resolved Hide resolved
Signed-off-by: Aleksander Kamiński <[email protected]>
Copy link
Contributor

@PawelLiberadzki PawelLiberadzki left a comment

Choose a reason for hiding this comment

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

LGTM! I also ran this code (latest stabilization/2409) and it seems to work fine + results are observable in rviz2 as expected.

@byrcolin byrcolin added the needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. label Aug 27, 2024
@michalpelka michalpelka added the sig/simulation Categorizes an issue or PR as relevant to SIG Simulation label Aug 28, 2024
@jhanca-robotecai jhanca-robotecai merged commit 2a42422 into o3de:development Aug 29, 2024
2 checks passed
@jhanca-robotecai jhanca-robotecai deleted the refactor/raycast-results branch August 29, 2024 12:43
jhanca-robotecai pushed a commit to RobotecAI/o3de-extras that referenced this pull request Oct 11, 2024
jhanca-robotecai pushed a commit to RobotecAI/o3de-extras that referenced this pull request Nov 22, 2024
jhanca-robotecai pushed a commit to RobotecAI/o3de-extras that referenced this pull request Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. sig/simulation Categorizes an issue or PR as relevant to SIG Simulation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ROS2] Feature: Improved Lidar Result retrieval and publishing
6 participants