Skip to content

cvcpkg: columnize the pycvc family per interpreter (pycvc-cp311/312/313) - #163

Merged
transfix merged 2 commits into
masterfrom
feat/pycvc-cpxx-columns
Aug 11, 2026
Merged

transfix merged 2 commits into
masterfrom
feat/pycvc-cpxx-columns

Conversation

@transfix

@transfix transfix commented Aug 2, 2026

Copy link
Copy Markdown
Owner

Follows transfix/libcvc-deps#425 (every python package is a per-interpreter column recipe). pycvc/pycvc-gl are renamed to their explicit -cp311 columns (superseding the published bare names) and extended with cp312/cp313 columns built against python312/python313 + the matching numpy/vtk-python columns; CUDA peers stay cp311-only (pycvc-cp311-cuda, pycvc-gl-cp311-cuda, provides-slot exclusion vs their CPU peers); no cp313t (SWIG modules are not free-threaded-safe). publish-cvcpkg.yml builds the linux columns via an interpreter matrix; build scripts are parameterized off CVC_PYTHON_INTERPRETER so future columns are one recipe copy.

Sequencing: merge after libcvc-deps#425 is merged and its noarch column wave is published (the cp312/cp313 jobs provision numpy-cp312/313 + vtk-python-cp312/313 from the catalog — already published — plus the renamed build tools once wave 1 lands). Consumers (GRL-SNAM, volrover3) have matching PRs pinning the new names.

…/312/313)

The libcvc-deps python matrix change makes every python package a
per-interpreter column recipe. pycvc/pycvc-gl follow: renamed to their
explicit -cp311 columns (superseding the published bare names) and
extended with cp312/cp313 columns built against python312/python313 +
matching numpy/vtk-python columns. CUDA peers stay cp311-only
(pycvc-cp311-cuda / pycvc-gl-cp311-cuda); no cp313t (SWIG modules are
not free-threaded-safe). publish-cvcpkg.yml builds the linux columns
via an interpreter matrix.
…umns

# Conflicts:
#	.github/workflows/publish-cvcpkg.yml
#	cvcpkg/recipes/pycvc-gl-cuda/recipe.yaml
@transfix
transfix merged commit 6197965 into master Aug 11, 2026
7 checks passed
@transfix
transfix deleted the feat/pycvc-cpxx-columns branch October 29, 2026 20:52
transfix added a commit that referenced this pull request Nov 9, 2026
* nav: the belief-material controller's contract and inputs (C1)

C1 of docs/roadmap/NAV-BELIEF-MATERIAL-CONTROLLER-ROADMAP.md: the C++ twin of
GRL-SNAM's BeliefMaterialController, up to the model inputs. Joe settled
decisions E1-E10 on the recommended column ("Yes, start C1"), and the spec now
records them as settled.

inc/cvc/nav/belief_material_controller.h (built with -ffp-contract=off):
- belief_material_contract: the .cvcnm meta record (grl_snam.belief_material).
  from_meta parses it with a small JSON reader that behaves like Python's
  json.loads: NaN/Infinity, last duplicate key wins, locale-free numbers. It
  accepts only JSON numbers and a string frame (E6). to_meta writes
  byte-for-byte what Python's json.dumps(sort_keys=True) writes, using Python's
  float repr.
- belief_header_mismatches: the .cvcnm v2 belief block against the belief and
  patch settings, within 1e-6 (E7).
- belief_runtime_mismatches: a material_config against the contract.
- material_config_for: the config a contract implies on a grid. The gate
  horizon is Python's 25 m rounded half-even to cells; libcvc's 12-cell
  default would look 180 m ahead on the Austin 15 m grid.
- belief_material_controller: a loaded net that passed those checks, with
  check_runtime.
- build_belief_material_controller_inputs: robot-relative float32 tokens in
  numpy's operation order, and the 3-channel patch centred on the float32
  position.
- visible_obstacles: the twin of scan_visible_geometry. Equal distances are
  kept in row-major order (E5).

The golden (G1-G5) is written by GRL-SNAM
(grl_snam.tools.belief_material_controller_golden, CVC-Lab/GRL-SNAM#164, on
#163's E5/E6 changes) and committed in src/cvc/tests/data.
nav_belief_material_controller_test reproduces it bit for bit; the goal
token's dist may differ by 1 ulp because numpy's norm can go through BLAS. The
planes the tokens are cropped from hash to belief_material_golden.json's
values, so they are libcvc's own belief planes.

pycvc gains nav_belief_material_contract, nav_belief_material_contract_to_meta,
nav_belief_material_check_cvcnm, nav_visible_obstacles and
nav_belief_material_controller_inputs; refusals raise ValueError.
test_pycvc_nav_belief_controller.py checks them against the same golden.

* nav: keep a JSON object's keys and values in parallel vectors

clang-tsan's build (clang with libstdc++ 13) refused json_value's
std::vector<std::pair<std::string, json_value>>: the pair needs json_value
complete inside its own definition. A vector of an incomplete type is fine
in C++17, so the object now holds obj_keys and obj_vals side by side.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant