Skip to content

Allow resetting global edge travel times via TraCI - #18419

Open
NearCai wants to merge 3 commits into
eclipse-sumo:mainfrom
NearCai:pr/edge-traveltime-reset
Open

NearCai wants to merge 3 commits into
eclipse-sumo:mainfrom
NearCai:pr/edge-traveltime-reset

Conversation

@NearCai

@NearCai NearCai commented Oct 25, 2026

Copy link
Copy Markdown
Contributor

Fixes #5827.

traci.edge.adaptTraveltime could only add travel times. This adds the same reset
semantics that traci.vehicle.setAdaptedTraveltime already provides:

  • passing INVALID_DOUBLE_VALUE removes all stored travel time information for the edge
  • setting a whole-range value (begin 0, end 2^30) replaces previously stored values

Documentation and a regression test (tests/complex/traci/edge/adaptTraveltime_reset)
are included.

Local verification: built sumo (Release, MSVC) and ran the new test; output is
initial -1.0 / set 42.0 / reset -1.0 / interval 7.0 / reset interval -1.0.

Copilot AI balanced review requested due to automatic review settings October 25, 2026 08:06

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

Signed-off-by: dkm <2094657017@qq.com>
@NearCai
NearCai force-pushed the pr/edge-traveltime-reset branch from 8b9a172 to b52d9a3 Compare October 25, 2026 08:08
behrisch and others added 2 commits October 28, 2026 21:53
The new test does not produce any stderr, so the expected file must be
empty as well.
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.

allow resetting stored edge traveltimes

3 participants