Skip to content

Timestamp instantaneous E1 events in the correct movement step - #19982

Open
M-Colley wants to merge 3 commits into
eclipse-sumo:mainfrom
M-Colley:codex/sumo-10533-instant-loop-timestamps
Open

M-Colley wants to merge 3 commits into
eclipse-sumo:mainfrom
M-Colley:codex/sumo-10533-instant-loop-timestamps

Conversation

@M-Colley

@M-Colley M-Colley commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

Fixes #10533.

Summary

  • Use the start of the movement step when interpolating instantaneous induction-loop entry and exit.
  • Timestamp stay observations at the end of that step and preserve chronological order when a vehicle changes lanes or is removed.

Evidence

  • The new fractional-step case compares the same vehicle at standard and instantaneous E1 detectors. At a 0.5-second step the corrected detector reports entry at 0.80 s, a stay at 1.00 s, and exit at 1.10 s. The stock timestamps are half a second early.
  • The native build passed 85 default and one sublane TextTest case. All 12 ballistic instantaneous-detector outputs match their updated expectations. The ballistic cases also report pre-existing FCD or stderr differences that matched the stock run.
  • Comparison across 877 emitted events showed changes in timing and derived intervals. Vehicle IDs, states, speeds, lengths, types, and event counts matched.
  • Strict MkDocs passed.

Merge Danger

Consumers that offset instantaneous timestamps by one step as a workaround will need to use the corrected timestamps directly.

M-Colley and others added 3 commits December 5, 2026 02:53
Refs eclipse-sumo#10533

Signed-off-by: Josh <39366189+M-Colley@users.noreply.github.com>
Co-authored-by: OpenAI Codex <noreply@openai.com>
Use the current step for longitudinal crossings. Timestamp observations
and lane changes at the end of that movement step, and keep removal
events ordered after the latest detector observation.

Refs eclipse-sumo#10533

Signed-off-by: Josh <39366189+M-Colley@users.noreply.github.com>
Co-authored-by: OpenAI Codex <noreply@openai.com>
Refs eclipse-sumo#10533

Signed-off-by: Josh <39366189+M-Colley@users.noreply.github.com>
Co-authored-by: OpenAI Codex <noreply@openai.com>
@behrisch
behrisch force-pushed the codex/sumo-10533-instant-loop-timestamps branch from 8128394 to 3bcfcb3 Compare December 5, 2026 01:53
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.

recheck instantInductionLoop time stamps

1 participant