14 Eigen::MatrixXd A(n, 3);
18 for (
int i = 0; i < n; ++i) {
19 float z = *
reinterpret_cast<const float*
>(
22 float intensity = *
reinterpret_cast<const float*
>(
32 Eigen::Vector3d coefficients = A.colPivHouseholderQr().solve(B);
34 if (coefficients[0] > 0) {
Represents a cluster of 3D points using PCL (Point Cloud Library).
const std::vector< int > & get_point_indices()
Get the Point Cloud data of the cluster.
const sensor_msgs::msg::PointCloud2::SharedPtr & get_point_cloud()
Get the Point Cloud data of the cluster.
void set_color(const std::string &new_color)
Set the color for the cluster.
void coneDifferentiation(Cluster *cone_point_cloud) const override
Perform cone differentiation on a cone's point cloud using the Least Squares Method.
constexpr size_t PointZ(size_t idx)
constexpr size_t PointIntensity(size_t idx)