how to let road begin from world origin?

조회 수: 5 (최근 30일)
Xinyu
Xinyu 2024년 12월 12일
댓글: Xinyu 2024년 12월 25일
Hello everyone,
I'm generating high definition scene from lane detections and OpenStreetMap by following this example:
I used "changeWorldSettings" to define the world origin, and changed the road information to let road begin from world origin, after that I plot it and got this picture.
But wenn I import it in Roadrunner, it didnt begin from the world origin, I have no idea why. The attachment is mine rrHDmap,this is the code to import it to roadrunner.
cropWindow = [-30 -30 60 60];
helperPlotRoads(rrHDMap,cropWindow)
write(rrHDMap,"Road0926.rrhd");
rrProjectPath = "D:\RR";
rrAppPath = "D:\RoadRunner R2024a\bin\win64";
rrApp = roadrunner(rrProjectPath,InstallationFolder=rrAppPath);
changeWorldSettings(rrApp,SceneExtents=[1000 1000]);
importScene(rrApp,fullfile(pwd,"Road0926.rrhd"),"RoadRunner HD Map");
newFilename = "lane0926.rrscene";
saveScene(rrApp,newFilename);
Can anyone give me some advices?
Best regards,
Xinyu

답변 (1개)

Sreeram
Sreeram 2024년 12월 19일
While importing and loading a RoadRunner HD Map into RoadRunner using “importScene”, you can specify an import option as described in the following documentation:
The import option object “roadrunnerHDMapLoadOptions” with property “Offset” can specify the offset of the imported HD map, relative to the center of the RoadRunner scene. I recommend passing the appropriate “roadrunnerHDMapLoadOptions” object to the “importScene” to address the issue.
  댓글 수: 1
Xinyu
Xinyu 2024년 12월 25일
Hello Sreeram,
maybe I didnt describe the question so good, I want to know the offset not to set the offset.
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