Migrate Python bindings from SWIG to nanobind

This commit is contained in:
2026-03-11 21:56:30 +08:00
parent 0ec6a85921
commit d7769794fb
20 changed files with 997 additions and 243 deletions
+4 -1
View File
@@ -94,7 +94,10 @@ Tested with a _Jetson AGX Orin Developer Kit_ module.
- Build _rpt_ package inside container:
```bash
cd /RapidPoseTriangulation/swig/ && make all && cd ../tests/ && python3 test_interface.py && cd ..
cd /RapidPoseTriangulation/
uv sync --group dev
uv run pytest tests/test_interface.py
uv build
cd /RapidPoseTriangulation/scripts/ && \
g++ -std=c++2a -fPIC -O3 -march=native -Wall -Werror -flto=auto \
+2 -2
View File
@@ -12,10 +12,10 @@ RUN apt-get update && apt-get install -y --no-install-recommends libatlas-base-d
# Show matplotlib images
RUN apt-get update && apt-get install -y --no-install-recommends python3-tk
# Install swig and later dependencies
# Install build dependencies
RUN apt-get update && apt-get install -y --no-install-recommends build-essential
RUN apt-get update && apt-get install -y --no-install-recommends swig
RUN apt-get update && apt-get install -y --no-install-recommends libopencv-dev
RUN pip3 install --no-cache-dir uv
RUN pip3 install --no-cache-dir scipy
COPY ./skelda/ /skelda/