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

조회 수: 6 (최근 30일)
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
Xinyu
Xinyu 2024년 12월 12일
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 2025년 1월 3일
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.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Automated Driving Toolbox에 대해 자세히 알아보기

제품


릴리스

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by