how to let lane begin form [0,0] in Roadrunner?

조회 수: 2 (최근 30일)
Xinyu Yang
Xinyu Yang 2024년 10월 22일
댓글: Xinyu Yang 2024년 10월 22일
Hallo everyone,
I'm using "Generate High Definition Scene from Lane Detections and OpenStreetMap" to build road and lanes, but after follow these steps, I got road and lanes in Roadrunner that didn't begin from [0,0]. I tried to change the parameter but it still donest work.
Could anyone please give me some methods to solve this problem? Thank you.
Best regards,
Xinyu

답변 (1개)

Simone
Simone 2024년 10월 22일
Hi Xinyu,
you need to adjust the World Origin. This can be done either interactivley in RoadRunner or programmatically,
Interactive:
World setting tool: Change origin
Programmatically using changeWorldSettings command:
% rrApp = roadrunner(rrProjectPath,InstallationFolder=rrAppPath);
% importScene(rrApp,fullfile(pwd,"RoadRunnerHDMapFromLanes.rrhd"),"RoadRunner HD Map");
changeWorldSettings(rrApp, WorldOrigin=[45.5286873 -122.6214463],TransformScene=true);
I am curious: why is it important that your road starts at [0,0]?
Regards,
Simone
  댓글 수: 1
Xinyu Yang
Xinyu Yang 2024년 10월 22일
Hello Simone,
thanks for your answer!
I followed these 2 example to rebuild driving scenario.
Ego Localization Using Lane Detections and HD Map for Scenario Generation:
Generate High Definition Scene from Lane Detections and OpenStreetMap:
This thin blue line is the vehicle track, its reference point is the first point, so it begins from [0,0]. But the road, I got the reference point from this code
"[roadData,geoReference] = roadprops("OpenStreetMap",filename);",
I changed the reference point of the road, but it cant run anymore in this step:
"egoRoadsWithUpdatedLanes = updateLaneSpec(laneDetections,egoRoadData,refLaneSpec,egoTrajectory,firstEgoWaypointLaneIdx,ReplicateUpdatedLaneWidth=true);",
Thats why I want to let road begin from [0,0]. I want to align the road and the vehicle trajectory.
Best regards,
Xinyu

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

제품


릴리스

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by