Why am i getting this error when i start a simulink quadcopter simulation?

2 ビュー (過去 30 日間)
I am working with simulink quadcopter project (asbQuadcopter) and I am trying to implement a control with deep reinforcement learning.
When i validate the environment, i have this problem:
Warning: Could not evaluate MaskDisplay commands of block 'asbQuadcopter/Visualization/Extract Flight
Instruments/V': Undefined function 'ports' for input arguments of type 'double'.
> In aeroblkconversion2 (line 33)
In aeroicon (line 148)
In slResolve
In Simulink.SimulationData/SignalObserverInfo/updateSettingsFromPort
In Simulink.SimulationData.ModelLoggingInfo.getLoggedSignalsFromMdl
In Simulink.SimulationData.ModelLoggingInfo.createFromModel
In MultiSim.internal.getLoggingSpecificationForModels
In MultiSim.internal.resetLoggingSpec
In MultiSim.internal/SimulationRunnerSerial/setup
In Simulink/SimulationManager/setup
In Simulink/SimulationManagerEngine/setup
In rl.env/SimulinkEnvWithAgent/setupForSimImpl (line 499)
In rl.env/AbstractEnv/setupForSim (line 265)
In rl.env/AbstractEnv/simWithPolicy (line 72)
In rl.env/SimulinkEnvWithAgent/validateEnvironment (line 129)

採用された回答

Unmanned Aerial and Space Systems
Unmanned Aerial and Space Systems 2022 年 5 月 4 日
There is a undefined function in your one of the functions, if you share it here, it can be controlled.
  2 件のコメント
Tommaso Savino
Tommaso Savino 2022 年 5 月 5 日
Hi, thanks for the reply.
After several tests, I think I understand the problem. I was using this incorrectly in my function:
in = in.setVariable('init.euler', [0 0 0]);
in = in.setVariable('init.angRates', [0 0 0]);
Instead, I used this:
blkPt = 'nonlinearAirframe/Nonlinear/6DOF (Quaternion)';
in = in.setBlockParameter(blkPt,'eul_0', '0.01 .* rand(1,3)');
Unmanned Aerial and Space Systems
Unmanned Aerial and Space Systems 2022 年 5 月 5 日
Congrats, your reset fcn is good I think.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGet Started with Aerospace Blockset についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by