-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unnecessary warning message is printed when starting Simulink controller #408
Comments
Related to #325 . |
Rationale: it is perfectly fine to create a reduced model without the joint that contains a F/T sensor (it is actually what we always do in the controllers, that don't care about the F/T sensor fixed joint at all!). @diegoferigo can you look into this? Thanks! |
ping |
@traversaro in a project, we are performing a KPI analysis of a Simulink controller. The controller runs several times in a raw and therefore the warning messages are printed a lot of times in the command window. These warnings are also making less visible some useful messages we print on MATLAB command window to understand how the KPI analysis is proceeding. I would like to get rid of these warnings, but I have no idea how to proceed. Is this an easy problem to fix? How can I get rid of it? |
As mentioned in #408 (comment), it is perfectly fine to create a reduced model without including a joint that contains a joint sensor. so I guess we just need to find where the warning is emitted (i.e. https://github.com/robotology/idyntree/search?q=the+associated+joint+sensor+won%27t+be+present&unscoped_q=the+associated+joint+sensor+won%27t+be+present ) and then remove it. |
In the case of my project, these are the messages printed on the Matlab command window:
So besides the |
Here are the associated lines of code:
idyntree/src/model_io/urdf/src/URDFDocument.cpp Lines 265 to 307 in d5bbcea
|
Also this is a warning that is due to the iCub model, that defines both a frame (in the URDF sense, so a fixed link with no mass) and a sensor with the same name. As long as the two corresponds the warning can ignored, so as in the other case discussed in this issue any volunteer is welcome to open a PR to remove it.
This warning is more critical: according to the URDF spec both More in general probably it would make sense to have an option to silence this warning, so anyone is welcome to also open a PR for such an option, but to have it available in WB-Toolbox then it needs to be exposed also at that level. |
I commented out the lines of code pointed here locally on my pc. I was able to compile iDynTree with no issues and the warning messages disappeared from Matlab. I can open a PR for permanently removing 2 out of 3 warnings, while for the remaining one I was thinking that a simple option may be to remove it only for the users of a specific iDynTree tag related to the project I was referring to in the previous comments. However I don't know which is the current tag used by this project @nunoguedelha. |
Sorry @gabrielenava for the late reply. So we excluded the following two approaches?
|
I would personally prefer a runtime option of the ModelLoader class, as build options are tricky to manage. |
You're right, tricky and slow, since you have to rebuild. |
@gabrielenava , the specific project has a ProjectTags.cmake file selecting the used iDynTree commit or tag. That selection is |
I just tried a way to capture all the warnings on Matlab, wrapping the normal
and we get in |
I've opened a PR to remove two of the three warnings pointed out in this comment. |
I think that #718 closes this issue. |
I noticed that when running the Simulink torque balancing controller, a warning message related to FT sensors (that seems to come from here) is printed in the command line:
it seems this warning is unnecessary, at least for Simulink. Is it possible to remove it?
The text was updated successfully, but these errors were encountered: