Skip to content

Commit

Permalink
Prüfung der Eingabe auf Plausibilität
Browse files Browse the repository at this point in the history
  • Loading branch information
SchapplM committed Aug 8, 2024
1 parent 20d96b3 commit 25bb9b3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions regressor/robot_paramlin_test_reg_num.m
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
function robot_paramlin_test_reg_num(plin_num_test_struct)

%% Initialisierung
assert(isa(plin_num_test_struct, 'struct') && all(size(plin_num_test_struct)==1), ...
'Eingabe plin_num_test_struct muss struct sein, kein struct-array');
% Variablen aus Eingabestruktur laden
PV2 = plin_num_test_struct.PV2;
W_g = plin_num_test_struct.W; % Informationsmatrix
Expand All @@ -40,6 +42,7 @@ function robot_paramlin_test_reg_num(plin_num_test_struct)
MPVsym = plin_num_test_struct.MPV; % Minimalparameter (aus symbolischer Berechnung, zum Vergleich)
NQ = plin_num_test_struct.NQ; % Anzahl der Freiheitsgrade (allgemein, damit für fixed und floating base funktionierend)
PV2_Names = plin_num_test_struct.PV2_Names;
assert(length(PV2_Names)==length(PV2), 'Dimension von PV2_Names und PV2 ist inkonsistent');
if isfield(plin_num_test_struct, 'qr_tolerance')
qr_tolerance = plin_num_test_struct.qr_tolerance;
else
Expand Down

0 comments on commit 25bb9b3

Please sign in to comment.