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

5 visualizzazioni (ultimi 30 giorni)
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 Commenti
Xinyu
Xinyu il 12 Dic 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 il 3 Gen 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.

Accedi per commentare.

Risposte (0)

Prodotti


Release

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by