How to update the lane specification with information extracted from lane detections

1 Ansicht (letzte 30 Tage)
Hello everyone,
I'm generating high definition scene from lane detections and OpenStreetMap by following this example:
When there is only one road for ego like the first picture, I can update the lane specification successfully by running this code:
egoRoadsWithUpdatedLanes = updateLaneSpec(laneDetections,egoRoadData,refLaneSpec,egoTrajectory,firstEgoWaypointLaneIdx,ReplicateUpdatedLaneWidth=true);
But if the vehicle passes through two or more roads like the second picture, the "egoRoadData" changed, there are more roads, I changed the "refLaneSpec" to define the correct number of each roads, too. I cant update the lane specification anymore.
Can someone give me some advices, how can I use this code if the vehicle passes through more roads?
egoRoadsWithUpdatedLanes = updateLaneSpec(laneDetections,egoRoadData,refLaneSpec,egoTrajectory,firstEgoWaypointLaneIdx,ReplicateUpdatedLaneWidth=true);
Best regards,
Xinyu
  3 Kommentare
Xinyu
Xinyu am 12 Dez. 2024
Hello Richeek,
thanks for your reply, I checked the function "updateLaneSpec" and found that there are blank line in struct "laneLayout" like this photo showed.
And wenn I filled all blank line, I generate Road like this photo, the road is not continous.
Best regards,
Xinyu
Richeek
Richeek am 3 Jan. 2025
Hi,
Can you please share the data, error messages and detailed reproduction steps so that I can reproduce the issue at my end?
If you are not comfortable to share the files on this platform, please raise a Service request using the following link,
I look forward to hear from you soon.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Automotive finden Sie in Help Center und File Exchange

Produkte


Version

R2024b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by