- laneDetections: Ensure lane detections are available for the roads where you intend to update the lane specifications.
- egoTrajectory: Verify that the ego trajectory exists for the entire length of the road. The trajectory must also be accurately localized on the desired lane within the road.
- firstEgoWaypointLaneIdx: Ensure that the ego lane index accurately corresponds to the starting lane index for the ego vehicle on the road.
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 个评论
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 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!