赞
踩
初始化模拟器
初始化模拟器并创建chasePlot查看器。
[scenarioViewer,futureTrajectory,actorID,actorPoses,egoID,egoPoses,stepPerUpdate,egoState,isRunning,lineHandles] = ...
exampleHelperInitializeSimulator(scenario,capList,refPath,laneWidth,replanRate,carLen);
tic
while isRunning
% Retrieve the current state of actor vehicles and their trajectory over
% the planning horizon.
[curActorState,futureTrajectory,isRunning] = ...
exampleHelperRetrieveActorGroundTruth(scenario,futureTrajectory,replanRate,maxHorizon);
% Generate cruise control states.
[termStatesCC,timesCC] = exampleHelperBasicCruiseControl(...
refPath,laneWidth,egoState,speedLimit,timeHorizons);
% Generate lane change states.
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。