libnabo package from libnabo repo

libnabo

Package Summary

Tags No category tags.
Version 1.0.7
License BSD
Build type CMAKE
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/ethz-asl/libnabo.git
VCS Type git
VCS Version master
Last Updated 2023-11-23
Dev Status MAINTAINED
CI status No Continuous Integration
Released RELEASED
Tags No category tags.
Contributing Help Wanted (0)
Good First Issues (0)
Pull Requests to Review (0)

Package Description

libnabo is a fast K Nearest Neighbour library for low-dimensional spaces.

Additional Links

Maintainers

  • Stéphane Magnenat

Authors

  • Stéphane Magnenat

libnabo is a fast K Nearest Neighbour library for low-dimensional spaces. It provides a clean, legacy-free, scalar-type–agnostic API thanks to C++ templates. Its current CPU implementation is strongly inspired by ANN, but with more compact data types. On the average, libnabo is 5% to 20% faster than ANN.

libnabo depends on Eigen, a modern C++ matrix and linear-algebra library. libnabo works with either version 2 or 3 of Eigen. libnabo also optionally depends on Boost, a C++ general library, for Python bindings.

libnabo was developed by Stéphane Magnenat as part of his work at ASL-ETH and is now maintained by Simon Lynen.

If you are interested in a pure-Rust version, check that repository out.

Download

Ubuntu builds are available on my PPA at: https://launchpad.net/~stephane.magnenat They provide a package with the shared library, another with the development headers and a third with the documentation.

The source code is available from github, you can clone the git tree by doing:

git clone git://github.com/ethz-asl/libnabo.git

Compilation

libnabo uses CMake as build system. The complete compilation process depends on the system you are using (Linux, Mac OS X or Windows). You will find a nice introductory tutorial in this video.

Prerequisites

If your operating system does not provide it, you must get Eigen, and Boost if you want to build the Python bindings. Eigen only needs to be downloaded and extracted.

Compilation options

libnabo provides the following compilation options, available through CMake:

  • SHARED_LIBS (boolean, default: false): if true, build a shared library, otherwise build a static library

You can specify them with a command-line tool, ccmake, or with a graphical tool, cmake-gui. Please read the CMake documentation for more information.

Quick compilation and installation under Unix

Under Unix, assuming that Eigen and Boost are installed system-wide, you can compile (with optimisation and debug information) and install libnabo in /usr/local with the following commands run in the top-level directory of libnabo's sources:

SRC_DIR=`pwd`
BUILD_DIR=${SRC_DIR}/build
mkdir -p ${BUILD_DIR} && cd ${BUILD_DIR}
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo ${SRC_DIR}
# if Eigen or Boost are not available system-wide, run at that point:
#   cmake-gui .
# cmake-gui allows you to tell the location of Eigen or Boost
make
sudo make install

These lines will compile libnabo in a build sub-directory and therefore keep your source tree clean. Note that you could compile libnabo anywhere you have write access, such as in /tmp/libnabo. This out-of-source build is a nice feature of CMake. If Eigen or Boost are not installed system-wide, you might have to tell CMake where to find them (using ccmake or cmake-gui).

You can generate the documentation by typing:

make doc

Usage

libnabo is easy to use. For example, assuming that you are working with floats and that you have a point set M and a query point q, you can find the K nearest neighbours of q in M:

#include "nabo/nabo.h"
using namespace Nabo;
using namespace Eigen;
...
NNSearchF* nns = NNSearchF::createKDTreeLinearHeap(M);

const int K = 5;
VectorXi indices(K);
VectorXf dists2(K);

nns->knn(q, indices, dists2, K);

In this example, M is an Eigen matrix (column major, float) and q is an Eigen vector (float). Note that M must stay alive throughout the use of libnabo, otherwise the results of knn are undefined. The results indices and dists2 are Eigen vectors of indices and squared distances refering to the columns of M. See examples/trivial.cpp for a compilable version of this example, and examples/usage.cpp for a slightly more complex example involving multi-point queries.

Running make doc in your build directory will generate a browsable documentation in doc/html. The main page doc/html/index.html contains a detailed overview of the usage of libnabo.

You can find a complete CMake integration example in examples/libnabo-cmake-example to see how to look for, and link against this library.

Python bindings

libnabo includes python bindings that are compiled if Python is available. The resulting module is called pynabo, you can see an example in python/test.py. You can find more information in the docstring-based documentation:

python -c "import pynabo; help(pynabo.NearestNeighbourSearch)"

Building

The Python bindings can be generated for Python 2 or Python 3. To specify the version of the interpreter to use when building the bindings, set the PYTHON_VERSION_MAJOR and PYTHON_VERSION_MINOR variables. For example if you have both Python 2.7 and 3.5 installed, you could ask CMake to generate Python 3 bindings by using the following command.

cmake -DPYTHON_VERSION_MAJOR=3 -DPYTHON_VERSION_MINOR=5 ..

On Debian-based distributions you may also need the -DPYTHON_DEB_INSTALL_TARGET option enabled.

Unit testing

The distribution of libnabo integrates a unit test module, based on CTest. Just type:

make test

...in the build directory to run the tests. Their outputs are available in the Testing directory. These consist of validation and benchmarking tests. If ANN or FLANN are detected when compiling libnabo, make test will also perform comparative benchmarks.

Citing libnabo

If you use libnabo in the academic context, please cite this paper that evaluates its performances in the contex of ICP:

