주요 콘텐츠

프로그래밍 방식 시나리오 작성

drivingScenario 객체를 사용하여 프로그래밍 방식으로 주행 시나리오 생성

drivingScenario 객체를 사용하면 MATLAB® 명령줄에서 주행 시나리오를 작성할 수 있습니다. 이 객체를 사용하여 복잡한 도로망이나 주차장을 설계하고 액터와 그 궤적을 지정합니다. 그런 다음 센서 모델을 사용하여 이러한 시나리오에서 합성 데이터를 생성하고 이 데이터를 조감도 플롯에 시각화할 수 있습니다.

drivingScenario 객체의 유연한 인터페이스를 통해 시나리오의 변형을 생성하여 주행 알고리즘을 다양한 조건에서 신속하게 테스트할 수 있습니다. 자세한 내용은 Create Driving Scenario Variations Programmatically 항목을 참조하십시오.

함수

모두 확장

시나리오

drivingScenarioCreate driving scenario
advanceAdvance driving scenario simulation by one time step
plotPlot driving scenario
plotSim3dPlot driving scenario in Unreal Engine viewer (R2024a 이후)
recordRun driving scenario and record actor states
restartRestart driving scenario simulation from beginning
updatePlotsUpdate driving scenario plots
exportExport driving scenario to ASAM OpenDRIVE, ASAM OpenSCENARIO XML or RoadRunner HD Map file
getRoadRunnerHDMapGet RoadRunner HD Map from Driving Scenario in MATLAB (R2023a 이후)
addSensorsAdd sensors to specific host vehicle (R2023a 이후)
startRoadRunnerForScenarioCreate and launch RoadRunner scenario from driving scenario (R2024a 이후)

액터

actorAdd actor to driving scenario
vehicleAdd vehicle to driving scenario
trajectoryCreate actor or vehicle trajectory in driving scenario
smoothTrajectoryCreate smooth, jerk-limited actor trajectory in driving scenario (R2021a 이후)
getReferencePositionGet reference position of vehicle (R2024b 이후)
stateInertial ground-truth state of actor (R2021a 이후)
actorPosesPositions, velocities, and orientations of actors in driving scenario
actorProfilesPhysical and radar characteristics of actors in driving scenario
barrierAdd a barrier to a driving scenario (R2021a 이후)
chasePlotEgo-centric projective perspective plot
targetMeshesMesh vertices and faces relative to specific actor
targetOutlinesOutlines of targets viewed by actor
targetPosesTarget positions and orientations relative to host vehicle
driving.scenario.targetsToEgoConvert target poses from scenario to ego coordinates
driving.scenario.targetsToScenarioConvert target poses from ego to scenario coordinates

도로

roadAdd road to driving scenario or road group
roadNetworkAdd road network to driving scenario
roadBoundariesGet road boundaries
driving.scenario.roadBoundariesToEgoConvert road boundaries to ego vehicle coordinates
roadMeshMesh representation of roads near actor
driving.scenario.RoadGroupStore specifications for road junction or intersection (R2021a 이후)
roadGroupAdd road junction or intersection to driving scenario (R2021a 이후)

차선

lanespecCreate road lane specifications
laneTypeCreate road lane type object
laneMarkingCreate road lane marking object
laneMarkingVerticesLane marking vertices and faces in driving scenario
currentLaneGet current lane of actor
laneBoundariesGet lane boundaries of actor lane
clothoidLaneBoundaryClothoid-shaped lane boundary model
computeBoundaryModelCompute lane boundary points from clothoid lane boundary model
compositeLaneSpecCreate multiple lane specifications for road (R2021a 이후)
laneSpecConnectorDefine road segment connector specifications (R2021a 이후)

주차장

parkingLotAdd parking lot to driving scenario (R2021b 이후)
parkingSpaceDefine parking space for parking lot (R2021b 이후)
insertParkingSpacesInsert parking spaces into parking lot (R2021b 이후)
parkingLaneMarkingVerticesParking lane marking vertices and faces in driving scenario (R2021b 이후)
drivingRadarDataGeneratorGenerate radar sensor detections or track reports from driving scenario or RoadRunner Scenario (R2021a 이후)
visionDetectionGeneratorGenerate vision detections for driving scenario or RoadRunner Scenario
lidarPointCloudGeneratorGenerate lidar point cloud data for driving scenario or RoadRunner Scenario using ray tracing
insSensorInertial navigation system and GNSS/GPS simulation model (R2021a 이후)
ultrasonicDetectionGeneratorGenerate ultrasonic range detections in driving scenario or RoadRunner Scenario (R2022a 이후)
idealGroundTruthSensorGenerate ground truth measurements as sensor detections or track reports from driving scenario or RoadRunner Scenario (R2025a 이후)
addSensorsAdd sensors to specific host vehicle (R2023a 이후)

메시 생성

extendedObjectMeshMesh representation of extended object
translateTranslate mesh along coordinate axes
rotateRotate mesh about coordinate axes
scaleScale mesh in each dimension
applyTransformApply forward transformation to mesh vertices
joinJoin two object meshes
scaleToFitAuto-scale object mesh to match specified cuboid dimensions
showDisplay the mesh as a patch on the current axes

사전 구성된 메시

driving.scenario.bicycleMeshMesh representation of bicycle in driving scenario
driving.scenario.carMeshMesh representation of car in driving scenario
driving.scenario.pedestrianMeshMesh representation of pedestrian in driving scenario
driving.scenario.truckMeshMesh representation of truck in driving scenario
driving.scenario.jerseyBarrierMeshMesh representation of Jersey barrier in driving scenario (R2021a 이후)
driving.scenario.guardrailMeshMesh representation of guardrail in driving scenario (R2021a 이후)

플로터 생성

birdsEyePlotPlot detections, tracks, and sensor coverages around vehicle
coverageAreaPlotterCoverage area plotter for bird's-eye plot
detectionPlotterDetection plotter for bird's-eye plot
trackPlotterTrack plotter for bird's-eye plot
laneBoundaryPlotterLane boundary plotter for bird's-eye plot
laneMarkingPlotterLane marking plotter for bird's-eye plot
meshPlotterMesh plotter for bird's-eye plot
pathPlotterPath plotter for bird's-eye plot
pointCloudPlotterPoint cloud plotter for bird's-eye plot
outlinePlotterOutline plotter for bird's-eye plot
rangeDetectionPlotterRange detection plotter for bird's-eye plot (R2022a 이후)

플로터 표시

plotCoverageAreaDisplay sensor coverage area on bird's-eye plot
plotDetectionDisplay object detections on bird's-eye plot
plotLaneBoundaryDisplay lane boundaries on bird’s-eye plot
plotLaneMarkingDisplay lane markings on bird’s-eye plot
plotParkingLaneMarkingDisplay parking lane markings on bird’s-eye plot (R2021b 이후)
plotMeshDisplay object meshes on bird's-eye plot
plotOutlineDisplay object outlines on bird's-eye plot
plotBarrierOutlineDisplay barrier outlines on bird's-eye plot (R2021a 이후)
plotPathDisplay actor paths on bird’s-eye plot
plotPointCloudDisplay generated point cloud on bird's-eye plot
plotRangeDetectionDisplay range detections on bird's-eye plot (R2022a 이후)
plotTrackDisplay object tracks on bird's-eye plot

플로터 유틸리티

findPlotterFind plotters associated with bird’s-eye plot
clearDataClear data from specific plotter of bird’s-eye plot
clearPlotterDataClear data from bird’s-eye plot

도움말 항목

주행 시나리오

센서

추천 예제