Skip to content

Expose completed induction loop passages through TraCI - #20024

Open
M-Colley wants to merge 3 commits into
eclipse-sumo:mainfrom
M-Colley:codex/sumo-16631-induction-loop-passed-vehicles
Open

M-Colley wants to merge 3 commits into
eclipse-sumo:mainfrom
M-Colley:codex/sumo-16631-induction-loop-passed-vehicles

Conversation

@M-Colley

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

Copy link
Copy Markdown
Contributor

Refs #16631

Adds the four requested TraCI accessors for completed passages in the current and previous intervals of a microscopic E1 detector. They use the same completed-passage records as XML nVehContrib, including a passage that starts in one interval and clears the detector in the next. The accompanying test also removes a vehicle before it clears the detector. Mesoscopic E1 detectors report aggregate values and return a TraCI error for the new variables.

The upstream binary rejected the new variable codes. The patched native SUMO passed all seven microscopic induction loop cases and the new mesoscopic error case. A direct subscription check returned the expected counts and IDs. The C++ libtraci induction loop translation unit compiled. Two older mesoscopic controls reproduced their failures on the upstream binary as well.

This PR adds separate variables for completed passages and preserves the existing interval getter semantics requested in #16631. The timing changes in #20001 also affect the existing getters and need to preserve their detection semantics when combined with this API. The test registration and documentation merge cleanly with #18708, #19988, and the current #20001 head.

M-Colley and others added 3 commits December 5, 2026 04:56
Signed-off-by: Josh <39366189+M-Colley@users.noreply.github.com>
Co-authored-by: Codex <noreply@openai.com>
Signed-off-by: Josh <39366189+M-Colley@users.noreply.github.com>
Co-authored-by: Codex <noreply@openai.com>
Signed-off-by: Josh <39366189+M-Colley@users.noreply.github.com>
Co-authored-by: Codex <noreply@openai.com>
@behrisch
behrisch force-pushed the codex/sumo-16631-induction-loop-passed-vehicles branch from acf108f to 3e8fa96 Compare December 5, 2026 03:56
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