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.3.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.3-py3-none-any.whl (308.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: py_simple_go_icp_interface-0.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 b0ae9099836a946850fd0528ca9f10f4a2c216a51695ea1cba92690cdb36b6c9
MD5 88ffc51f8f0d89454dafa2a87ae5d12d
BLAKE2b-256 4099fe614f542b0baf9b7e845ce71f581a368ef8e0223acb6f8237c161904c76

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for py_simple_go_icp_interface-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 7737784ffbdf3f87dff129d34497054c91af637fe6a15ec37c8d50644afac4fb
MD5 06df5a12efeff9ab131903d9ec268f13
BLAKE2b-256 f28889ee2af1d5a9558d1676f1e5cec23c01eea71c7b807f00af626bce368b29

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