How to generate random vehicles during simulation in driving scenario ?

조회 수: 2 (최근 30일)
Muhammad Iqbal
Muhammad Iqbal 2020년 9월 22일
편집: Raynier Suresh 2021년 2월 15일
when I follow the web example here Spawn and Despawn ,to genarte the non ego vehicle in driving simulation ,the error occurs
as
Error using driving.scenario.mixin.PropertiesInitializableInConstructor (line 20)
'EntryTime' is not a valid property name for driving.scenario.Actor
Error in driving.scenario.Actor (line 37)
obj@driving.scenario.mixin.PropertiesInitializableInConstructor(varargin{:});
Error in drivingScenario/actor (line 161)
a = driving.scenario.Actor(obj, actorID, varargin{:});
Error in Untitled11 (line 25)
nonEgoactor2 = actor(scenario,'ClassID',1, ...
why this error occur ,is the EntryTime nad ExitTime is not a valid attribute for actors or something else?
any sugestion to run this example and genarate the random nonego vehicles in the drivingscenario will be appreciated.
Regards
  댓글 수: 4
Rik
Rik 2020년 9월 25일
That is not the output of the version command. Put the line below in your command window and paste the result in a comment.
clc,version
Muhammad Iqbal
Muhammad Iqbal 2020년 9월 28일
here it is :
ans =
'9.8.0.1323502 (R2020a)'
thanks

댓글을 달려면 로그인하십시오.

답변 (1개)

Raynier Suresh
Raynier Suresh 2021년 2월 15일
편집: Raynier Suresh 2021년 2월 15일
Hi, The Actor Spawn and Despawn feature is available from the R2020b version. Thus in R2020a the "EntryTime" and "ExitTime" property will not be there, that is the reason for the error.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by