Skip to content

fix: stop the supervisor from crashing when it saves the best lap - #96

Merged
carmenmenendezda merged 1 commit into
mainfrom
fix/arussim/supervisor_laptimes_path
Oct 13, 2026
Merged

carmenmenendezda merged 1 commit into
mainfrom
fix/arussim/supervisor_laptimes_path

Conversation

@RubenValdayo

Copy link
Copy Markdown
Contributor

The supervisor looked for the laptimes folder three levels above its executable. That only works with colcon --symlink-install, where the executable resolves to build/arussim. Without it, the executable is in install/arussim/lib/arussim, the CSV path did not exist, and the supervisor threw an uncaught exception after the first lap. No more lap times were published, so the lap counter of the interface stayed at 1.

find_laptimes_dir now walks up from the executable until it finds src/ARUSSim/src/arussim/laptimes, so it works with both build layouts. Failing to read or write the best lap file only logs a warning and lap timing goes on.

The supervisor looked for the laptimes folder three levels above its
executable. That only works with colcon --symlink-install, where the
executable resolves to build/arussim. Without it, the executable is in
install/arussim/lib/arussim, the CSV path did not exist, and the
supervisor threw an uncaught exception after the first lap. No more lap
times were published, so the lap counter of the interface stayed at 1.

find_laptimes_dir now walks up from the executable until it finds
src/ARUSSim/src/arussim/laptimes, so it works with both build layouts.
Failing to read or write the best lap file only logs a warning and lap
timing goes on.
@carmenmenendezda
carmenmenendezda merged commit e52ac41 into main Oct 13, 2026
2 checks passed
@carmenmenendezda
carmenmenendezda deleted the fix/arussim/supervisor_laptimes_path branch October 13, 2026 17:30
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.

2 participants