Unrecognized function or variable 'showDetailsAnyFormat'
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Matheus
am 1 Mär. 2025
Verschoben: Walter Roberson
am 16 Mär. 2025
I'm participating on the Robocup ARM Challenge and while a was running this example the following errors ocurred:
Unrecognized function or variable 'showDetailsAnyFormat'.
Error in ros.internal.action.SimpleActionClientParser>@(~,res)disp(['Final state ',res.State,' with result: ',showDetailsAnyFormat(res.Message)]) (line 154)
showDetailsAnyFormat(res.Message)]);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error in ros.SimpleActionClient/processResultCallback (line 637)
feval(obj.ActualResultFcn, obj, res, obj.ResultFcnUserData{:});
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error in ros.internal.ActClientCallbackHandler/onResultReceivedCallbackFcn (line 25)
processResultCallback(obj.ActClientWeakHandle.get, msg, info, state);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
This funciton is called inside the ROS Toolbox. File :
"C:\Program Files\MATLAB\R2024b\toolbox\ros\mlroscpp\+ros\+internal\+action\ISimpleActionClientParser.m"
I couldn't find any documentation on this function online. Should I implement it like and overload in C++? Is it a bug? Did MathWorks missed it?
Thanks in advance
2 Kommentare
Cris LaPierre
am 1 Mär. 2025
Can you confirm that you have the ROS Toolbox installed? Type 'ver' in your command window and share the results.
Akzeptierte Antwort
Jose Avendano Arbelaez
am 5 Mär. 2025
Verschoben: Walter Roberson
am 16 Mär. 2025
Looks like there might an issue with the obtaining the action result. If you don't need to obtain the result, for now you can set the result function for the action servers to empty []. That should bypass the error.
gripAct.ResultFcn = [];
trajAct.ResultFcn = [];
We updated the RoboCup ARM templates with those changes in the link below:
1 Kommentar
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!