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

94 views (last 30 days)
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 Comments
Xinyu Yang
Xinyu Yang on 12 Dec 2024 at 20:24
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 Roy
Richeek Roy on 3 Jan 2025 at 5:00
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.

Sign in to comment.

Answers (0)

Categories

Find more on Automotive in Help Center and File Exchange

Products


Release

R2024b

Community Treasure Hunt

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

Start Hunting!