Code Generation error, Unrecognized parameter name: 'StateTransitionModel'.

2 ビュー (過去 30 日間)
Hien Nguyen
Hien Nguyen 2018 年 1 月 5 日
コメント済み: Elad Kivelevitch 2018 年 1 月 8 日
I am trying to generate code with the MATLAB Coder Toolbox. I am using the trackingKF from the Automated Driving System Toolbox. The code is from this tutorial: Track Multiple Vehicles Using a Camera in the initBboxFilter method. I've slightly edited it to take in a bbox instead of an objectDetection. I get passed all the code checks, but when generating I get the error Unrecognized parameter name: 'StateTransitionModel'. The documentation mentions this limitation if it will help resolve the issue:
When you create a trackingKF object, and you specify a value other than Custom for the MotionModel value, you must specify the state vector explicitly at construction time using the State property. The choice of motion model determines the size of the state vector but does not specify the data type, for example, double precision or single precision. Both size and data type are required for code generation.

採用された回答

Elad Kivelevitch
Elad Kivelevitch 2018 年 1 月 5 日
Hi Hien,
I have been able to reproduce the issue that you were seeing. There is a simple workaround that I can recommend. Instead of:
trackingKF('StateTransitionModel', A, 'MeasurementModel', H, ...)
where ... represents the other parameters you would like to set on construction,
Use:
trackingKF(A,H,...)
Please let me know if you encounter any problem after applying this solution.
Thanks,
Elad
  4 件のコメント
Hien Nguyen
Hien Nguyen 2018 年 1 月 8 日
編集済み: Hien Nguyen 2018 年 1 月 8 日
I have made a thread about this here
Elad Kivelevitch
Elad Kivelevitch 2018 年 1 月 8 日
Hi Hien,
I will reply to the new thread you opened.
Thanks, Elad

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangePoint Cloud Processing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by