Repository navigation
cars_settings: one settings: editor over nav.reach_tol, nav.vehicle and nav_plant - #1389
Merged
Merged
Conversation
…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
force-pushed
the
feat/cars-settings-widget
branch
from
November 20, 2026 07:42
217cec2 to
d00e56d
Compare
transfix
enabled auto-merge (squash)
November 20, 2026 19:44
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Settings window in pycvc_gl.cars (
cars_settingsinbindings/pycvc/pymod_gl/cars_panels.ari) is now onesettings:editor from #1372. Before, it had 12 hand-made sliders, each with its ownlo/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
What stays the same:
title,id);size: [360, 330];cars.ariandnav_lab_arms.ariinclude 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'skVehicleKeysandreach_tol, andnav_plant.cpp'skPlantKeys. On a Jolt Humvee that is 33 keys:nav.reach_tol;nav.vehicleknobs: the old 9, plusallow_reverse,body_gain,body_rr,mass,mu_lookahead,mu_probes,nsub,risk_lookahead,risk_onset,risk_probes,risk_vmin,track_width;nav_plantknobs:latency,brake_margin,drift_nsub,plan.*(4) andmodulation.*(4).Left out:
readouts: false);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:
vmaxis 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, setsspec.narrowed(settings_emit.cpp). ImGui then callsSetNextItemOpen(true, ImGuiCond_Always)on every header (settings_imgui.cpp). So every group here, the nestedplanandmodulationtoo, 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. Thenopen:here would decide which groups start open.Checked (local Linux Release build: pycvc + pycvc_gl, Jolt; re-run on master after the rebase)
cars.ariandnav_lab_arms.ariload 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:reach_tol;allow_reverse/risk_governor);modulationandplanunder it.pycvc_gl_cars(67 checks),pycvc_gl_host_cars(15) andpycvc_gl_nav_lab(33) pass. CI does not build pycvc.