how to correct Too many input arguments error in below code
5 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Too many input arguments. Error in 'sm_pick_and_place_robot/Planning and Control/Forward Kinematics' (line 15) [eePos, eeVel, guessValsOut, status] = sm_pick_and_place_robot_fk(actuatorPos, actuatorVel, guessValsIn);
Above lines are occurs errors
this is the code
function [eePos, eeVel, guessValsOut] = FK(actuatorPos, actuatorVel, guessValsIn)
% Wrapper around sm_pick_and_place_fk.m, which creates a persistent
% KinematicsSolver object for the forwards kinematics problem and then
% solves it.
coder.extrinsic('sm_pick_and_place_robot_fk');
persistent init
if isempty(init)
init = true;
eePos = zeros(3,1);
eeVel = zeros(3,1);
guessValsOut = zeros(3,1);
status = 1;
end
[eePos, eeVel, guessValsOut, status] = sm_pick_and_place_robot_fk(actuatorPos, actuatorVel, guessValsIn);
if status ~= 1
error('fk solve failed')
end
2 comentarios
Walter Roberson
el 4 de Feb. de 2023
sm_pick_and_place_robot_fk is not a function that I can find anywhere. We have no information about how it is defined, but apparently it does not expect three inputs
Respuestas (1)
Ver también
Categorías
Más información sobre Multibody Modeling en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!