Skip to content

Conversation

@otonck
Copy link
Contributor

@otonck otonck commented Oct 15, 2025

This PR includes changes made for Epicam in order to improve the absolute coordinates of the vehicle trajectories, in the case of multilane links that are not straight.

Previously, the absolute position of a vehicle in a lane was computed on the child lane linestring geometry, using the linear position of the vehicle along the lane's parent link (in symuvia, vehicle positions on a link are computed based on the link's length, and not the length of the lane the vehicle is in). Since the parent link's geometry and the lane geometry are offsetted, the length of each of their segments can be different (and is very different on curved roads).

This PR uses the parent link segments lengths to identify the current segment of the vehicle, and then consider the ratio of this segment's length for the link and the lane to use the correct linear coordinate to use against the geometry of the lane.

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