Open 3D Engine ROS2 Gem API Reference
24.09
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
|
Utility class for Lidar model computations. More...
Functions | |
LidarTemplate | GetTemplate (LidarTemplate::LidarModel model) |
AZStd::vector< LidarTemplate::LidarModel > | Get2DModels () |
AZStd::vector< LidarTemplate::LidarModel > | Get3DModels () |
size_t | TotalPointCount (const LidarTemplate &t) |
AZStd::vector< AZ::Vector3 > | PopulateRayRotations (const LidarTemplate &lidarTemplate) |
AZStd::vector< AZ::Vector3 > | RotationsToDirections (const AZStd::vector< AZ::Quaternion > &rotations, const AZ::Transform &rootTransform) |
Utility class for Lidar model computations.
AZStd::vector<LidarTemplate::LidarModel> ROS2::LidarTemplateUtils::Get2DModels | ( | ) |
Get all 2D lidar models.
AZStd::vector<LidarTemplate::LidarModel> ROS2::LidarTemplateUtils::Get3DModels | ( | ) |
Get all 3D lidar models.
LidarTemplate ROS2::LidarTemplateUtils::GetTemplate | ( | LidarTemplate::LidarModel | model | ) |
Get the lidar template for a model.
model | lidar model. |
AZStd::vector<AZ::Vector3> ROS2::LidarTemplateUtils::PopulateRayRotations | ( | const LidarTemplate & | lidarTemplate | ) |
Compute ray Rotation angles based on lidar model.
lidarTemplate | Lidar model to use. Note that different models will produce different number of rays. |
AZStd::vector<AZ::Vector3> ROS2::LidarTemplateUtils::RotationsToDirections | ( | const AZStd::vector< AZ::Quaternion > & | rotations, |
const AZ::Transform & | rootTransform | ||
) |
Compute ray directions from rotations.
rotations | Rotations as quaternions to compute directions from. |
rootTransform | root transformation of Lidar sensor. |
size_t ROS2::LidarTemplateUtils::TotalPointCount | ( | const LidarTemplate & | t | ) |
Get total point count for a given template.
t | lidar template. |