Main Content

このページの内容は最新ではありません。最新版の英語を参照するには、ここをクリックします。

プログラムでのシナリオ作成

drivingScenario オブジェクトを使用してドライビング シナリオをプログラムで作成

drivingScenario オブジェクトにより、MATLAB® コマンド ラインからドライビング シナリオを作成できます。このオブジェクトを使用して、複雑な道路ネットワークや駐車場を設計し、アクターとその軌跡を指定します。その後、センサー モデルを使用してこれらのシナリオから合成データを生成し、そのデータを鳥瞰図プロットで可視化できます。

drivingScenario オブジェクトの柔軟なインターフェイスにより、各種条件で運転アルゴリズムを迅速にテストするためのシナリオのバリエーションを作成できます。詳細については、プログラムでのドライビング シナリオのバリエーションの作成を参照してください。

関数

すべて展開する

シナリオ

drivingScenarioドライビング シナリオの作成
advanceドライビング シナリオ シミュレーションを 1 タイム ステップずつ進める
plotドライビング シナリオをプロット
recordドライビング シナリオを実行してアクターの状態を記録
restart最初からドライビング シナリオ シミュレーションを再実行
updatePlotsドライビング シナリオのプロットの更新
exportExport driving scenario to ASAM OpenDRIVE, ASAM OpenSCENARIO or RoadRunner HD Map file (R2020b 以降)
getRoadRunnerHDMapGet RoadRunner HD Map from Driving Scenario in MATLAB (R2023a 以降)
addSensorsAdd sensors to specific host vehicle (R2023a 以降)

アクター

actorAdd actor to driving scenario
vehicleAdd vehicle to driving scenario
trajectoryドライビング シナリオでアクターまたは車両の軌跡を作成
smoothTrajectoryCreate smooth, jerk-limited actor trajectory in driving scenario (R2021a 以降)
stateInertial ground-truth state of actor (R2021a 以降)
actorPosesドライビング シナリオにおけるアクターの位置、速度、および向き
actorProfilesPhysical and radar characteristics of actors in driving scenario
barrierAdd a barrier to a driving scenario (R2021a 以降)
chasePlot自己を中心とした射影パースペクティブのプロット
targetMeshesMesh vertices and faces relative to specific actor (R2020b 以降)
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 (R2020a 以降)

道路

roadAdd road to driving scenario or road group
roadNetworkAdd road network to driving scenario
roadBoundaries道路の境界を取得
driving.scenario.roadBoundariesToEgoConvert road boundaries to ego vehicle coordinates
roadMeshMesh representation of roads near actor (R2020a 以降)
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 (R2019b 以降)
laneMarkingCreate road lane marking object
laneMarkingVerticesLane marking vertices and faces in driving scenario
currentLaneGet current lane of actor
laneBoundariesGet lane boundaries of actor lane
clothoidLaneBoundaryクロソイド形状の車線境界線モデル
computeBoundaryModelクロソイド車線境界線モデルから車線境界線の点を計算
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 (R2020a 以降)
insSensorInertial navigation system and GNSS/GPS simulation model (R2021a 以降)
ultrasonicDetectionGeneratorGenerate ultrasonic range detections in driving scenario or RoadRunner Scenario (R2022a 以降)
addSensorsAdd sensors to specific host vehicle (R2023a 以降)

メッシュ作成

extendedObjectMeshMesh representation of extended object (R2020a 以降)
translateTranslate mesh along coordinate axes (R2020a 以降)
rotate座標軸を中心にメッシュを回転 (R2020a 以降)
scaleScale mesh in each dimension (R2020a 以降)
applyTransformフォワード変換をメッシュ頂点に適用 (R2020a 以降)
join2 つのオブジェクト メッシュの結合 (R2020a 以降)
scaleToFitAuto-scale object mesh to match specified cuboid dimensions (R2020a 以降)
showDisplay the mesh as a patch on the current axes (R2020a 以降)

プリビルドのメッシュ

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

プロッター作成

birdsEyePlot検出、軌跡、および車両周囲のセンサー カバレッジのプロット
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 (R2020b 以降)
pathPlotterPath plotter for bird's-eye plot
pointCloudPlotterPoint cloud plotter for bird's-eye plot (R2020a 以降)
outlinePlotterOutline plotter for bird's-eye plot
rangeDetectionPlotterRange detection plotter for bird's-eye plot (R2022a 以降)

プロッター表示

plotCoverageAreaセンサーのカバレッジ領域を鳥瞰図プロット上に表示
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 (R2020b 以降)
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 (R2020a 以降)
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

トピック

ドライビング シナリオ

センサー