주요 콘텐츠

MATLABSimulink를 사용하여 RoadRunner Scenario 시뮬레이션하기

MATLAB® 및 Simulink® 동작 개발, 액터 동작 퍼블리시, RoadRunner Scenario 시뮬레이션에서 동작 시뮬레이션, 시뮬레이션 제어, 시뮬레이션 파라미터에 액세스

Automated Driving Toolbox™는 MATLAB과 Simulink에서 모델링된 액터를 사용하여 RoadRunner에서 시나리오를 시뮬레이션하기 위한 프레임워크를 제공합니다. RoadRunner를 MATLAB과 함께 사용하려면 Connect MATLAB and RoadRunner to Control and Analyze Simulations 항목을 참조하십시오.

워크플로의 단계는 다음과 같습니다.

  • MATLAB System object 또는 Simulink 모델을 작성하여 액터 동작을 정의합니다.

  • 액터 동작을 RoadRunner에 연결합니다.

  • 선택적으로, 액터 동작을 퍼블리시합니다.

  • RoadRunner 시뮬레이션을 위해 MATLAB 또는 Simulink에 정의된 파라미터를 조정합니다.

  • RoadRunner 사용자 인터페이스를 사용하여 시나리오를 시뮬레이션하거나 MATLAB에서 프로그래밍 방식으로 시뮬레이션을 제어합니다.

  • 시뮬레이션 로그를 사용하여 시뮬레이션 결과를 검사합니다.

  • 저장된 시뮬레이션 로그에서 시나리오 시뮬레이션을 재생합니다.

  • 시나리오 시뮬레이션 데이터를 ASAM Open Simulation Interface (OSI)® 파일 형식으로 저장합니다.

자세한 내용은 Overview of Simulating RoadRunner Scenarios with MATLAB and Simulink 항목을 참조하십시오.

객체

모두 확장

ScenarioSimulationCreate, access, and control RoadRunner Scenario simulations from MATLAB (R2022a 이후)
ScenarioServicesPerform calculations on scene elements of RoadRunner Scenario in MATLAB (R2024b 이후)
ActorSimulationAccess and modify runtime specifications of RoadRunner Scenario actor in MATLAB (R2022a 이후)
ActorModelView static specifications of RoadRunner Scenario actor in MATLAB (R2022a 이후)
SensorSimulationAdd sensors and access sensor data from RoadRunner Scenario simulation (R2023a 이후)
ScenarioLogView RoadRunner Scenario simulation outcomes in MATLAB at any time step (R2022a 이후)
openSimulationInterfaceStore RoadRunner Scenario simulation data in ASAM Open Simulation Interface (OSI) format (R2024b 이후)
groundTruthAreaGround truth area centered at ego vehicle origin (R2025a 이후)

클래스

모두 확장

sim3d.scenario.ActorBehaviorDefine RoadRunner actors that use Unreal Engine viewer visualization (R2023b 이후)

함수

모두 확장

addObserverAdd observer to scenario simulation (R2022a 이후)
getGet value of scenario simulation parameter (R2022a 이후)
loadLoad saved simulation log (R2023a 이후)
removeObserverRemove observer from scenario simulation (R2022a 이후)
reportDiagnostic Report information, warning, or error message during scenario simulation (R2022a 이후)
saveSave simulation log to file for later use (R2023a 이후)
setSet value of scenario simulation parameter (R2022a 이후)
Simulink.ScenarioSimulation.findReturn scenario simulations or actors in current MATLAB session (R2022a 이후)
getGet calculations on scene elements of RoadRunner Scenario in MATLAB (R2024b 이후)
sendEventSend event to scenario (R2022b 이후)
receiveEventReceive event from scenario (R2023a 이후)
convertToStructConvert actor to MATLAB structure (R2022a 이후)
getGet scenario or static attribute of actor (R2022a 이후)
getActionGet actions associated with actor (R2022a 이후)
getAttributeGet run-time attribute of actor (R2022a 이후)
setAttributeSet run-time attribute of actor (R2022a 이후)
getAttribute Return static attribute of actor (R2022a 이후)
reportDiagnostic Report information, warning, or error message during scenario simulation (R2022a 이후)
Simulink.ActorSimulation.createMATLABStructCreate MATLAB structure for bus object for RoadRunner (R2024a 이후)
Simulink.ActorSimulation.loadLoad built-in RoadRunner bus definitions into MATLAB workspace (R2024a 이후)
addSensorsAdd sensors to vehicle actors in RoadRunner scenario (R2023a 이후)
targetPosesGet positions and orientations of targets in sensor range from RoadRunner Scenario (R2023a 이후)
laneBoundariesGet lane boundaries relative to host vehicle from RoadRunner Scenario (R2023a 이후)
publishActorGenerate package for actor simulation (R2022a 이후)
publishActorBehaviorGenerate proto file for actor simulation (R2022a 이후)
publishCustomActionGenerate asset file for user-defined action (R2022b 이후)
publishCustomEventGenerate asset file for user-defined event (R2023a 이후)
getGet logged scenario simulation data (R2022a 이후)
viewView logged scenario simulation data (R2024a 이후)
startRoadRunnerSimulationStart RoadRunner Scenario simulation (R2024b 이후)
writeWrite OSI data to binary file (R2024b 이후)
getProtoMessageGet OSI protocol buffer (protobuf) message at each simulation step (R2024b 이후)
onSimulationStartSpecify code to run at start of simulation (R2023b 이후)
onSimulationStopSpecify code to run at end of simulation (R2023b 이후)
onSimulationStep Specify code to run at each time step (R2023b 이후)
matrix2transformConvert 4-by-4 pose matrix to translation, rotation, and scale vectors (R2023b 이후)
transform2matrixConvert translation, rotation, and scale vectors to 4-by-4 pose matrix (R2023b 이후)

블록

RoadRunner ScenarioDefine interface for Simulink actor model (R2022a 이후)
RoadRunner Scenario ReaderReads selected topic from RoadRunner scenario (R2022a 이후)
RoadRunner Scenario WriterWrite selected topic to RoadRunner scenario (R2022a 이후)

조감도 스코프Visualize sensor coverages, detections, and tracks

도움말 항목

추천 예제