scripts: paths from the environment
Browse files
scripts/test_probe_frame_and_collision.py
CHANGED
|
@@ -35,6 +35,8 @@ from pathlib import Path
|
|
| 35 |
sys.path.insert(0, str(Path(__file__).resolve().parents[1]))
|
| 36 |
sys.path.insert(0, str(Path(__file__).resolve().parents[2]))
|
| 37 |
|
|
|
|
|
|
|
| 38 |
import numpy as np # noqa: E402
|
| 39 |
|
| 40 |
RESULTS: list[tuple[bool, str, str]] = []
|
|
@@ -104,7 +106,7 @@ def main() -> int:
|
|
| 104 |
if ok else "projection failed")
|
| 105 |
|
| 106 |
# 3 / 4 — one sensor moves, chosen at random, and no collision
|
| 107 |
-
P = ("
|
| 108 |
"2026-05-11/episode_003.parquet")
|
| 109 |
t = pq.read_table(P, columns=["sensor_left_pose", "sensor_right_pose"]).to_pydict()
|
| 110 |
poses = {s: np.asarray([x for x in t[f"sensor_{s}_pose"]], float)
|
|
|
|
| 35 |
sys.path.insert(0, str(Path(__file__).resolve().parents[1]))
|
| 36 |
sys.path.insert(0, str(Path(__file__).resolve().parents[2]))
|
| 37 |
|
| 38 |
+
from react_paths import force_meta # noqa: E402
|
| 39 |
+
|
| 40 |
import numpy as np # noqa: E402
|
| 41 |
|
| 42 |
RESULTS: list[tuple[bool, str, str]] = []
|
|
|
|
| 106 |
if ok else "projection failed")
|
| 107 |
|
| 108 |
# 3 / 4 — one sensor moves, chosen at random, and no collision
|
| 109 |
+
P = (str(force_meta("motherboard"))+"/"
|
| 110 |
"2026-05-11/episode_003.parquet")
|
| 111 |
t = pq.read_table(P, columns=["sensor_left_pose", "sensor_right_pose"]).to_pydict()
|
| 112 |
poses = {s: np.asarray([x for x in t[f"sensor_{s}_pose"]], float)
|