MATLAB Answers

How can I fix the error when I open the example 'ACCTestBenchExample'?

조회 수: 14(최근 30일)
Bo Lin
Bo Lin 26 Nov 2019
When I open the example 'ACCTestBenchExample',it happened to this.
=== Simulation (Elapsed: 3 sec) ===
Error:Expression 'BusActorsActors' for type of data 'egoActor' did not evaluate to a valid type.
Caused by:
Invalid setting in 'Vehicle and Environment/Actors and Sensor Simulation/Pack Ego Actor' for parameter 'Datatype'
Error evaluating MATLAB Function parameter data 'Datatype' in its parent workspace.
函数或变量 'BusActorsActors' 无法识别。
Variable 'BusActorsActors' does not exist.
I do not change anything about the example provided.So,how can I fix it?
Thank you,
Lin Bo

  댓글 수: 0

로그인 to comment.

답변 수 (1)

Fangjun Jiang
Fangjun Jiang 26 Nov 2019
It is likely that the data has not been properly loaded. Run the following to bring up the Help page and click "Open Model" to start
web(fullfile(docroot, 'driving/examples/adaptive-cruise-control-with-sensor-fusion.html'))

  댓글 수: 2

Bo Lin
Bo Lin 26 Nov 2019
It doesn't work.And it's the same problem.
Error:Expression 'BusActorsActors' for type of data 'egoActor' did not evaluate to a valid type.
Caused by:
Invalid setting in 'Vehicle and Environment/Actors and Sensor Simulation/Pack Ego Actor' for parameter 'Datatype'
Error evaluating MATLAB Function parameter data 'Datatype' in its parent workspace.
函数或变量 'BusActorsActors' 无法识别。
Variable 'BusActorsActors' does not exist.
Fangjun Jiang
Fangjun Jiang 26 Nov 2019
I've run the example in R2019b. No problem at all.
'BusActorsActors' is a bus object. Your error message says it does not exist, which indicates that the data is not properly loaded.
Another reason might be that you don't have enough toolbox. Run "license inuse" shows
automated_driving_toolbox
control_toolbox
matlab
mpc_toolbox
simulink
video_and_image_blockset

로그인 to comment.

이 질문에 답변하려면 로그인을(를) 수행하십시오.

태그

제품


릴리스

R2019b

Translated by