Apollo  v5.5.0
Open source self driving car software
Namespaces | Functions
common.h File Reference
#include <algorithm>
#include <limits>
#include <memory>
#include <vector>
#include "Eigen/Core"
#include "modules/perception/base/point_cloud.h"
Include dependency graph for common.h:

Go to the source code of this file.

Namespaces

 apollo
 
 apollo::perception
 
 apollo::perception::common
 

Functions

template<typename PointT >
void apollo::perception::common::TransformPoint (const PointT &point_in, const Eigen::Affine3d &pose, PointT *point_out)
 
template<typename PointT >
void apollo::perception::common::TransformPointCloud (const base::PointCloud< PointT > &cloud_in, const Eigen::Affine3d &pose, base::PointCloud< PointT > *cloud_out)
 
template<typename PointT >
void apollo::perception::common::TransformPointCloud (const Eigen::Affine3d &pose, base::PointCloud< PointT > *cloud_in_out)
 
template<typename PointCloudT >
void apollo::perception::common::ExtractIndicedCloud (const std::shared_ptr< const PointCloudT > cloud, const std::vector< int > &indices, std::shared_ptr< PointCloudT > trans_cloud)
 
template<typename PointT >
void apollo::perception::common::GetMinMaxIn3DWithRange (const base::AttributePointCloud< PointT > &cloud, const size_t range, Eigen::Matrix< typename PointT::Type, 4, 1 > *min_p, Eigen::Matrix< typename PointT::Type, 4, 1 > *max_p)
 
template<typename PointT >
void apollo::perception::common::GetMinMaxIn3D (const base::AttributePointCloud< PointT > &cloud, const base::PointIndices &indices, Eigen::Matrix< typename PointT::Type, 4, 1 > *min_p, Eigen::Matrix< typename PointT::Type, 4, 1 > *max_p)
 
template<typename PointT >
void apollo::perception::common::GetMinMaxIn3D (const base::AttributePointCloud< PointT > &cloud, Eigen::Matrix< typename PointT::Type, 4, 1 > *min_p, Eigen::Matrix< typename PointT::Type, 4, 1 > *max_p)
 
template<typename T >
Eigen::Matrix< T, 3, 1 > apollo::perception::common::CalculateCentroid (const base::AttributePointCloud< base::Point< T >> &cloud)