Open 3D Engine ROS2 Gem API Reference
23.05.0
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) |
size_t | TotalPointCount (const LidarTemplate &t) |
AZStd::vector< AZ::Vector3 > | PopulateRayRotations (const LidarTemplate &lidarTemplate) |
AZStd::vector< AZ::Vector3 > | RotationsToDirections (const AZStd::vector< AZ::Vector3 > &rotations, const AZ::Vector3 &rootRotation) |
Utility class for Lidar model computations.
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::Vector3 > & | rotations, |
const AZ::Vector3 & | rootRotation | ||
) |
Compute ray directions from rotations.
rotations | Rotations as Euler angles in radians to compute directions from. |
rootRotation | Root rotation as Euler angles in radians. |
size_t ROS2::LidarTemplateUtils::TotalPointCount | ( | const LidarTemplate & | t | ) |
Get total point count for a given template.
t | lidar template. |