@article{elsebergcomparison,
    title={Comparison of nearest-neighbor-search strategies and implementations for efficient shape registration},
    author={Elseberg, J. and Magnenat, S. and Siegwart, R. and N{\"u}chter, A.},
    journal={Journal of Software Engineering for Robotics (JOSER)},
    pages={2--12},
    volume={3},
    number={1},
    year={2012},
    issn={2035-3928}
}

Bug reporting

Please use github's issue tracker to report bugs.

License

libnabo is released under a permissive BSD license.

CHANGELOG

Changelog for package libnabo

1.0.7 (2019-02-07)

  • Disabled cmake compile tests by default and on compilers that do not support them (#95)
  • Fix Python 2 bindings support in CMake scripts (#90)
  • Port libnabo to c++11 (#89)
  • Remove register keyword in index_heap.h (#88)
  • Fix compilation warning for MSVC (#85)
  • Assert template type for invalid setters (#80)
  • Return numerically maximal index (unsigned) or -1 (signed) for no match case (#79)
  • Add generate step for \${PROJECT_BINARY_DIR}/libnaboConfig.cmake (#76)
  • Removed compiler-specific flags for compilers that do not support them (#74)
  • Added cmake_policy(SET CMP0054 NEW) (#73)
  • Output compiler message with compile test fatal error in cmake (#72)
  • Removed erroneous commas from test/CMakeLists.txt (#71)
  • Removed fatal \",\" suffix from FATAL_ERROR in CMakeLists.txt (#70)
  • Fixed regression concerning installed libnaboConfig.cmake (#65)
  • Fix/relax compiler requirements (#63)
  • Removed hard dependency on the doc target (#62)
  • Install any.hpp (#61)
  • Remove boost::any and boost:format dependencies (#59)
  • Port the python bindings to python3 (#57)
  • Added cmake switch to disable usage of OpenMP (#53)
  • Zero copy for Eigen::Matrix3XT and Eigen::Map<const Eigen::Matrix3XT> (#43)
  • Fix warnings and switch on Wextra (#42)
  • Disallow instantiation with non dynamic matrices (#41)
  • Update README.md
  • Removed all code dealing with libnaboTargets.cmake (#32)
  • Got rid of unused locally defined typedefs (#27)
  • Contributors: David Landry, Hannes Sommer, Simon Lynen, Simon-Pierre Desch

Wiki Tutorials

See ROS Wiki Tutorials for more details.

Source Tutorials

Not currently indexed.

Package Dependencies

Deps Name
1 catkin

System Dependencies

Dependant Packages

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged libnabo at answers.ros.org

libnabo package from libnabo repo

libnabo

Package Summary

Tags No category tags.
Version 1.0.7
License BSD
Build type CMAKE
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/ethz-asl/libnabo.git
VCS Type git
VCS Version master
Last Updated 2023-11-23
Dev Status MAINTAINED
CI status No Continuous Integration
Released RELEASED
Tags No category tags.
Contributing Help Wanted (0)
Good First Issues (0)
Pull Requests to Review (0)

Package Description

libnabo is a fast K Nearest Neighbour library for low-dimensional spaces.

Additional Links

Maintainers

  • Stéphane Magnenat

Authors

  • Stéphane Magnenat

libnabo is a fast K Nearest Neighbour library for low-dimensional spaces. It provides a clean, legacy-free, scalar-type–agnostic API thanks to C++ templates. Its current CPU implementation is strongly inspired by ANN, but with more compact data types. On the average, libnabo is 5% to 20% faster than ANN.

libnabo depends on Eigen, a modern C++ matrix and linear-algebra library. libnabo works with either version 2 or 3 of Eigen. libnabo also optionally depends on Boost, a C++ general library, for Python bindings.

libnabo was developed by Stéphane Magnenat as part of his work at ASL-ETH and is now maintained by Simon Lynen.

If you are interested in a pure-Rust version, check that repository out.

Download

Ubuntu builds are available on my PPA at: https://launchpad.net/~stephane.magnenat They provide a package with the shared library, another with the development headers and a third with the documentation.

The source code is available from github, you can clone the git tree by doing:

git clone git://github.com/ethz-asl/libnabo.git

Compilation

libnabo uses CMake as build system. The complete compilation process depends on the system you are using (Linux, Mac OS X or Windows). You will find a nice introductory tutorial in this video.

Prerequisites

If your operating system does not provide it, you must get Eigen, and Boost if you want to build the Python bindings. Eigen only needs to be downloaded and extracted.

Compilation options

libnabo provides the following compilation options, available through CMake:

  • SHARED_LIBS (boolean, default: false): if true, build a shared library, otherwise build a static library

You can specify them with a command-line tool, ccmake, or with a graphical tool, cmake-gui. Please read the CMake documentation for more information.

Quick compilation and installation under Unix

Under Unix, assuming that Eigen and Boost are installed system-wide, you can compile (with optimisation and debug information) and install libnabo in /usr/local with the following commands run in the top-level directory of libnabo's sources:

SRC_DIR=`pwd`
BUILD_DIR=${SRC_DIR}/build
mkdir -p ${BUILD_DIR} && cd ${BUILD_DIR}
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo ${SRC_DIR}
# if Eigen or Boost are not available system-wide, run at that point:
#   cmake-gui .
# cmake-gui allows you to tell the location of Eigen or Boost
make
sudo make install

These lines will compile libnabo in a build sub-directory and therefore keep your source tree clean. Note that you could compile libnabo anywhere you have write access, such as in /tmp/libnabo. This out-of-source build is a nice feature of CMake. If Eigen or Boost are not installed system-wide, you might have to tell CMake where to find them (using ccmake or cmake-gui).

You can generate the documentation by typing:

make doc

Usage

libnabo is easy to use. For example, assuming that you are working with floats and that you have a point set M and a query point q, you can find the K nearest neighbours of q in M:

#include "nabo/nabo.h"
using namespace Nabo;
using namespace Eigen;
...
NNSearchF* nns = NNSearchF::createKDTreeLinearHeap(M);

const int K = 5;
VectorXi indices(K);
VectorXf dists2(K);

nns->knn(q, indices, dists2, K);

In this example, M is an Eigen matrix (column major, float) and q is an Eigen vector (float). Note that M must stay alive throughout the use of libnabo, otherwise the results of knn are undefined. The results indices and dists2 are Eigen vectors of indices and squared distances refering to the columns of M. See examples/trivial.cpp for a compilable version of this example, and examples/usage.cpp for a slightly more complex example involving multi-point queries.

Running make doc in your build directory will generate a browsable documentation in doc/html. The main page doc/html/index.html contains a detailed overview of the usage of libnabo.

You can find a complete CMake integration example in examples/libnabo-cmake-example to see how to look for, and link against this library.

Python bindings

libnabo includes python bindings that are compiled if Python is available. The resulting module is called pynabo, you can see an example in python/test.py. You can find more information in the docstring-based documentation:

python -c "import pynabo; help(pynabo.NearestNeighbourSearch)"

Building

The Python bindings can be generated for Python 2 or Python 3. To specify the version of the interpreter to use when building the bindings, set the PYTHON_VERSION_MAJOR and PYTHON_VERSION_MINOR variables. For example if you have both Python 2.7 and 3.5 installed, you could ask CMake to generate Python 3 bindings by using the following command.

cmake -DPYTHON_VERSION_MAJOR=3 -DPYTHON_VERSION_MINOR=5 ..

On Debian-based distributions you may also need the -DPYTHON_DEB_INSTALL_TARGET option enabled.

Unit testing

The distribution of libnabo integrates a unit test module, based on CTest. Just type:

make test

...in the build directory to run the tests. Their outputs are available in the Testing directory. These consist of validation and benchmarking tests. If ANN or FLANN are detected when compiling libnabo, make test will also perform comparative benchmarks.

Citing libnabo

If you use libnabo in the academic context, please cite this paper that evaluates its performances in the contex of ICP:

@article{elsebergcomparison,
    title={Comparison of nearest-neighbor-search strategies and implementations for efficient shape registration},
    author={Elseberg, J. and Magnenat, S. and Siegwart, R. and N{\"u}chter, A.},
    journal={Journal of Software Engineering for Robotics (JOSER)},
    pages={2--12},
    volume={3},
    number={1},
    year={2012},
    issn={2035-3928}
}

Bug reporting

Please use github's issue tracker to report bugs.

License

libnabo is released under a permissive BSD license.

CHANGELOG

Changelog for package libnabo

1.0.7 (2019-02-07)

  • Disabled cmake compile tests by default and on compilers that do not support them (#95)
  • Fix Python 2 bindings support in CMake scripts (#90)
  • Port libnabo to c++11 (#89)
  • Remove register keyword in index_heap.h (#88)
  • Fix compilation warning for MSVC (#85)
  • Assert template type for invalid setters (#80)
  • Return numerically maximal index (unsigned) or -1 (signed) for no match case (#79)
  • Add generate step for \${PROJECT_BINARY_DIR}/libnaboConfig.cmake (#76)
  • Removed compiler-specific flags for compilers that do not support them (#74)
  • Added cmake_policy(SET CMP0054 NEW) (#73)
  • Output compiler message with compile test fatal error in cmake (#72)
  • Removed erroneous commas from test/CMakeLists.txt (#71)
  • Removed fatal \",\" suffix from FATAL_ERROR in CMakeLists.txt (#70)
  • Fixed regression concerning installed libnaboConfig.cmake (#65)
  • Fix/relax compiler requirements (#63)
  • Removed hard dependency on the doc target (#62)
  • Install any.hpp (#61)
  • Remove boost::any and boost:format dependencies (#59)
  • Port the python bindings to python3 (#57)
  • Added cmake switch to disable usage of OpenMP (#53)
  • Zero copy for Eigen::Matrix3XT and Eigen::Map<const Eigen::Matrix3XT> (#43)
  • Fix warnings and switch on Wextra (#42)
  • Disallow instantiation with non dynamic matrices (#41)
  • Update README.md
  • Removed all code dealing with libnaboTargets.cmake (#32)
  • Got rid of unused locally defined typedefs (#27)
  • Contributors: David Landry, Hannes Sommer, Simon Lynen, Simon-Pierre Desch

Wiki Tutorials

See ROS Wiki Tutorials for more details.

Source Tutorials

Not currently indexed.

Package Dependencies

Deps Name
1 catkin

System Dependencies

Dependant Packages

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged libnabo at answers.ros.org

libnabo package from libnabo repo

libnabo

Package Summary

Tags No category tags.
Version 1.0.7
License BSD
Build type CMAKE
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/ethz-asl/libnabo.git
VCS Type git
VCS Version master
Last Updated 2023-11-23
Dev Status MAINTAINED
CI status No Continuous Integration
Released RELEASED
Tags No category tags.
Contributing Help Wanted (0)
Good First Issues (0)
Pull Requests to Review (0)

Package Description

libnabo is a fast K Nearest Neighbour library for low-dimensional spaces.

Additional Links

Maintainers

  • Stéphane Magnenat

Authors

  • Stéphane Magnenat

libnabo is a fast K Nearest Neighbour library for low-dimensional spaces. It provides a clean, legacy-free, scalar-type–agnostic API thanks to C++ templates. Its current CPU implementation is strongly inspired by ANN, but with more compact data types. On the average, libnabo is 5% to 20% faster than ANN.

libnabo depends on Eigen, a modern C++ matrix and linear-algebra library. libnabo works with either version 2 or 3 of Eigen. libnabo also optionally depends on Boost, a C++ general library, for Python bindings.

libnabo was developed by Stéphane Magnenat as part of his work at ASL-ETH and is now maintained by Simon Lynen.

If you are interested in a pure-Rust version, check that repository out.

Download

Ubuntu builds are available on my PPA at: https://launchpad.net/~stephane.magnenat They provide a package with the shared library, another with the development headers and a third with the documentation.

The source code is available from github, you can clone the git tree by doing:

git clone git://github.com/ethz-asl/libnabo.git

Compilation

libnabo uses CMake as build system. The complete compilation process depends on the system you are using (Linux, Mac OS X or Windows). You will find a nice introductory tutorial in this video.

Prerequisites

If your operating system does not provide it, you must get Eigen, and Boost if you want to build the Python bindings. Eigen only needs to be downloaded and extracted.

Compilation options

libnabo provides the following compilation options, available through CMake:

  • SHARED_LIBS (boolean, default: false): if true, build a shared library, otherwise build a static library

You can specify them with a command-line tool, ccmake, or with a graphical tool, cmake-gui. Please read the CMake documentation for more information.

Quick compilation and installation under Unix

Under Unix, assuming that Eigen and Boost are installed system-wide, you can compile (with optimisation and debug information) and install libnabo in /usr/local with the following commands run in the top-level directory of libnabo's sources:

SRC_DIR=`pwd`
BUILD_DIR=${SRC_DIR}/build
mkdir -p ${BUILD_DIR} && cd ${BUILD_DIR}
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo ${SRC_DIR}
# if Eigen or Boost are not available system-wide, run at that point:
#   cmake-gui .
# cmake-gui allows you to tell the location of Eigen or Boost
make
sudo make install

These lines will compile libnabo in a build sub-directory and therefore keep your source tree clean. Note that you could compile libnabo anywhere you have write access, such as in /tmp/libnabo. This out-of-source build is a nice feature of CMake. If Eigen or Boost are not installed system-wide, you might have to tell CMake where to find them (using ccmake or cmake-gui).

You can generate the documentation by typing:

make doc

Usage

libnabo is easy to use. For example, assuming that you are working with floats and that you have a point set M and a query point q, you can find the K nearest neighbours of q in M:

#include "nabo/nabo.h"
using namespace Nabo;
using namespace Eigen;
...
NNSearchF* nns = NNSearchF::createKDTreeLinearHeap(M);

const int K = 5;
VectorXi indices(K);
VectorXf dists2(K);

nns->knn(q, indices, dists2, K);

In this example, M is an Eigen matrix (column major, float) and q is an Eigen vector (float). Note that M must stay alive throughout the use of libnabo, otherwise the results of knn are undefined. The results indices and dists2 are Eigen vectors of indices and squared distances refering to the columns of M. See examples/trivial.cpp for a compilable version of this example, and examples/usage.cpp for a slightly more complex example involving multi-point queries.

Running make doc in your build directory will generate a browsable documentation in doc/html. The main page doc/html/index.html contains a detailed overview of the usage of libnabo.

You can find a complete CMake integration example in examples/libnabo-cmake-example to see how to look for, and link against this library.

Python bindings

libnabo includes python bindings that are compiled if Python is available. The resulting module is called pynabo, you can see an example in python/test.py. You can find more information in the docstring-based documentation:

python -c "import pynabo; help(pynabo.NearestNeighbourSearch)"

Building

The Python bindings can be generated for Python 2 or Python 3. To specify the version of the interpreter to use when building the bindings, set the PYTHON_VERSION_MAJOR and PYTHON_VERSION_MINOR variables. For example if you have both Python 2.7 and 3.5 installed, you could ask CMake to generate Python 3 bindings by using the following command.

cmake -DPYTHON_VERSION_MAJOR=3 -DPYTHON_VERSION_MINOR=5 ..

On Debian-based distributions you may also need the -DPYTHON_DEB_INSTALL_TARGET option enabled.

Unit testing

The distribution of libnabo integrates a unit test module, based on CTest. Just type:

make test

...in the build directory to run the tests. Their outputs are available in the Testing directory. These consist of validation and benchmarking tests. If ANN or FLANN are detected when compiling libnabo, make test will also perform comparative benchmarks.

Citing libnabo

If you use libnabo in the academic context, please cite this paper that evaluates its performances in the contex of ICP:

@article{elsebergcomparison,
    title={Comparison of nearest-neighbor-search strategies and implementations for efficient shape registration},
    author={Elseberg, J. and Magnenat, S. and Siegwart, R. and N{\"u}chter, A.},
    journal={Journal of Software Engineering for Robotics (JOSER)},
    pages={2--12},
    volume={3},
    number={1},
    year={2012},
    issn={2035-3928}
}

Bug reporting

Please use github's issue tracker to report bugs.

License

libnabo is released under a permissive BSD license.

CHANGELOG

Changelog for package libnabo

1.0.7 (2019-02-07)

  • Disabled cmake compile tests by default and on compilers that do not support them (#95)
  • Fix Python 2 bindings support in CMake scripts (#90)
  • Port libnabo to c++11 (#89)
  • Remove register keyword in index_heap.h (#88)
  • Fix compilation warning for MSVC (#85)
  • Assert template type for invalid setters (#80)
  • Return numerically maximal index (unsigned) or -1 (signed) for no match case (#79)
  • Add generate step for \${PROJECT_BINARY_DIR}/libnaboConfig.cmake (#76)
  • Removed compiler-specific flags for compilers that do not support them (#74)
  • Added cmake_policy(SET CMP0054 NEW) (#73)
  • Output compiler message with compile test fatal error in cmake (#72)
  • Removed erroneous commas from test/CMakeLists.txt (#71)
  • Removed fatal \",\" suffix from FATAL_ERROR in CMakeLists.txt (#70)
  • Fixed regression concerning installed libnaboConfig.cmake (#65)
  • Fix/relax compiler requirements (#63)
  • Removed hard dependency on the doc target (#62)
  • Install any.hpp (#61)
  • Remove boost::any and boost:format dependencies (#59)
  • Port the python bindings to python3 (#57)
  • Added cmake switch to disable usage of OpenMP (#53)
  • Zero copy for Eigen::Matrix3XT and Eigen::Map<const Eigen::Matrix3XT> (#43)
  • Fix warnings and switch on Wextra (#42)
  • Disallow instantiation with non dynamic matrices (#41)
  • Update README.md
  • Removed all code dealing with libnaboTargets.cmake (#32)
  • Got rid of unused locally defined typedefs (#27)
  • Contributors: David Landry, Hannes Sommer, Simon Lynen, Simon-Pierre Desch

Wiki Tutorials

See ROS Wiki Tutorials for more details.

Source Tutorials

Not currently indexed.

Package Dependencies

Deps Name
1 catkin

System Dependencies

Dependant Packages

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged libnabo at answers.ros.org

libnabo package from libnabo repo

libnabo

Package Summary

Tags No category tags.
Version 1.0.7
License BSD
Build type CMAKE
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/ethz-asl/libnabo.git
VCS Type git
VCS Version master
Last Updated 2023-11-23
Dev Status MAINTAINED
CI status No Continuous Integration
Released RELEASED
Tags No category tags.
Contributing Help Wanted (0)
Good First Issues (0)
Pull Requests to Review (0)

Package Description

libnabo is a fast K Nearest Neighbour library for low-dimensional spaces.

Additional Links

Maintainers

  • Stéphane Magnenat

Authors

  • Stéphane Magnenat

libnabo is a fast K Nearest Neighbour library for low-dimensional spaces. It provides a clean, legacy-free, scalar-type–agnostic API thanks to C++ templates. Its current CPU implementation is strongly inspired by ANN, but with more compact data types. On the average, libnabo is 5% to 20% faster than ANN.

libnabo depends on Eigen, a modern C++ matrix and linear-algebra library. libnabo works with either version 2 or 3 of Eigen. libnabo also optionally depends on Boost, a C++ general library, for Python bindings.

libnabo was developed by Stéphane Magnenat as part of his work at ASL-ETH and is now maintained by Simon Lynen.

If you are interested in a pure-Rust version, check that repository out.

Download

Ubuntu builds are available on my PPA at: https://launchpad.net/~stephane.magnenat They provide a package with the shared library, another with the development headers and a third with the documentation.

The source code is available from github, you can clone the git tree by doing:

git clone git://github.com/ethz-asl/libnabo.git

Compilation

libnabo uses CMake as build system. The complete compilation process depends on the system you are using (Linux, Mac OS X or Windows). You will find a nice introductory tutorial in this video.

Prerequisites

If your operating system does not provide it, you must get Eigen, and Boost if you want to build the Python bindings. Eigen only needs to be downloaded and extracted.

Compilation options

libnabo provides the following compilation options, available through CMake:

  • SHARED_LIBS (boolean, default: false): if true, build a shared library, otherwise build a static library

You can specify them with a command-line tool, ccmake, or with a graphical tool, cmake-gui. Please read the CMake documentation for more information.

Quick compilation and installation under Unix

Under Unix, assuming that Eigen and Boost are installed system-wide, you can compile (with optimisation and debug information) and install libnabo in /usr/local with the following commands run in the top-level directory of libnabo's sources:

SRC_DIR=`pwd`
BUILD_DIR=${SRC_DIR}/build
mkdir -p ${BUILD_DIR} && cd ${BUILD_DIR}
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo ${SRC_DIR}
# if Eigen or Boost are not available system-wide, run at that point:
#   cmake-gui .
# cmake-gui allows you to tell the location of Eigen or Boost
make
sudo make install

These lines will compile libnabo in a build sub-directory and therefore keep your source tree clean. Note that you could compile libnabo anywhere you have write access, such as in /tmp/libnabo. This out-of-source build is a nice feature of CMake. If Eigen or Boost are not installed system-wide, you might have to tell CMake where to find them (using ccmake or cmake-gui).

You can generate the documentation by typing:

make doc

Usage

libnabo is easy to use. For example, assuming that you are working with floats and that you have a point set M and a query point q, you can find the K nearest neighbours of q in M:

#include "nabo/nabo.h"
using namespace Nabo;
using namespace Eigen;
...
NNSearchF* nns = NNSearchF::createKDTreeLinearHeap(M);

const int K = 5;
VectorXi indices(K);
VectorXf dists2(K);

nns->knn(q, indices, dists2, K);

In this example, M is an Eigen matrix (column major, float) and q is an Eigen vector (float). Note that M must stay alive throughout the use of libnabo, otherwise the results of knn are undefined. The results indices and dists2 are Eigen vectors of indices and squared distances refering to the columns of M. See examples/trivial.cpp for a compilable version of this example, and examples/usage.cpp for a slightly more complex example involving multi-point queries.

Running make doc in your build directory will generate a browsable documentation in doc/html. The main page doc/html/index.html contains a detailed overview of the usage of libnabo.

You can find a complete CMake integration example in examples/libnabo-cmake-example to see how to look for, and link against this library.

Python bindings

libnabo includes python bindings that are compiled if Python is available. The resulting module is called pynabo, you can see an example in python/test.py. You can find more information in the docstring-based documentation:

python -c "import pynabo; help(pynabo.NearestNeighbourSearch)"

Building

The Python bindings can be generated for Python 2 or Python 3. To specify the version of the interpreter to use when building the bindings, set the PYTHON_VERSION_MAJOR and PYTHON_VERSION_MINOR variables. For example if you have both Python 2.7 and 3.5 installed, you could ask CMake to generate Python 3 bindings by using the following command.

cmake -DPYTHON_VERSION_MAJOR=3 -DPYTHON_VERSION_MINOR=5 ..

On Debian-based distributions you may also need the -DPYTHON_DEB_INSTALL_TARGET option enabled.

Unit testing

The distribution of libnabo integrates a unit test module, based on CTest. Just type:

make test

...in the build directory to run the tests. Their outputs are available in the Testing directory. These consist of validation and benchmarking tests. If ANN or FLANN are detected when compiling libnabo, make test will also perform comparative benchmarks.

Citing libnabo

If you use libnabo in the academic context, please cite this paper that evaluates its performances in the contex of ICP:

@article{elsebergcomparison,
    title={Comparison of nearest-neighbor-search strategies and implementations for efficient shape registration},
    author={Elseberg, J. and Magnenat, S. and Siegwart, R. and N{\"u}chter, A.},
    journal={Journal of Software Engineering for Robotics (JOSER)},
    pages={2--12},
    volume={3},
    number={1},
    year={2012},
    issn={2035-3928}
}

Bug reporting

Please use github's issue tracker to report bugs.

License

libnabo is released under a permissive BSD license.

CHANGELOG

Changelog for package libnabo

1.0.7 (2019-02-07)

  • Disabled cmake compile tests by default and on compilers that do not support them (#95)
  • Fix Python 2 bindings support in CMake scripts (#90)
  • Port libnabo to c++11 (#89)
  • Remove register keyword in index_heap.h (#88)
  • Fix compilation warning for MSVC (#85)
  • Assert template type for invalid setters (#80)
  • Return numerically maximal index (unsigned) or -1 (signed) for no match case (#79)
  • Add generate step for \${PROJECT_BINARY_DIR}/libnaboConfig.cmake (#76)
  • Removed compiler-specific flags for compilers that do not support them (#74)
  • Added cmake_policy(SET CMP0054 NEW) (#73)
  • Output compiler message with compile test fatal error in cmake (#72)
  • Removed erroneous commas from test/CMakeLists.txt (#71)
  • Removed fatal \",\" suffix from FATAL_ERROR in CMakeLists.txt (#70)
  • Fixed regression concerning installed libnaboConfig.cmake (#65)
  • Fix/relax compiler requirements (#63)
  • Removed hard dependency on the doc target (#62)
  • Install any.hpp (#61)
  • Remove boost::any and boost:format dependencies (#59)
  • Port the python bindings to python3 (#57)
  • Added cmake switch to disable usage of OpenMP (#53)
  • Zero copy for Eigen::Matrix3XT and Eigen::Map<const Eigen::Matrix3XT> (#43)
  • Fix warnings and switch on Wextra (#42)
  • Disallow instantiation with non dynamic matrices (#41)
  • Update README.md
  • Removed all code dealing with libnaboTargets.cmake (#32)
  • Got rid of unused locally defined typedefs (#27)
  • Contributors: David Landry, Hannes Sommer, Simon Lynen, Simon-Pierre Desch

Wiki Tutorials

See ROS Wiki Tutorials for more details.

Source Tutorials

Not currently indexed.

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged libnabo at answers.ros.org

No version for distro ardent. Known supported distros are highlighted in the buttons above.
No version for distro bouncy. Known supported distros are highlighted in the buttons above.
No version for distro crystal. Known supported distros are highlighted in the buttons above.
No version for distro eloquent. Known supported distros are highlighted in the buttons above.
No version for distro dashing. Known supported distros are highlighted in the buttons above.

libnabo package from libnabo repo

libnabo

Package Summary

Tags No category tags.
Version 1.0.7
License BSD
Build type CMAKE
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/ethz-asl/libnabo.git
VCS Type git
VCS Version master
Last Updated 2023-11-23
Dev Status MAINTAINED
CI status No Continuous Integration
Released RELEASED
Tags No category tags.
Contributing Help Wanted (0)
Good First Issues (0)
Pull Requests to Review (0)

Package Description

libnabo is a fast K Nearest Neighbour library for low-dimensional spaces.

Additional Links

Maintainers

  • Stéphane Magnenat

Authors

  • Stéphane Magnenat

libnabo is a fast K Nearest Neighbour library for low-dimensional spaces. It provides a clean, legacy-free, scalar-type–agnostic API thanks to C++ templates. Its current CPU implementation is strongly inspired by ANN, but with more compact data types. On the average, libnabo is 5% to 20% faster than ANN.

libnabo depends on Eigen, a modern C++ matrix and linear-algebra library. libnabo works with either version 2 or 3 of Eigen. libnabo also optionally depends on Boost, a C++ general library, for Python bindings.

libnabo was developed by Stéphane Magnenat as part of his work at ASL-ETH and is now maintained by Simon Lynen.

If you are interested in a pure-Rust version, check that repository out.

Download

Ubuntu builds are available on my PPA at: https://launchpad.net/~stephane.magnenat They provide a package with the shared library, another with the development headers and a third with the documentation.

The source code is available from github, you can clone the git tree by doing:

git clone git://github.com/ethz-asl/libnabo.git

Compilation

libnabo uses CMake as build system. The complete compilation process depends on the system you are using (Linux, Mac OS X or Windows). You will find a nice introductory tutorial in this video.

Prerequisites

If your operating system does not provide it, you must get Eigen, and Boost if you want to build the Python bindings. Eigen only needs to be downloaded and extracted.

Compilation options

libnabo provides the following compilation options, available through CMake:

  • SHARED_LIBS (boolean, default: false): if true, build a shared library, otherwise build a static library

You can specify them with a command-line tool, ccmake, or with a graphical tool, cmake-gui. Please read the CMake documentation for more information.

Quick compilation and installation under Unix

Under Unix, assuming that Eigen and Boost are installed system-wide, you can compile (with optimisation and debug information) and install libnabo in /usr/local with the following commands run in the top-level directory of libnabo's sources:

SRC_DIR=`pwd`
BUILD_DIR=${SRC_DIR}/build
mkdir -p ${BUILD_DIR} && cd ${BUILD_DIR}
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo ${SRC_DIR}
# if Eigen or Boost are not available system-wide, run at that point:
#   cmake-gui .
# cmake-gui allows you to tell the location of Eigen or Boost
make
sudo make install

These lines will compile libnabo in a build sub-directory and therefore keep your source tree clean. Note that you could compile libnabo anywhere you have write access, such as in /tmp/libnabo. This out-of-source build is a nice feature of CMake. If Eigen or Boost are not installed system-wide, you might have to tell CMake where to find them (using ccmake or cmake-gui).

You can generate the documentation by typing:

make doc

Usage

libnabo is easy to use. For example, assuming that you are working with floats and that you have a point set M and a query point q, you can find the K nearest neighbours of q in M:

#include "nabo/nabo.h"
using namespace Nabo;
using namespace Eigen;
...
NNSearchF* nns = NNSearchF::createKDTreeLinearHeap(M);

const int K = 5;
VectorXi indices(K);
VectorXf dists2(K);

nns->knn(q, indices, dists2, K);

In this example, M is an Eigen matrix (column major, float) and q is an Eigen vector (float). Note that M must stay alive throughout the use of libnabo, otherwise the results of knn are undefined. The results indices and dists2 are Eigen vectors of indices and squared distances refering to the columns of M. See examples/trivial.cpp for a compilable version of this example, and examples/usage.cpp for a slightly more complex example involving multi-point queries.

Running make doc in your build directory will generate a browsable documentation in doc/html. The main page doc/html/index.html contains a detailed overview of the usage of libnabo.

You can find a complete CMake integration example in examples/libnabo-cmake-example to see how to look for, and link against this library.

Python bindings

libnabo includes python bindings that are compiled if Python is available. The resulting module is called pynabo, you can see an example in python/test.py. You can find more information in the docstring-based documentation:

python -c "import pynabo; help(pynabo.NearestNeighbourSearch)"

Building

The Python bindings can be generated for Python 2 or Python 3. To specify the version of the interpreter to use when building the bindings, set the PYTHON_VERSION_MAJOR and PYTHON_VERSION_MINOR variables. For example if you have both Python 2.7 and 3.5 installed, you could ask CMake to generate Python 3 bindings by using the following command.

cmake -DPYTHON_VERSION_MAJOR=3 -DPYTHON_VERSION_MINOR=5 ..

On Debian-based distributions you may also need the -DPYTHON_DEB_INSTALL_TARGET option enabled.

Unit testing

The distribution of libnabo integrates a unit test module, based on CTest. Just type:

make test

...in the build directory to run the tests. Their outputs are available in the Testing directory. These consist of validation and benchmarking tests. If ANN or FLANN are detected when compiling libnabo, make test will also perform comparative benchmarks.

Citing libnabo

If you use libnabo in the academic context, please cite this paper that evaluates its performances in the contex of ICP:

@article{elsebergcomparison,
    title={Comparison of nearest-neighbor-search strategies and implementations for efficient shape registration},
    author={Elseberg, J. and Magnenat, S. and Siegwart, R. and N{\"u}chter, A.},
    journal={Journal of Software Engineering for Robotics (JOSER)},
    pages={2--12},
    volume={3},
    number={1},
    year={2012},
    issn={2035-3928}
}

Bug reporting

Please use github's issue tracker to report bugs.

License

libnabo is released under a permissive BSD license.

CHANGELOG

Changelog for package libnabo

1.0.7 (2019-02-07)

  • Disabled cmake compile tests by default and on compilers that do not support them (#95)
  • Fix Python 2 bindings support in CMake scripts (#90)
  • Port libnabo to c++11 (#89)
  • Remove register keyword in index_heap.h (#88)
  • Fix compilation warning for MSVC (#85)
  • Assert template type for invalid setters (#80)
  • Return numerically maximal index (unsigned) or -1 (signed) for no match case (#79)
  • Add generate step for \${PROJECT_BINARY_DIR}/libnaboConfig.cmake (#76)
  • Removed compiler-specific flags for compilers that do not support them (#74)
  • Added cmake_policy(SET CMP0054 NEW) (#73)
  • Output compiler message with compile test fatal error in cmake (#72)
  • Removed erroneous commas from test/CMakeLists.txt (#71)
  • Removed fatal \",\" suffix from FATAL_ERROR in CMakeLists.txt (#70)
  • Fixed regression concerning installed libnaboConfig.cmake (#65)
  • Fix/relax compiler requirements (#63)
  • Removed hard dependency on the doc target (#62)
  • Install any.hpp (#61)
  • Remove boost::any and boost:format dependencies (#59)
  • Port the python bindings to python3 (#57)
  • Added cmake switch to disable usage of OpenMP (#53)
  • Zero copy for Eigen::Matrix3XT and Eigen::Map<const Eigen::Matrix3XT> (#43)
  • Fix warnings and switch on Wextra (#42)
  • Disallow instantiation with non dynamic matrices (#41)
  • Update README.md
  • Removed all code dealing with libnaboTargets.cmake (#32)
  • Got rid of unused locally defined typedefs (#27)
  • Contributors: David Landry, Hannes Sommer, Simon Lynen, Simon-Pierre Desch

Wiki Tutorials

See ROS Wiki Tutorials for more details.

Source Tutorials

Not currently indexed.

Package Dependencies

Deps Name
1 catkin

System Dependencies

Dependant Packages

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged libnabo at answers.ros.org

libnabo package from libnabo repo

libnabo

Package Summary

Tags No category tags.
Version 1.0.7
License BSD
Build type CMAKE
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/ethz-asl/libnabo.git
VCS Type git
VCS Version master
Last Updated 2023-11-23
Dev Status MAINTAINED
CI status No Continuous Integration
Released RELEASED
Tags No category tags.
Contributing Help Wanted (0)
Good First Issues (0)
Pull Requests to Review (0)

Package Description

libnabo is a fast K Nearest Neighbour library for low-dimensional spaces.

Additional Links

Maintainers

  • Stéphane Magnenat

Authors

  • Stéphane Magnenat

libnabo is a fast K Nearest Neighbour library for low-dimensional spaces. It provides a clean, legacy-free, scalar-type–agnostic API thanks to C++ templates. Its current CPU implementation is strongly inspired by ANN, but with more compact data types. On the average, libnabo is 5% to 20% faster than ANN.

libnabo depends on Eigen, a modern C++ matrix and linear-algebra library. libnabo works with either version 2 or 3 of Eigen. libnabo also optionally depends on Boost, a C++ general library, for Python bindings.

libnabo was developed by Stéphane Magnenat as part of his work at ASL-ETH and is now maintained by Simon Lynen.

If you are interested in a pure-Rust version, check that repository out.

Download

Ubuntu builds are available on my PPA at: https://launchpad.net/~stephane.magnenat They provide a package with the shared library, another with the development headers and a third with the documentation.

The source code is available from github, you can clone the git tree by doing:

git clone git://github.com/ethz-asl/libnabo.git

Compilation

libnabo uses CMake as build system. The complete compilation process depends on the system you are using (Linux, Mac OS X or Windows). You will find a nice introductory tutorial in this video.

Prerequisites

If your operating system does not provide it, you must get Eigen, and Boost if you want to build the Python bindings. Eigen only needs to be downloaded and extracted.

Compilation options

libnabo provides the following compilation options, available through CMake:

  • SHARED_LIBS (boolean, default: false): if true, build a shared library, otherwise build a static library

You can specify them with a command-line tool, ccmake, or with a graphical tool, cmake-gui. Please read the CMake documentation for more information.

Quick compilation and installation under Unix

Under Unix, assuming that Eigen and Boost are installed system-wide, you can compile (with optimisation and debug information) and install libnabo in /usr/local with the following commands run in the top-level directory of libnabo's sources:

SRC_DIR=`pwd`
BUILD_DIR=${SRC_DIR}/build
mkdir -p ${BUILD_DIR} && cd ${BUILD_DIR}
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo ${SRC_DIR}
# if Eigen or Boost are not available system-wide, run at that point:
#   cmake-gui .
# cmake-gui allows you to tell the location of Eigen or Boost
make
sudo make install

These lines will compile libnabo in a build sub-directory and therefore keep your source tree clean. Note that you could compile libnabo anywhere you have write access, such as in /tmp/libnabo. This out-of-source build is a nice feature of CMake. If Eigen or Boost are not installed system-wide, you might have to tell CMake where to find them (using ccmake or cmake-gui).

You can generate the documentation by typing:

make doc

Usage

libnabo is easy to use. For example, assuming that you are working with floats and that you have a point set M and a query point q, you can find the K nearest neighbours of q in M:

#include "nabo/nabo.h"
using namespace Nabo;
using namespace Eigen;
...
NNSearchF* nns = NNSearchF::createKDTreeLinearHeap(M);

const int K = 5;
VectorXi indices(K);
VectorXf dists2(K);

nns->knn(q, indices, dists2, K);

In this example, M is an Eigen matrix (column major, float) and q is an Eigen vector (float). Note that M must stay alive throughout the use of libnabo, otherwise the results of knn are undefined. The results indices and dists2 are Eigen vectors of indices and squared distances refering to the columns of M. See examples/trivial.cpp for a compilable version of this example, and examples/usage.cpp for a slightly more complex example involving multi-point queries.

Running make doc in your build directory will generate a browsable documentation in doc/html. The main page doc/html/index.html contains a detailed overview of the usage of libnabo.

You can find a complete CMake integration example in examples/libnabo-cmake-example to see how to look for, and link against this library.

Python bindings

libnabo includes python bindings that are compiled if Python is available. The resulting module is called pynabo, you can see an example in python/test.py. You can find more information in the docstring-based documentation:

python -c "import pynabo; help(pynabo.NearestNeighbourSearch)"

Building

The Python bindings can be generated for Python 2 or Python 3. To specify the version of the interpreter to use when building the bindings, set the PYTHON_VERSION_MAJOR and PYTHON_VERSION_MINOR variables. For example if you have both Python 2.7 and 3.5 installed, you could ask CMake to generate Python 3 bindings by using the following command.

cmake -DPYTHON_VERSION_MAJOR=3 -DPYTHON_VERSION_MINOR=5 ..

On Debian-based distributions you may also need the -DPYTHON_DEB_INSTALL_TARGET option enabled.

Unit testing

The distribution of libnabo integrates a unit test module, based on CTest. Just type:

make test

...in the build directory to run the tests. Their outputs are available in the Testing directory. These consist of validation and benchmarking tests. If ANN or FLANN are detected when compiling libnabo, make test will also perform comparative benchmarks.

Citing libnabo

If you use libnabo in the academic context, please cite this paper that evaluates its performances in the contex of ICP:

@article{elsebergcomparison,
    title={Comparison of nearest-neighbor-search strategies and implementations for efficient shape registration},
    author={Elseberg, J. and Magnenat, S. and Siegwart, R. and N{\"u}chter, A.},
    journal={Journal of Software Engineering for Robotics (JOSER)},
    pages={2--12},
    volume={3},
    number={1},
    year={2012},
    issn={2035-3928}
}

Bug reporting

Please use github's issue tracker to report bugs.

License

libnabo is released under a permissive BSD license.

CHANGELOG

Changelog for package libnabo

1.0.7 (2019-02-07)

  • Disabled cmake compile tests by default and on compilers that do not support them (#95)
  • Fix Python 2 bindings support in CMake scripts (#90)
  • Port libnabo to c++11 (#89)
  • Remove register keyword in index_heap.h (#88)
  • Fix compilation warning for MSVC (#85)
  • Assert template type for invalid setters (#80)
  • Return numerically maximal index (unsigned) or -1 (signed) for no match case (#79)
  • Add generate step for \${PROJECT_BINARY_DIR}/libnaboConfig.cmake (#76)
  • Removed compiler-specific flags for compilers that do not support them (#74)
  • Added cmake_policy(SET CMP0054 NEW) (#73)
  • Output compiler message with compile test fatal error in cmake (#72)
  • Removed erroneous commas from test/CMakeLists.txt (#71)
  • Removed fatal \",\" suffix from FATAL_ERROR in CMakeLists.txt (#70)
  • Fixed regression concerning installed libnaboConfig.cmake (#65)
  • Fix/relax compiler requirements (#63)
  • Removed hard dependency on the doc target (#62)
  • Install any.hpp (#61)
  • Remove boost::any and boost:format dependencies (#59)
  • Port the python bindings to python3 (#57)
  • Added cmake switch to disable usage of OpenMP (#53)
  • Zero copy for Eigen::Matrix3XT and Eigen::Map<const Eigen::Matrix3XT> (#43)
  • Fix warnings and switch on Wextra (#42)
  • Disallow instantiation with non dynamic matrices (#41)
  • Update README.md
  • Removed all code dealing with libnaboTargets.cmake (#32)
  • Got rid of unused locally defined typedefs (#27)
  • Contributors: David Landry, Hannes Sommer, Simon Lynen, Simon-Pierre Desch

Wiki Tutorials

See ROS Wiki Tutorials for more details.

Source Tutorials

Not currently indexed.

Package Dependencies

Deps Name
1 catkin

System Dependencies

Dependant Packages

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged libnabo at answers.ros.org

No version for distro lunar. Known supported distros are highlighted in the buttons above.
No version for distro jade. Known supported distros are highlighted in the buttons above.

libnabo package from libnabo repo

libnabo

Package Summary

Tags No category tags.
Version 1.0.7
License BSD
Build type CMAKE
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/ethz-asl/libnabo.git
VCS Type git
VCS Version master
Last Updated 2023-11-23
Dev Status MAINTAINED
CI status No Continuous Integration
Released RELEASED
Tags No category tags.
Contributing Help Wanted (0)
Good First Issues (0)
Pull Requests to Review (0)

Package Description

libnabo is a fast K Nearest Neighbour library for low-dimensional spaces.

Additional Links

Maintainers

  • Stéphane Magnenat

Authors

  • Stéphane Magnenat

libnabo is a fast K Nearest Neighbour library for low-dimensional spaces. It provides a clean, legacy-free, scalar-type–agnostic API thanks to C++ templates. Its current CPU implementation is strongly inspired by ANN, but with more compact data types. On the average, libnabo is 5% to 20% faster than ANN.

libnabo depends on Eigen, a modern C++ matrix and linear-algebra library. libnabo works with either version 2 or 3 of Eigen. libnabo also optionally depends on Boost, a C++ general library, for Python bindings.

libnabo was developed by Stéphane Magnenat as part of his work at ASL-ETH and is now maintained by Simon Lynen.

If you are interested in a pure-Rust version, check that repository out.

Download

Ubuntu builds are available on my PPA at: https://launchpad.net/~stephane.magnenat They provide a package with the shared library, another with the development headers and a third with the documentation.

The source code is available from github, you can clone the git tree by doing:

git clone git://github.com/ethz-asl/libnabo.git

Compilation

libnabo uses CMake as build system. The complete compilation process depends on the system you are using (Linux, Mac OS X or Windows). You will find a nice introductory tutorial in this video.

Prerequisites

If your operating system does not provide it, you must get Eigen, and Boost if you want to build the Python bindings. Eigen only needs to be downloaded and extracted.

Compilation options

libnabo provides the following compilation options, available through CMake:

  • SHARED_LIBS (boolean, default: false): if true, build a shared library, otherwise build a static library

You can specify them with a command-line tool, ccmake, or with a graphical tool, cmake-gui. Please read the CMake documentation for more information.

Quick compilation and installation under Unix

Under Unix, assuming that Eigen and Boost are installed system-wide, you can compile (with optimisation and debug information) and install libnabo in /usr/local with the following commands run in the top-level directory of libnabo's sources:

SRC_DIR=`pwd`
BUILD_DIR=${SRC_DIR}/build
mkdir -p ${BUILD_DIR} && cd ${BUILD_DIR}
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo ${SRC_DIR}
# if Eigen or Boost are not available system-wide, run at that point:
#   cmake-gui .
# cmake-gui allows you to tell the location of Eigen or Boost
make
sudo make install

These lines will compile libnabo in a build sub-directory and therefore keep your source tree clean. Note that you could compile libnabo anywhere you have write access, such as in /tmp/libnabo. This out-of-source build is a nice feature of CMake. If Eigen or Boost are not installed system-wide, you might have to tell CMake where to find them (using ccmake or cmake-gui).

You can generate the documentation by typing:

make doc

Usage

libnabo is easy to use. For example, assuming that you are working with floats and that you have a point set M and a query point q, you can find the K nearest neighbours of q in M:

#include "nabo/nabo.h"
using namespace Nabo;
using namespace Eigen;
...
NNSearchF* nns = NNSearchF::createKDTreeLinearHeap(M);

const int K = 5;
VectorXi indices(K);
VectorXf dists2(K);

nns->knn(q, indices, dists2, K);

In this example, M is an Eigen matrix (column major, float) and q is an Eigen vector (float). Note that M must stay alive throughout the use of libnabo, otherwise the results of knn are undefined. The results indices and dists2 are Eigen vectors of indices and squared distances refering to the columns of M. See examples/trivial.cpp for a compilable version of this example, and examples/usage.cpp for a slightly more complex example involving multi-point queries.

Running make doc in your build directory will generate a browsable documentation in doc/html. The main page doc/html/index.html contains a detailed overview of the usage of libnabo.

You can find a complete CMake integration example in examples/libnabo-cmake-example to see how to look for, and link against this library.

Python bindings

libnabo includes python bindings that are compiled if Python is available. The resulting module is called pynabo, you can see an example in python/test.py. You can find more information in the docstring-based documentation:

python -c "import pynabo; help(pynabo.NearestNeighbourSearch)"

Building

The Python bindings can be generated for Python 2 or Python 3. To specify the version of the interpreter to use when building the bindings, set the PYTHON_VERSION_MAJOR and PYTHON_VERSION_MINOR variables. For example if you have both Python 2.7 and 3.5 installed, you could ask CMake to generate Python 3 bindings by using the following command.

cmake -DPYTHON_VERSION_MAJOR=3 -DPYTHON_VERSION_MINOR=5 ..

On Debian-based distributions you may also need the -DPYTHON_DEB_INSTALL_TARGET option enabled.

Unit testing

The distribution of libnabo integrates a unit test module, based on CTest. Just type:

make test

...in the build directory to run the tests. Their outputs are available in the Testing directory. These consist of validation and benchmarking tests. If ANN or FLANN are detected when compiling libnabo, make test will also perform comparative benchmarks.

Citing libnabo

If you use libnabo in the academic context, please cite this paper that evaluates its performances in the contex of ICP:

@article{elsebergcomparison,
    title={Comparison of nearest-neighbor-search strategies and implementations for efficient shape registration},
    author={Elseberg, J. and Magnenat, S. and Siegwart, R. and N{\"u}chter, A.},
    journal={Journal of Software Engineering for Robotics (JOSER)},
    pages={2--12},
    volume={3},
    number={1},
    year={2012},
    issn={2035-3928}
}

Bug reporting

Please use github's issue tracker to report bugs.

License

libnabo is released under a permissive BSD license.

CHANGELOG

Changelog for package libnabo

1.0.7 (2019-02-07)

  • Disabled cmake compile tests by default and on compilers that do not support them (#95)
  • Fix Python 2 bindings support in CMake scripts (#90)
  • Port libnabo to c++11 (#89)
  • Remove register keyword in index_heap.h (#88)
  • Fix compilation warning for MSVC (#85)
  • Assert template type for invalid setters (#80)
  • Return numerically maximal index (unsigned) or -1 (signed) for no match case (#79)
  • Add generate step for \${PROJECT_BINARY_DIR}/libnaboConfig.cmake (#76)
  • Removed compiler-specific flags for compilers that do not support them (#74)
  • Added cmake_policy(SET CMP0054 NEW) (#73)
  • Output compiler message with compile test fatal error in cmake (#72)
  • Removed erroneous commas from test/CMakeLists.txt (#71)
  • Removed fatal \",\" suffix from FATAL_ERROR in CMakeLists.txt (#70)
  • Fixed regression concerning installed libnaboConfig.cmake (#65)
  • Fix/relax compiler requirements (#63)
  • Removed hard dependency on the doc target (#62)
  • Install any.hpp (#61)
  • Remove boost::any and boost:format dependencies (#59)
  • Port the python bindings to python3 (#57)
  • Added cmake switch to disable usage of OpenMP (#53)
  • Zero copy for Eigen::Matrix3XT and Eigen::Map<const Eigen::Matrix3XT> (#43)
  • Fix warnings and switch on Wextra (#42)
  • Disallow instantiation with non dynamic matrices (#41)
  • Update README.md
  • Removed all code dealing with libnaboTargets.cmake (#32)
  • Got rid of unused locally defined typedefs (#27)
  • Contributors: David Landry, Hannes Sommer, Simon Lynen, Simon-Pierre Desch

Wiki Tutorials

See ROS Wiki Tutorials for more details.

Source Tutorials

Not currently indexed.

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged libnabo at answers.ros.org

libnabo package from libnabo repo

libnabo

Package Summary

Tags No category tags.
Version 1.0.7
License BSD
Build type CMAKE
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/ethz-asl/libnabo.git
VCS Type git
VCS Version master
Last Updated 2023-11-23
Dev Status MAINTAINED
CI status No Continuous Integration
Released RELEASED
Tags No category tags.
Contributing Help Wanted (0)
Good First Issues (0)
Pull Requests to Review (0)

Package Description

libnabo is a fast K Nearest Neighbour library for low-dimensional spaces.

Additional Links

Maintainers

  • Stéphane Magnenat

Authors

  • Stéphane Magnenat

libnabo is a fast K Nearest Neighbour library for low-dimensional spaces. It provides a clean, legacy-free, scalar-type–agnostic API thanks to C++ templates. Its current CPU implementation is strongly inspired by ANN, but with more compact data types. On the average, libnabo is 5% to 20% faster than ANN.

libnabo depends on Eigen, a modern C++ matrix and linear-algebra library. libnabo works with either version 2 or 3 of Eigen. libnabo also optionally depends on Boost, a C++ general library, for Python bindings.

libnabo was developed by Stéphane Magnenat as part of his work at ASL-ETH and is now maintained by Simon Lynen.

If you are interested in a pure-Rust version, check that repository out.

Download

Ubuntu builds are available on my PPA at: https://launchpad.net/~stephane.magnenat They provide a package with the shared library, another with the development headers and a third with the documentation.

The source code is available from github, you can clone the git tree by doing:

git clone git://github.com/ethz-asl/libnabo.git

Compilation

libnabo uses CMake as build system. The complete compilation process depends on the system you are using (Linux, Mac OS X or Windows). You will find a nice introductory tutorial in this video.

Prerequisites

If your operating system does not provide it, you must get Eigen, and Boost if you want to build the Python bindings. Eigen only needs to be downloaded and extracted.

Compilation options

libnabo provides the following compilation options, available through CMake:

  • SHARED_LIBS (boolean, default: false): if true, build a shared library, otherwise build a static library

You can specify them with a command-line tool, ccmake, or with a graphical tool, cmake-gui. Please read the CMake documentation for more information.

Quick compilation and installation under Unix

Under Unix, assuming that Eigen and Boost are installed system-wide, you can compile (with optimisation and debug information) and install libnabo in /usr/local with the following commands run in the top-level directory of libnabo's sources:

SRC_DIR=`pwd`
BUILD_DIR=${SRC_DIR}/build
mkdir -p ${BUILD_DIR} && cd ${BUILD_DIR}
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo ${SRC_DIR}
# if Eigen or Boost are not available system-wide, run at that point:
#   cmake-gui .
# cmake-gui allows you to tell the location of Eigen or Boost
make
sudo make install

These lines will compile libnabo in a build sub-directory and therefore keep your source tree clean. Note that you could compile libnabo anywhere you have write access, such as in /tmp/libnabo. This out-of-source build is a nice feature of CMake. If Eigen or Boost are not installed system-wide, you might have to tell CMake where to find them (using ccmake or cmake-gui).

You can generate the documentation by typing:

make doc

Usage

libnabo is easy to use. For example, assuming that you are working with floats and that you have a point set M and a query point q, you can find the K nearest neighbours of q in M:

#include "nabo/nabo.h"
using namespace Nabo;
using namespace Eigen;
...
NNSearchF* nns = NNSearchF::createKDTreeLinearHeap(M);

const int K = 5;
VectorXi indices(K);
VectorXf dists2(K);

nns->knn(q, indices, dists2, K);

In this example, M is an Eigen matrix (column major, float) and q is an Eigen vector (float). Note that M must stay alive throughout the use of libnabo, otherwise the results of knn are undefined. The results indices and dists2 are Eigen vectors of indices and squared distances refering to the columns of M. See examples/trivial.cpp for a compilable version of this example, and examples/usage.cpp for a slightly more complex example involving multi-point queries.

Running make doc in your build directory will generate a browsable documentation in doc/html. The main page doc/html/index.html contains a detailed overview of the usage of libnabo.

You can find a complete CMake integration example in examples/libnabo-cmake-example to see how to look for, and link against this library.

Python bindings

libnabo includes python bindings that are compiled if Python is available. The resulting module is called pynabo, you can see an example in python/test.py. You can find more information in the docstring-based documentation:

python -c "import pynabo; help(pynabo.NearestNeighbourSearch)"

Building

The Python bindings can be generated for Python 2 or Python 3. To specify the version of the interpreter to use when building the bindings, set the PYTHON_VERSION_MAJOR and PYTHON_VERSION_MINOR variables. For example if you have both Python 2.7 and 3.5 installed, you could ask CMake to generate Python 3 bindings by using the following command.

cmake -DPYTHON_VERSION_MAJOR=3 -DPYTHON_VERSION_MINOR=5 ..

On Debian-based distributions you may also need the -DPYTHON_DEB_INSTALL_TARGET option enabled.

Unit testing

The distribution of libnabo integrates a unit test module, based on CTest. Just type:

make test

...in the build directory to run the tests. Their outputs are available in the Testing directory. These consist of validation and benchmarking tests. If ANN or FLANN are detected when compiling libnabo, make test will also perform comparative benchmarks.

Citing libnabo

If you use libnabo in the academic context, please cite this paper that evaluates its performances in the contex of ICP:

@article{elsebergcomparison,
    title={Comparison of nearest-neighbor-search strategies and implementations for efficient shape registration},
    author={Elseberg, J. and Magnenat, S. and Siegwart, R. and N{\"u}chter, A.},
    journal={Journal of Software Engineering for Robotics (JOSER)},
    pages={2--12},
    volume={3},
    number={1},
    year={2012},
    issn={2035-3928}
}

Bug reporting

Please use github's issue tracker to report bugs.

License

libnabo is released under a permissive BSD license.

CHANGELOG

Changelog for package libnabo

1.0.7 (2019-02-07)

  • Disabled cmake compile tests by default and on compilers that do not support them (#95)
  • Fix Python 2 bindings support in CMake scripts (#90)
  • Port libnabo to c++11 (#89)
  • Remove register keyword in index_heap.h (#88)
  • Fix compilation warning for MSVC (#85)
  • Assert template type for invalid setters (#80)
  • Return numerically maximal index (unsigned) or -1 (signed) for no match case (#79)
  • Add generate step for \${PROJECT_BINARY_DIR}/libnaboConfig.cmake (#76)
  • Removed compiler-specific flags for compilers that do not support them (#74)
  • Added cmake_policy(SET CMP0054 NEW) (#73)
  • Output compiler message with compile test fatal error in cmake (#72)
  • Removed erroneous commas from test/CMakeLists.txt (#71)
  • Removed fatal \",\" suffix from FATAL_ERROR in CMakeLists.txt (#70)
  • Fixed regression concerning installed libnaboConfig.cmake (#65)
  • Fix/relax compiler requirements (#63)
  • Removed hard dependency on the doc target (#62)
  • Install any.hpp (#61)
  • Remove boost::any and boost:format dependencies (#59)
  • Port the python bindings to python3 (#57)
  • Added cmake switch to disable usage of OpenMP (#53)
  • Zero copy for Eigen::Matrix3XT and Eigen::Map<const Eigen::Matrix3XT> (#43)
  • Fix warnings and switch on Wextra (#42)
  • Disallow instantiation with non dynamic matrices (#41)
  • Update README.md
  • Removed all code dealing with libnaboTargets.cmake (#32)
  • Got rid of unused locally defined typedefs (#27)
  • Contributors: David Landry, Hannes Sommer, Simon Lynen, Simon-Pierre Desch

Wiki Tutorials

See ROS Wiki Tutorials for more details.

Source Tutorials

Not currently indexed.

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged libnabo at answers.ros.org

No version for distro kinetic. Known supported distros are highlighted in the buttons above.

libnabo package from libnabo repo

libnabo

Package Summary

Tags No category tags.
Version 1.0.7
License BSD
Build type CMAKE
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/ethz-asl/libnabo.git
VCS Type git
VCS Version master
Last Updated 2023-11-23
Dev Status MAINTAINED
CI status No Continuous Integration
Released RELEASED
Tags No category tags.
Contributing Help Wanted (0)
Good First Issues (0)
Pull Requests to Review (0)

Package Description

libnabo is a fast K Nearest Neighbour library for low-dimensional spaces.

Additional Links

Maintainers

  • Stéphane Magnenat

Authors

  • Stéphane Magnenat

libnabo is a fast K Nearest Neighbour library for low-dimensional spaces. It provides a clean, legacy-free, scalar-type–agnostic API thanks to C++ templates. Its current CPU implementation is strongly inspired by ANN, but with more compact data types. On the average, libnabo is 5% to 20% faster than ANN.

libnabo depends on Eigen, a modern C++ matrix and linear-algebra library. libnabo works with either version 2 or 3 of Eigen. libnabo also optionally depends on Boost, a C++ general library, for Python bindings.

libnabo was developed by Stéphane Magnenat as part of his work at ASL-ETH and is now maintained by Simon Lynen.

If you are interested in a pure-Rust version, check that repository out.

Download

Ubuntu builds are available on my PPA at: https://launchpad.net/~stephane.magnenat They provide a package with the shared library, another with the development headers and a third with the documentation.

The source code is available from github, you can clone the git tree by doing:

git clone git://github.com/ethz-asl/libnabo.git

Compilation

libnabo uses CMake as build system. The complete compilation process depends on the system you are using (Linux, Mac OS X or Windows). You will find a nice introductory tutorial in this video.

Prerequisites

If your operating system does not provide it, you must get Eigen, and Boost if you want to build the Python bindings. Eigen only needs to be downloaded and extracted.

Compilation options

libnabo provides the following compilation options, available through CMake:

  • SHARED_LIBS (boolean, default: false): if true, build a shared library, otherwise build a static library

You can specify them with a command-line tool, ccmake, or with a graphical tool, cmake-gui. Please read the CMake documentation for more information.

Quick compilation and installation under Unix

Under Unix, assuming that Eigen and Boost are installed system-wide, you can compile (with optimisation and debug information) and install libnabo in /usr/local with the following commands run in the top-level directory of libnabo's sources:

SRC_DIR=`pwd`
BUILD_DIR=${SRC_DIR}/build
mkdir -p ${BUILD_DIR} && cd ${BUILD_DIR}
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo ${SRC_DIR}
# if Eigen or Boost are not available system-wide, run at that point:
#   cmake-gui .
# cmake-gui allows you to tell the location of Eigen or Boost
make
sudo make install

These lines will compile libnabo in a build sub-directory and therefore keep your source tree clean. Note that you could compile libnabo anywhere you have write access, such as in /tmp/libnabo. This out-of-source build is a nice feature of CMake. If Eigen or Boost are not installed system-wide, you might have to tell CMake where to find them (using ccmake or cmake-gui).

You can generate the documentation by typing:

make doc

Usage

libnabo is easy to use. For example, assuming that you are working with floats and that you have a point set M and a query point q, you can find the K nearest neighbours of q in M:

#include "nabo/nabo.h"
using namespace Nabo;
using namespace Eigen;
...
NNSearchF* nns = NNSearchF::createKDTreeLinearHeap(M);

const int K = 5;
VectorXi indices(K);
VectorXf dists2(K);

nns->knn(q, indices, dists2, K);

In this example, M is an Eigen matrix (column major, float) and q is an Eigen vector (float). Note that M must stay alive throughout the use of libnabo, otherwise the results of knn are undefined. The results indices and dists2 are Eigen vectors of indices and squared distances refering to the columns of M. See examples/trivial.cpp for a compilable version of this example, and examples/usage.cpp for a slightly more complex example involving multi-point queries.

Running make doc in your build directory will generate a browsable documentation in doc/html. The main page doc/html/index.html contains a detailed overview of the usage of libnabo.

You can find a complete CMake integration example in examples/libnabo-cmake-example to see how to look for, and link against this library.

Python bindings

libnabo includes python bindings that are compiled if Python is available. The resulting module is called pynabo, you can see an example in python/test.py. You can find more information in the docstring-based documentation:

python -c "import pynabo; help(pynabo.NearestNeighbourSearch)"

Building

The Python bindings can be generated for Python 2 or Python 3. To specify the version of the interpreter to use when building the bindings, set the PYTHON_VERSION_MAJOR and PYTHON_VERSION_MINOR variables. For example if you have both Python 2.7 and 3.5 installed, you could ask CMake to generate Python 3 bindings by using the following command.

cmake -DPYTHON_VERSION_MAJOR=3 -DPYTHON_VERSION_MINOR=5 ..

On Debian-based distributions you may also need the -DPYTHON_DEB_INSTALL_TARGET option enabled.

Unit testing

The distribution of libnabo integrates a unit test module, based on CTest. Just type:

make test

...in the build directory to run the tests. Their outputs are available in the Testing directory. These consist of validation and benchmarking tests. If ANN or FLANN are detected when compiling libnabo, make test will also perform comparative benchmarks.

Citing libnabo

If you use libnabo in the academic context, please cite this paper that evaluates its performances in the contex of ICP:

@article{elsebergcomparison,
    title={Comparison of nearest-neighbor-search strategies and implementations for efficient shape registration},
    author={Elseberg, J. and Magnenat, S. and Siegwart, R. and N{\"u}chter, A.},
    journal={Journal of Software Engineering for Robotics (JOSER)},
    pages={2--12},
    volume={3},
    number={1},
    year={2012},
    issn={2035-3928}
}

Bug reporting

Please use github's issue tracker to report bugs.

License

libnabo is released under a permissive BSD license.

CHANGELOG

Changelog for package libnabo

1.0.7 (2019-02-07)

  • Disabled cmake compile tests by default and on compilers that do not support them (#95)
  • Fix Python 2 bindings support in CMake scripts (#90)
  • Port libnabo to c++11 (#89)
  • Remove register keyword in index_heap.h (#88)
  • Fix compilation warning for MSVC (#85)
  • Assert template type for invalid setters (#80)
  • Return numerically maximal index (unsigned) or -1 (signed) for no match case (#79)
  • Add generate step for \${PROJECT_BINARY_DIR}/libnaboConfig.cmake (#76)
  • Removed compiler-specific flags for compilers that do not support them (#74)
  • Added cmake_policy(SET CMP0054 NEW) (#73)
  • Output compiler message with compile test fatal error in cmake (#72)
  • Removed erroneous commas from test/CMakeLists.txt (#71)
  • Removed fatal \",\" suffix from FATAL_ERROR in CMakeLists.txt (#70)
  • Fixed regression concerning installed libnaboConfig.cmake (#65)
  • Fix/relax compiler requirements (#63)
  • Removed hard dependency on the doc target (#62)
  • Install any.hpp (#61)
  • Remove boost::any and boost:format dependencies (#59)
  • Port the python bindings to python3 (#57)
  • Added cmake switch to disable usage of OpenMP (#53)
  • Zero copy for Eigen::Matrix3XT and Eigen::Map<const Eigen::Matrix3XT> (#43)
  • Fix warnings and switch on Wextra (#42)
  • Disallow instantiation with non dynamic matrices (#41)
  • Update README.md
  • Removed all code dealing with libnaboTargets.cmake (#32)
  • Got rid of unused locally defined typedefs (#27)
  • Contributors: David Landry, Hannes Sommer, Simon Lynen, Simon-Pierre Desch

Wiki Tutorials

See ROS Wiki Tutorials for more details.

Source Tutorials

Not currently indexed.

Package Dependencies

Deps Name
1 catkin

System Dependencies

Dependant Packages

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged libnabo at answers.ros.org