Skip to main content

A simple python encapsulation of Go-ICP.

Project description

py_simple_go_icp_interface

A simple python encapsulation of Go-ICP.

[!NOTE]

This project only provides a simple Python interface encapsulation for the C++ project.

For the core algorithm, please refer to: https://github.com/yangjiaolong/Go-ICP

Cython implementation, see: https://github.com/aalavandhaann/go-icp_cython

Installation

[!IMPORTANT]

Make sure you have available g++ (or mingw for windows) on your PATH, Go-ICP program will be compiled at runtime.

pip install py_simple_go_icp_interface

Usage

from py_simple_go_icp_interface import go_icp_match, apply_transform
import numpy as np

reference_points = np.array([
    [1, 0, 0],
    [0, 1, 0],
    [0, 0, 1],
    [0, 0, 0]
])
moving_points = np.array([
    [ 0.78947212, -1.62329061, 1.90248941],
    [ 0.20479484, -0.90372354, 1.52782194],
    [ 0.67225195, -1.24123766, 2.81916545],
    [ 1.59222483, -1.04341237, 1.7634595 ]
])

# get rotation and transform matrix
r_mat, t_vec = go_icp_match(reference_points, moving_points, random_seed=42)

# move point set
moved_points = apply_transform(moving_points, r_mat, t_vec)

# output moved point set
print(moved_points)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

py_simple_go_icp_interface-0.1.4.tar.gz (298.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

py_simple_go_icp_interface-0.1.4-py3-none-any.whl (308.5 kB view details)

Uploaded Python 3

File details

Details for the file py_simple_go_icp_interface-0.1.4.tar.gz.

File metadata

  • Download URL: py_simple_go_icp_interface-0.1.4.tar.gz
  • Upload date:
  • Size: 298.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.2 CPython/3.13.12 Windows/11

File hashes

Hashes for py_simple_go_icp_interface-0.1.4.tar.gz
Algorithm Hash digest
SHA256 3206ee44468485d58a40cbd95671a00b5b51bd9dd5f44ac8863a2ecf3dedee5f
MD5 5f9e9c54d30c8c4ef661d522975dbcca
BLAKE2b-256 a83759396f2b17dc49214c628445373f0ece3155cd1a382921aa8060e9a64bfc

See more details on using hashes here.

File details

Details for the file py_simple_go_icp_interface-0.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for py_simple_go_icp_interface-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 c341ebd1c807abb17ca3e18df10138a3bf8e9169d2bd408e40c06637267f5f17
MD5 f8e40476ad89f82e4622384d5c67ad37
BLAKE2b-256 4a673a57620ab951de173bc4f77a31c1f1e2d4804c6fb6e4ab5d18f0cbc648cb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page