Skip to content

Commit

Permalink
Fix lidar component features configuration.
Browse files Browse the repository at this point in the history
Signed-off-by: Paweł Liberadzki <[email protected]>
  • Loading branch information
PawelLiberadzki authored and michalpelka committed Sep 19, 2023
1 parent 01455c6 commit 9aa0188
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions Gems/ROS2/Code/Source/Lidar/LidarCore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ namespace ROS2

m_lastRotations = LidarTemplateUtils::PopulateRayRotations(m_lidarConfiguration.m_lidarParameters);

m_lidarConfiguration.FetchLidarImplementationFeatures();
ConnectToLidarRaycaster();
ConfigureLidarRaycaster();
}
Expand Down
5 changes: 3 additions & 2 deletions Gems/ROS2/Code/Source/Lidar/LidarSensorConfiguration.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ namespace ROS2

LidarSensorConfiguration(AZStd::vector<LidarTemplate::LidarModel> availableModels = {});

//! Update the lidar system features based on the current lidar system selected.
void FetchLidarImplementationFeatures();

LidarSystemFeatures m_lidarSystemFeatures;

AZStd::string m_lidarSystem;
Expand All @@ -46,8 +49,6 @@ namespace ROS2

//! Update the lidar configuration based on the current lidar model selected.
void FetchLidarModelConfiguration();
//! Update the lidar system features based on the current lidar system selected.
void FetchLidarImplementationFeatures();

AZ::Crc32 OnLidarModelSelected();
AZ::Crc32 OnLidarImplementationSelected();
Expand Down

0 comments on commit 9aa0188

Please sign in to comment.