fix: use live V2X vehicles only in preview

This commit is contained in:
2026-08-24 14:42:31 +08:00
parent ee273c5cd6
commit b7031f145a
10 changed files with 240 additions and 52 deletions

View File

@@ -1,9 +1,10 @@
# Live V2X Cesium Preview
The Cesium preview can overlay live V2X operational data on a compiled native
intersection. This is an optional verification feature; the package manifest,
native road geometry, traffic signals, and deterministic traffic simulation do
not depend on a V2X service being available.
The Cesium preview displays live V2X operational data on a compiled native
intersection. The package manifest, native road geometry, and traffic signals
remain independent of the service. Vehicle entities and their trace lines are
created only from authenticated V2X streams; generated routes and traffic
simulation are never rendered as a substitute.
## Configuration
@@ -34,14 +35,16 @@ signal WebSocket. Closing the tab clears the session token.
After sign-in the preview reads the selected intersection's links, pole
configuration, bound devices, device configuration, weekly traffic flow ratio,
and `/network/ws/network/signal` phase updates. Failures are shown in the V2X
panel and do not block the static Cesium scene.
and `/network/ws/network/signal` phase updates. It also subscribes to
`/network/ws/network/obuPosition` and `/network/ws/network/targetPosition` for
the only vehicle and vehicle-line sources. Failures are shown in the V2X panel;
the static Cesium scene stays available and the vehicle layer stays empty.
## Coordinate Contract
| Data | Coordinate system | Preview handling |
| --- | --- | --- |
| Native package placement, routes, traffic signals | WGS84 and local ENU | Existing Cesium contract; unchanged. |
| Native package placement and traffic signals | WGS84 and local ENU | Existing Cesium contract; unchanged. |
| V2X dashboard road/link/device data | GCJ-02 | Converted once to WGS84 immediately before Cesium entity creation. |
| High德 reference GeoJSON | GCJ-02 | Compiler calibration input only; never loaded by this preview. |