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

94 次查看(过去 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 Yang
Xinyu Yang 2024-12-12,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 3 minutes 前
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 中查找有关 Automotive 的更多信息

产品


版本

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by