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::Vector3 > &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::Vector3 > & | rotations, |
const AZ::Transform & | rootTransform | ||
) |
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. |