Skip to content

cars_settings: one settings: editor over nav.reach_tol, nav.vehicle and nav_plant - #1389

Merged
transfix merged 1 commit into
masterfrom
feat/cars-settings-widget
Nov 20, 2026
Merged

transfix merged 1 commit into
masterfrom
feat/cars-settings-widget

Conversation

@transfix

@transfix transfix commented Nov 20, 2026 •

Copy link
Copy Markdown
Owner

The Settings window in pycvc_gl.cars (cars_settings in bindings/pycvc/pymod_gl/cars_panels.ari) is now one settings: editor from #1372. Before, it had 12 hand-made sliders, each with its own lo/hi/fmt/tooltip.

On master. It was opened stacked on #1372. After #1372 squash-merged (3cdf2d3), it was rebased onto master as one commit and pushed, so CI/CD runs here.

The unit

- type: settings
  id: "{id}_keys"
  root: [nav.reach_tol, nav.vehicle, nav_plant]
  filter: ["-nav_plant.vehicle", "-nav_plant.settings.", "-nav_plant.available"]
  readouts: false
  search: true
  groups:
    - nav.vehicle: {title: Vehicle, help: "...", open: true}
    - nav_plant: {title: Plant, help: "...", open: true}

What stays the same:

  • the args (title, id);
  • size: [360, 330];
  • the "applied on the next tick" line.

cars.ari and nav_lab_arms.ari include it as before.

Which keys: more than the 12

It lists every knob under the three roots. Each one's slider, unit, range, tooltip and reset come from libcvc's descriptions: sim_world_binding.cpp's kVehicleKeys and reach_tol, and nav_plant.cpp's kPlantKeys. On a Jolt Humvee that is 33 keys:

  • nav.reach_tol;
  • the 21 nav.vehicle knobs: the old 9, plus allow_reverse, body_gain, body_rr, mass, mu_lookahead, mu_probes, nsub, risk_lookahead, risk_onset, risk_probes, risk_vmin, track_width;
  • 11 nav_plant knobs: latency, brake_margin, drift_nsub, plan.* (4) and modulation.* (4).

Left out:

  • read-outs (readouts: false);
  • the plant's build keys (settings.*, available): with no range they would show as editable text fields, and they don't apply on the next tick;
  • nav_plant.vehicle, which Run's Vehicle combo already sets.

Only a plant describes its knobs (kPlantKeys), so with nav's bicycle (kinematic) the Plant group isn't there. The old panel showed latency and brake-margin sliders that did nothing with nav's bicycle.

Listing everything keeps the risk governor's own settings beside its checkbox, and keeps the plant's planning margins and modulation in reach. The cost:

  • the list is longer: the window scrolls, or the search box narrows it;
  • it is in name order (the widget's), so vmax is no longer first.

A widget rule this runs into (follow-up for #1372's widget, not changed here)

Any filter:, even one that only excludes, sets spec.narrowed (settings_emit.cpp). ImGui then calls SetNextItemOpen(true, ImGuiCond_Always) on every header (settings_imgui.cpp). So every group here, the nested plan and modulation too, stays open and can't be collapsed. That matches ARIADNE.md §4 ("while a search or a filter narrows the list, every group is drawn open"). It would be better if only a search, or a pattern that includes keys, counted as narrowing. Then open: here would decide which groups start open.

Checked (local Linux Release build: pycvc + pycvc_gl, Jolt; re-run on master after the rebase)

  • cars.ari and nav_lab_arms.ari load through the pycvc_gl host (offscreen) with no warnings.
  • python -m pycvc_gl.cars --offscreen --frames 60 --world flat --png ... shows the Settings window with:
    • the text line, the search box and reach_tol;
    • the Vehicle group (sliders with units, checkboxes for allow_reverse / risk_governor);
    • the Plant group with modulation and plan under it.
  • ctest pycvc_gl_cars (67 checks), pycvc_gl_host_cars (15) and pycvc_gl_nav_lab (33) pass. CI does not build pycvc.
  • docs/CARS.md now describes the window as the editor.

Base automatically changed from feat/ariadne-settings-editor to master November 20, 2026 07:22
…nd nav_plant

pycvc_gl.cars' Settings window had 12 hand-made sliders, each with its own range, format and
tooltip. Now it holds one settings: editor that takes every key's slider, unit, range, tooltip
and reset from libcvc's descriptions of it (sim_world_binding.cpp's kVehicleKeys and reach_tol,
nav_plant.cpp's kPlantKeys).

It lists every knob under its roots, not just the 12: the 21 nav.vehicle knobs, reach_tol and,
on a plant other than nav's bicycle, nav_plant's latency, brake_margin, drift_nsub, plan.* and
modulation.*. Left out:
- read-outs;
- the plant's build keys (settings.*, available);
- nav_plant.vehicle, which Run's Vehicle combo sets.
It also has a search box. The unit keeps its args (title, id), its 360x330 window and the
"applied on the next tick" line, so cars.ari and nav_lab_arms.ari include it unchanged.
@transfix
transfix force-pushed the feat/cars-settings-widget branch from 217cec2 to d00e56d Compare November 20, 2026 07:42
@transfix
transfix enabled auto-merge (squash) November 20, 2026 19:44
@transfix
transfix merged commit bb689bc into master Nov 20, 2026
30 checks passed
@transfix
transfix deleted the feat/cars-settings-widget branch November 20, 2026 20:15
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