graft-core 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- graft_core-0.1.0/Cargo.lock +180 -0
- graft_core-0.1.0/Cargo.toml +27 -0
- graft_core-0.1.0/PKG-INFO +22 -0
- graft_core-0.1.0/README.md +9 -0
- graft_core-0.1.0/pyproject.toml +21 -0
- graft_core-0.1.0/src/bin/graft_watchdog.rs +454 -0
- graft_core-0.1.0/src/kernel.rs +608 -0
- graft_core-0.1.0/src/lib.rs +220 -0
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
# This file is automatically @generated by Cargo.
|
|
2
|
+
# It is not intended for manual editing.
|
|
3
|
+
version = 4
|
|
4
|
+
|
|
5
|
+
[[package]]
|
|
6
|
+
name = "autocfg"
|
|
7
|
+
version = "1.5.1"
|
|
8
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
9
|
+
checksum = "f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53"
|
|
10
|
+
|
|
11
|
+
[[package]]
|
|
12
|
+
name = "cfg-if"
|
|
13
|
+
version = "1.0.5"
|
|
14
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
15
|
+
checksum = "4e7648175b45a9a48536d676f68d918270699102aa8dab5496df06904c914600"
|
|
16
|
+
|
|
17
|
+
[[package]]
|
|
18
|
+
name = "graft-core"
|
|
19
|
+
version = "0.1.0"
|
|
20
|
+
dependencies = [
|
|
21
|
+
"pyo3",
|
|
22
|
+
]
|
|
23
|
+
|
|
24
|
+
[[package]]
|
|
25
|
+
name = "heck"
|
|
26
|
+
version = "0.5.0"
|
|
27
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
28
|
+
checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
|
|
29
|
+
|
|
30
|
+
[[package]]
|
|
31
|
+
name = "indoc"
|
|
32
|
+
version = "2.0.8"
|
|
33
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
34
|
+
checksum = "a37b2691796cffeb8a8cd305ac66e65841559f147f4e63231d0eafa4db5384d1"
|
|
35
|
+
dependencies = [
|
|
36
|
+
"rustversion",
|
|
37
|
+
]
|
|
38
|
+
|
|
39
|
+
[[package]]
|
|
40
|
+
name = "libc"
|
|
41
|
+
version = "0.2.191"
|
|
42
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
43
|
+
checksum = "65cd87c9a6d60536580b316ad985726104730a5151c99845f2490428ef91240a"
|
|
44
|
+
|
|
45
|
+
[[package]]
|
|
46
|
+
name = "memoffset"
|
|
47
|
+
version = "0.9.1"
|
|
48
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
49
|
+
checksum = "488016bfae457b036d996092f6cb448677611ce4449e970ceaf42695203f218a"
|
|
50
|
+
dependencies = [
|
|
51
|
+
"autocfg",
|
|
52
|
+
]
|
|
53
|
+
|
|
54
|
+
[[package]]
|
|
55
|
+
name = "once_cell"
|
|
56
|
+
version = "1.21.4"
|
|
57
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
58
|
+
checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"
|
|
59
|
+
|
|
60
|
+
[[package]]
|
|
61
|
+
name = "portable-atomic"
|
|
62
|
+
version = "1.15.0"
|
|
63
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
64
|
+
checksum = "05c8b63e8d9609db387f0324918f81d68fe27748f084ef092fb35954d0539a85"
|
|
65
|
+
|
|
66
|
+
[[package]]
|
|
67
|
+
name = "proc-macro2"
|
|
68
|
+
version = "1.0.107"
|
|
69
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
70
|
+
checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9"
|
|
71
|
+
dependencies = [
|
|
72
|
+
"unicode-ident",
|
|
73
|
+
]
|
|
74
|
+
|
|
75
|
+
[[package]]
|
|
76
|
+
name = "pyo3"
|
|
77
|
+
version = "0.23.5"
|
|
78
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
79
|
+
checksum = "7778bffd85cf38175ac1f545509665d0b9b92a198ca7941f131f85f7a4f9a872"
|
|
80
|
+
dependencies = [
|
|
81
|
+
"cfg-if",
|
|
82
|
+
"indoc",
|
|
83
|
+
"libc",
|
|
84
|
+
"memoffset",
|
|
85
|
+
"once_cell",
|
|
86
|
+
"portable-atomic",
|
|
87
|
+
"pyo3-build-config",
|
|
88
|
+
"pyo3-ffi",
|
|
89
|
+
"pyo3-macros",
|
|
90
|
+
"unindent",
|
|
91
|
+
]
|
|
92
|
+
|
|
93
|
+
[[package]]
|
|
94
|
+
name = "pyo3-build-config"
|
|
95
|
+
version = "0.23.5"
|
|
96
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
97
|
+
checksum = "94f6cbe86ef3bf18998d9df6e0f3fc1050a8c5efa409bf712e661a4366e010fb"
|
|
98
|
+
dependencies = [
|
|
99
|
+
"once_cell",
|
|
100
|
+
"target-lexicon",
|
|
101
|
+
]
|
|
102
|
+
|
|
103
|
+
[[package]]
|
|
104
|
+
name = "pyo3-ffi"
|
|
105
|
+
version = "0.23.5"
|
|
106
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
107
|
+
checksum = "e9f1b4c431c0bb1c8fb0a338709859eed0d030ff6daa34368d3b152a63dfdd8d"
|
|
108
|
+
dependencies = [
|
|
109
|
+
"libc",
|
|
110
|
+
"pyo3-build-config",
|
|
111
|
+
]
|
|
112
|
+
|
|
113
|
+
[[package]]
|
|
114
|
+
name = "pyo3-macros"
|
|
115
|
+
version = "0.23.5"
|
|
116
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
117
|
+
checksum = "fbc2201328f63c4710f68abdf653c89d8dbc2858b88c5d88b0ff38a75288a9da"
|
|
118
|
+
dependencies = [
|
|
119
|
+
"proc-macro2",
|
|
120
|
+
"pyo3-macros-backend",
|
|
121
|
+
"quote",
|
|
122
|
+
"syn",
|
|
123
|
+
]
|
|
124
|
+
|
|
125
|
+
[[package]]
|
|
126
|
+
name = "pyo3-macros-backend"
|
|
127
|
+
version = "0.23.5"
|
|
128
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
129
|
+
checksum = "fca6726ad0f3da9c9de093d6f116a93c1a38e417ed73bf138472cf4064f72028"
|
|
130
|
+
dependencies = [
|
|
131
|
+
"heck",
|
|
132
|
+
"proc-macro2",
|
|
133
|
+
"pyo3-build-config",
|
|
134
|
+
"quote",
|
|
135
|
+
"syn",
|
|
136
|
+
]
|
|
137
|
+
|
|
138
|
+
[[package]]
|
|
139
|
+
name = "quote"
|
|
140
|
+
version = "1.0.47"
|
|
141
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
142
|
+
checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001"
|
|
143
|
+
dependencies = [
|
|
144
|
+
"proc-macro2",
|
|
145
|
+
]
|
|
146
|
+
|
|
147
|
+
[[package]]
|
|
148
|
+
name = "rustversion"
|
|
149
|
+
version = "1.0.23"
|
|
150
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
151
|
+
checksum = "cf54715a573b99ac80df0bc206da022bcd442c974952c7b9720069370852e21f"
|
|
152
|
+
|
|
153
|
+
[[package]]
|
|
154
|
+
name = "syn"
|
|
155
|
+
version = "2.0.119"
|
|
156
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
157
|
+
checksum = "872831b642d1a07999a962a351ed35b955ea2cfc8f3862091e2a240a84f17297"
|
|
158
|
+
dependencies = [
|
|
159
|
+
"proc-macro2",
|
|
160
|
+
"quote",
|
|
161
|
+
"unicode-ident",
|
|
162
|
+
]
|
|
163
|
+
|
|
164
|
+
[[package]]
|
|
165
|
+
name = "target-lexicon"
|
|
166
|
+
version = "0.12.16"
|
|
167
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
168
|
+
checksum = "61c41af27dd6d1e27b1b16b489db798443478cef1f06a660c96db617ba5de3b1"
|
|
169
|
+
|
|
170
|
+
[[package]]
|
|
171
|
+
name = "unicode-ident"
|
|
172
|
+
version = "1.0.27"
|
|
173
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
174
|
+
checksum = "a2c754d6c33795a1c324727428e5a7dedb5b06195f9890bdbcba760d3e246563"
|
|
175
|
+
|
|
176
|
+
[[package]]
|
|
177
|
+
name = "unindent"
|
|
178
|
+
version = "0.2.4"
|
|
179
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
180
|
+
checksum = "7264e107f553ccae879d21fbea1d6724ac785e8c3bfc762137959b5802826ef3"
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
[package]
|
|
2
|
+
name = "graft-core"
|
|
3
|
+
version = "0.1.0"
|
|
4
|
+
edition = "2021"
|
|
5
|
+
license = "Apache-2.0"
|
|
6
|
+
description = "GIL-free Rust hot-path kernel for Graft Robotics: Envelope 0.2 signed distance, 30 Hz LiDAR voxel-to-OBJ mesh fusion, swept-path collision gate, and sub-millisecond stop-lane watchdog."
|
|
7
|
+
readme = "README.md"
|
|
8
|
+
|
|
9
|
+
[lib]
|
|
10
|
+
name = "graft_core"
|
|
11
|
+
crate-type = ["cdylib", "rlib"]
|
|
12
|
+
|
|
13
|
+
[[bin]]
|
|
14
|
+
name = "graft-watchdog"
|
|
15
|
+
path = "src/bin/graft_watchdog.rs"
|
|
16
|
+
|
|
17
|
+
[features]
|
|
18
|
+
default = []
|
|
19
|
+
python = ["dep:pyo3"]
|
|
20
|
+
|
|
21
|
+
[dependencies]
|
|
22
|
+
pyo3 = { version = "0.23", features = ["extension-module"], optional = true }
|
|
23
|
+
|
|
24
|
+
[profile.release]
|
|
25
|
+
opt-level = 3
|
|
26
|
+
lto = "thin"
|
|
27
|
+
codegen-units = 1
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: graft-core
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Rust hot-path kernel for Graft Robotics (continuous Kay-Kajiya swept-path slab checks, Envelope 0.2 geometry, and LiDAR voxel-to-OBJ meshing)
|
|
5
|
+
Author-email: Craig Merry <craigm26@gmail.com>
|
|
6
|
+
License: Apache-2.0
|
|
7
|
+
Requires-Python: >=3.10
|
|
8
|
+
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
|
|
9
|
+
Project-URL: Documentation, https://graftrobotics.ai/docs/
|
|
10
|
+
Project-URL: Homepage, https://graftrobotics.ai
|
|
11
|
+
Project-URL: Repository, https://github.com/craigm26/graft-robotics
|
|
12
|
+
|
|
13
|
+
# `graft-core` — Graft Robotics Rust Spatial & Watchdog Kernel
|
|
14
|
+
|
|
15
|
+
GIL-free Rust hot-path spatial kernel (`PyO3`) and monotonic heartbeat watchdog (`graft-watchdog`) for [`robot-gate`](https://pypi.org/project/robot-gate/) and [Graft Robotics](https://graftrobotics.ai).
|
|
16
|
+
|
|
17
|
+
- **Exact Continuous Swept-Path Kernel (`check_swept_path_fast`):** Continuous Kay-Kajiya ray-vs-AABB slab intersection (`1.96 µs/check` on Raspberry Pi 5 ARM64) with strict fail-closed IEEE-754 `NaN`/`Inf` and inverted-box guards.
|
|
18
|
+
- **LAN 3D LiDAR Voxel Mesher (`pointcloud_to_obj_mesh`):** 10,000-point cloud → manifold `.obj` obstacle mesh at `316 Hz` (`3.16 ms p50` on Pi 5).
|
|
19
|
+
- **Monotonic Heartbeat Watchdog (`graft-watchdog`):** Static GIL-free Rust supervisor (`std::time::Instant`, `0.22 ms p50` `/stop` under load, bounded connection pool).
|
|
20
|
+
|
|
21
|
+
> **ISO 13850 Safety Boundary:** `graft-core`, `graft-watchdog`, and `robot-gate` are strictly a deterministic, default-deny software pre-flight boundary and cryptographic audit layer claiming **zero ISO 13849-1 PL/SIL risk-reduction credit**. They are **NOT** a safety-rated ISO 13850 hardware emergency stop and must always be paired alongside certified hardwired E-stops and safety relays.
|
|
22
|
+
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# `graft-core` — Graft Robotics Rust Spatial & Watchdog Kernel
|
|
2
|
+
|
|
3
|
+
GIL-free Rust hot-path spatial kernel (`PyO3`) and monotonic heartbeat watchdog (`graft-watchdog`) for [`robot-gate`](https://pypi.org/project/robot-gate/) and [Graft Robotics](https://graftrobotics.ai).
|
|
4
|
+
|
|
5
|
+
- **Exact Continuous Swept-Path Kernel (`check_swept_path_fast`):** Continuous Kay-Kajiya ray-vs-AABB slab intersection (`1.96 µs/check` on Raspberry Pi 5 ARM64) with strict fail-closed IEEE-754 `NaN`/`Inf` and inverted-box guards.
|
|
6
|
+
- **LAN 3D LiDAR Voxel Mesher (`pointcloud_to_obj_mesh`):** 10,000-point cloud → manifold `.obj` obstacle mesh at `316 Hz` (`3.16 ms p50` on Pi 5).
|
|
7
|
+
- **Monotonic Heartbeat Watchdog (`graft-watchdog`):** Static GIL-free Rust supervisor (`std::time::Instant`, `0.22 ms p50` `/stop` under load, bounded connection pool).
|
|
8
|
+
|
|
9
|
+
> **ISO 13850 Safety Boundary:** `graft-core`, `graft-watchdog`, and `robot-gate` are strictly a deterministic, default-deny software pre-flight boundary and cryptographic audit layer claiming **zero ISO 13849-1 PL/SIL risk-reduction credit**. They are **NOT** a safety-rated ISO 13850 hardware emergency stop and must always be paired alongside certified hardwired E-stops and safety relays.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["maturin>=1.7,<2.0"]
|
|
3
|
+
build-backend = "maturin"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "graft-core"
|
|
7
|
+
version = "0.1.0"
|
|
8
|
+
description = "Rust hot-path kernel for Graft Robotics (continuous Kay-Kajiya swept-path slab checks, Envelope 0.2 geometry, and LiDAR voxel-to-OBJ meshing)"
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
requires-python = ">=3.10"
|
|
11
|
+
license = { text = "Apache-2.0" }
|
|
12
|
+
authors = [{ name = "Craig Merry", email = "craigm26@gmail.com" }]
|
|
13
|
+
|
|
14
|
+
[project.urls]
|
|
15
|
+
Homepage = "https://graftrobotics.ai"
|
|
16
|
+
Documentation = "https://graftrobotics.ai/docs/"
|
|
17
|
+
Repository = "https://github.com/craigm26/graft-robotics"
|
|
18
|
+
|
|
19
|
+
[tool.maturin]
|
|
20
|
+
features = ["python"]
|
|
21
|
+
module-name = "graft_core"
|