Autoware.Auto
autoware::common::geometry::point_adapter Namespace Reference

Temporary namespace for point adapter methods, for use with nonstandard point types. More...

Functions

template<typename PointT >
auto x_ (const PointT &pt)
 Gets the x value for a point. More...
 
template<typename PointT >
auto y_ (const PointT &pt)
 Gets the y value for a point. More...
 
template<typename PointT >
auto z_ (const PointT &pt)
 Gets the z value for a point. More...
 
template<typename PointT >
auto & xr_ (PointT &pt)
 Gets a reference to the x value for a point. More...
 
template<typename PointT >
auto & yr_ (PointT &pt)
 Gets a reference to the y value for a point. More...
 
template<typename PointT >
auto & zr_ (PointT &pt)
 Gets a reference to the z value for a point. More...
 
template<>
NDT_PUBLIC auto x_ (const Eigen::Vector3d &pt)
 
template<>
NDT_PUBLIC auto y_ (const Eigen::Vector3d &pt)
 
template<>
NDT_PUBLIC auto z_ (const Eigen::Vector3d &pt)
 
template<>
NDT_PUBLIC auto & xr_ (Eigen::Vector3d &pt)
 
template<>
NDT_PUBLIC auto & yr_ (Eigen::Vector3d &pt)
 
template<>
NDT_PUBLIC auto & zr_ (Eigen::Vector3d &pt)
 
template<>
EUCLIDEAN_CLUSTER_PUBLIC auto x_ (const perception::segmentation::euclidean_cluster::PointXYZII &pt)
 
template<>
EUCLIDEAN_CLUSTER_PUBLIC auto y_ (const perception::segmentation::euclidean_cluster::PointXYZII &pt)
 
template<>
EUCLIDEAN_CLUSTER_PUBLIC auto z_ (const perception::segmentation::euclidean_cluster::PointXYZII &pt)
 

Detailed Description

Temporary namespace for point adapter methods, for use with nonstandard point types.

Function Documentation

◆ x_() [1/3]

template<typename PointT >
auto autoware::common::geometry::point_adapter::x_ ( const PointT &  pt)
inline

Gets the x value for a point.

Returns
The x value of the point
Parameters
[in]ptThe point
Template Parameters
PointTThe point type

◆ x_() [2/3]

template<>
NDT_PUBLIC auto autoware::common::geometry::point_adapter::x_ ( const Eigen::Vector3d &  pt)
inline

Point adapters for eigen vector These adapters are necessary for the VoxelGrid to know how to access the coordinates from an eigen vector.

◆ x_() [3/3]

template<>
EUCLIDEAN_CLUSTER_PUBLIC auto autoware::common::geometry::point_adapter::x_ ( const perception::segmentation::euclidean_cluster::PointXYZII pt)
inline

◆ xr_() [1/2]

template<typename PointT >
auto& autoware::common::geometry::point_adapter::xr_ ( PointT &  pt)
inline

Gets a reference to the x value for a point.

Returns
A reference to the x value of the point
Parameters
[in]ptThe point
Template Parameters
PointTThe point type

◆ xr_() [2/2]

template<>
NDT_PUBLIC auto& autoware::common::geometry::point_adapter::xr_ ( Eigen::Vector3d &  pt)
inline

◆ y_() [1/3]

template<typename PointT >
auto autoware::common::geometry::point_adapter::y_ ( const PointT &  pt)
inline

Gets the y value for a point.

Returns
The y value of the point
Parameters
[in]ptThe point
Template Parameters
PointTThe point type

◆ y_() [2/3]

template<>
NDT_PUBLIC auto autoware::common::geometry::point_adapter::y_ ( const Eigen::Vector3d &  pt)
inline

◆ y_() [3/3]

template<>
EUCLIDEAN_CLUSTER_PUBLIC auto autoware::common::geometry::point_adapter::y_ ( const perception::segmentation::euclidean_cluster::PointXYZII pt)
inline

◆ yr_() [1/2]

template<typename PointT >
auto& autoware::common::geometry::point_adapter::yr_ ( PointT &  pt)
inline

Gets a reference to the y value for a point.

Returns
A reference to The y value of the point
Parameters
[in]ptThe point
Template Parameters
PointTThe point type

◆ yr_() [2/2]

template<>
NDT_PUBLIC auto& autoware::common::geometry::point_adapter::yr_ ( Eigen::Vector3d &  pt)
inline

◆ z_() [1/3]

template<typename PointT >
auto autoware::common::geometry::point_adapter::z_ ( const PointT &  pt)
inline

Gets the z value for a point.

Returns
The z value of the point
Parameters
[in]ptThe point
Template Parameters
PointTThe point type

◆ z_() [2/3]

template<>
NDT_PUBLIC auto autoware::common::geometry::point_adapter::z_ ( const Eigen::Vector3d &  pt)
inline

◆ z_() [3/3]

template<>
EUCLIDEAN_CLUSTER_PUBLIC auto autoware::common::geometry::point_adapter::z_ ( const perception::segmentation::euclidean_cluster::PointXYZII pt)
inline

◆ zr_() [1/2]

template<typename PointT >
auto& autoware::common::geometry::point_adapter::zr_ ( PointT &  pt)
inline

Gets a reference to the z value for a point.

Returns
A reference to the z value of the point
Parameters
[in]ptThe point
Template Parameters
PointTThe point type

◆ zr_() [2/2]

template<>
NDT_PUBLIC auto& autoware::common::geometry::point_adapter::zr_ ( Eigen::Vector3d &  pt)
inline