Skip to content

Test farm: replay a generated walk, bus and train track - #1168

Merged
davecraig merged 1 commit into
Scottish-Tech-Army:mainfrom
davecraig:main
Oct 16, 2026
Merged

davecraig merged 1 commit into
Scottish-Tech-Army:mainfrom
davecraig:main

Conversation

@davecraig

Copy link
Copy Markdown
Contributor

FarmTrackGenerator (a JVM test, skipped unless -PfarmTrack is given) routes a day out around central Glasgow over the extract's own networks:

  • walks over roads and paths to bus stops and stations
  • buses over main roads, stopping at the stops they pass
  • trains along railway lines that never turn more than 40 degrees, stopping at each station It samples at 1 Hz with real speeds, waits and stops. The same seed gives the same track. test-farm/tracks/glasgow-multimodal.gpx (seed 1, six journeys, about 3 hours) is now the farm's default track.

The farm replays tracks marked farm-timed-replay by their timestamps, taking speed from the motion, and plays them backwards at the end. Real recordings, which also carry timestamps, are still walked at replay_speed_mps.

TileGrid now builds any odd grid size; the generator loads 9 x 9 tiles to route across the city. The app still uses 2 x 2 and 3 x 3.

Claude-Session: https://claude.ai/code/session_01Ex6Fdp5ftuhE1ZEyhZb7WQ

FarmTrackGenerator (a JVM test, skipped unless -PfarmTrack is given) routes
a day out around central Glasgow over the extract's own networks:
- walks over roads and paths to bus stops and stations
- buses over main roads, stopping at the stops they pass
- trains along railway lines that never turn more than 40 degrees,
  stopping at each station
It samples at 1 Hz with real speeds, waits and stops. The same seed gives
the same track. test-farm/tracks/glasgow-multimodal.gpx (seed 1, six
journeys, about 3 hours) is now the farm's default track.

The farm replays tracks marked farm-timed-replay by their timestamps,
taking speed from the motion, and plays them backwards at the end. Real
recordings, which also carry timestamps, are still walked at
replay_speed_mps.

TileGrid now builds any odd grid size; the generator loads 9 x 9 tiles to
route across the city. The app still uses 2 x 2 and 3 x 3.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ex6Fdp5ftuhE1ZEyhZb7WQ
@davecraig
davecraig deployed to development October 16, 2026 11:14 — with GitHub Actions Active
@davecraig
davecraig deployed to development October 16, 2026 11:14 — with GitHub Actions Active
@davecraig
davecraig deployed to development October 16, 2026 11:14 — with GitHub Actions Active
@davecraig
davecraig deployed to development October 16, 2026 11:14 — with GitHub Actions Active
@davecraig
davecraig merged commit 0f65050 into Scottish-Tech-Army:main Oct 16, 2026
5 checks passed

This branch was successfully deployed

1 active deployment
development — 9296cd16 Deployed Oct 16, 2026 by davecraig via Run instrumentation tests #1610
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