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.2.tar.gz (297.4 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.2-py3-none-any.whl (307.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: py_simple_go_icp_interface-0.1.2.tar.gz
  • Upload date:
  • Size: 297.4 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.2.tar.gz
Algorithm Hash digest
SHA256 5c85ac83c2c7b23135f8a186973cb471bbe1ffddf505c5a6593ed8bec2550e50
MD5 16a2e87cb68294f9eacf1e292f55a194
BLAKE2b-256 d6a217c837915f046b3ae9d7c069c62023c4c29b34412e781bd6816e6b53f4f1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for py_simple_go_icp_interface-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 62de72f5aa5a56f508beb47f806fa41f834c46231daec5c56291ca03c97ef8f9
MD5 956633404b96df1a7830d9672e324e27
BLAKE2b-256 85e8b9b708c53c86e5553794c2209c024a9a7a7536a491a06e4466b7d9c5f5ae

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