Skip to main content

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)

Metadata

Release files for py-simple-go-icp-interface 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for py-simple-go-icp-interface 0.1.4
File Size Uploaded
py_simple_go_icp_interface-0.1.4.tar.gz 298.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for py-simple-go-icp-interface 0.1.4
File Interpreter ABI Platform
py_simple_go_icp_interface-0.1.4-py3-none-any.whl Python 3 none any Details

Total release size: 606.5 kB

Release files / py_simple_go_icp_interface-0.1.4.tar.gz

Download URL py_simple_go_icp_interface-0.1.4.tar.gz
Size 298.0 kB
Tags Source
SHA-256 checksum
How to use checksums
3206ee44468485d58a40cbd95671a00b5b51bd9dd5f44ac8863a2ecf3dedee5f
BLAKE2b-256 checksum
How to use checksums
a83759396f2b17dc49214c628445373f0ece3155cd1a382921aa8060e9a64bfc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.3.2 CPython/3.13.12 Windows/11

Release files / py_simple_go_icp_interface-0.1.4-py3-none-any.whl

Download URL py_simple_go_icp_interface-0.1.4-py3-none-any.whl
Size 308.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c341ebd1c807abb17ca3e18df10138a3bf8e9169d2bd408e40c06637267f5f17
BLAKE2b-256 checksum
How to use checksums
4a673a57620ab951de173bc4f77a31c1f1e2d4804c6fb6e4ab5d18f0cbc648cb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.3.2 CPython/3.13.12 Windows/11

Release history Release notifications | RSS feed

This release

0.1.4 This release

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page