Skip to content
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

Errors partially/incorrectly displayed in matlab R2024b #251

Open
4 of 7 tasks
AntonioViscomi opened this issue Feb 3, 2025 · 2 comments
Open
4 of 7 tasks

Errors partially/incorrectly displayed in matlab R2024b #251

AntonioViscomi opened this issue Feb 3, 2025 · 2 comments

Comments

@AntonioViscomi
Copy link

AntonioViscomi commented Feb 3, 2025

  • I already updated to the latest version I can use
  • I already checked similar issues using the search box
  • I already checked the website for known troubleshooting
  • I already cleaned my environment (by removing the wb-toolbox install folder and installing it again)
  • I already excluded the possibility that system configuration files (e.g. yarp related) might be responsible
  • I am sure the environment variables are correct
  • I tried to reproduce the error in simulation (if it affects the real robot)

Description

It is not possible to determine the exact source of the error, as the error messages are only partially or incorrectly displayed.

Platform

The bug occurs while running tests on the Camozzi setup (config files).

Reproducibility

Screenshots

Simulink terminal output:
Image

Simulink schematic:

Main schematic GetPositionMeasurement YARP_vs_Simulink_execution_step
Image Image Image

Additional information

  • OS: Windows 11 (source installation via pixi)
  • Version / Commit: 7804a8e
  • Matlab Version: R2024b

Additional context

I have checked the source code (here), but there are multiple errors that could be associated with the line containing "failed t".

The WBtoolbox is configured via matlab:

%cleanup
close all
clear, clc
%% Robot configuration for WBToolbox
% TO DO: Execute at simulink startup
WBTConfigRobot           = WBToolbox.Configuration;
WBTConfigRobot.RobotName = 'ankleSetup';
WBTConfigRobot.UrdfFile  = 'model.urdf';
WBTConfigRobot.LocalName = 'WBT';

% Controlboards and joints list. Each joint is associated to the corresponding controlboard 
WBTConfigRobot.ControlBoardsNames     = {'ankle_setup_control_board'};
WBTConfigRobot.ControlledJoints       = {'ankle_joint'};

ControlBoards                                        = struct();
ControlBoards.(WBTConfigRobot.ControlBoardsNames{1}) = {'ankle_joint'};
@traversaro
Copy link
Member

Just to understand, so the problem is that bfError is not displayed in the MATLAB/Simulink terminal output, right?

Did you checked if there is anything relevant in the terminal where you launched MATLAB?

@AntonioViscomi
Copy link
Author

Did you checked if there is anything relevant in the terminal where you launched MATLAB?

I cannot find anything because when I use pixi to start matlab, the environment is exited as soon as matlab is started.
After some experimenting I can say that the errors are displayed because the yarprobotinterface is shutting down and consequently Simulink is shutting down.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants