Skip to content

[Bug] 'class rl::math::KdtreeBoundingBoxNearestNeighbors<MetricT>' has no member named 'mean','samples','mean' [-Wtemplate-body] #101

@kongyuanchao

Description

@kongyuanchao

Hi Dear Author,

When compiling Robotic Library on Windows11 using GCC 14.2.0 and Cmake 4.0.2, I encountered a build error related to KdtreeBoundingBoxNearestNeighbors.h.

Analysis
I noticed that KdtreeBoundingBoxNearestNeighbors seems to refer to something undefined — possibly a missing var or template definition. However, KdtreeNearestNeighbors defines it properly.

Suggestions
Please check whether there’s a missing include or incorrect inheritance chain for KdtreeBoundingBoxNearestNeighbors.

Let me know if a patch or PR would be helpful — I’m happy to contribute.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions