ROS Logger doesn't show the topics

조회 수: 4 (최근 30일)
Tai Hoang
Tai Hoang 2025년 1월 21일
댓글: Josh Chen 2025년 1월 27일
I am working with MATLAB R2024b on a Simulink model. I want to publish some topics using ROS2. I added some topics in different place of the model, one of them is at depth 1 from the main system and the rest are at depth 5-6 from the main system (as shown in the 2 images). When I use ROS Logger to create a ROS bag, it only show the one topic at depth 1. I have chosen "Log Selected Signal" to all of the Topic. I am not sure if subsytem depth is the reason, but I need to create a log file for all topics. There is a same discussion, but no solution is shown there.
Depth 1 topic:
Depth 5 topic:
depth 5 topic
Can you suggest the solution?

답변 (1개)

Josh Chen
Josh Chen 2025년 1월 22일
Hi Tai,
Messages from nested subsystems should be visible in the ROS Logger App.
I created a dummy model with 6 layers of subsystems, and was able to see all ROS signals from subsystems, no matter they were marked as logging or not.
If this happens on your end, I believe there should be another reason. Can you share a simplified model so we can look closer and identify the culprit?
If this is confidential, please feel free to reach out to our technical support team.
Thanks,
Josh
  댓글 수: 4
Tai Hoang
Tai Hoang 2025년 1월 25일
Dear Josh,
I think it is better to continue with my problems here. When I selected the topics to be logged and run the simulation. It shows 2 errors as below:
Error due to multiple causes.
Caused by:
Error evaluating 'StartFcn' callback of block_diagram 'mySimulation'.
Callback string is '
% Do not delete, this is an auto-generated function to log ROS 2 message.
ros.slros.internal.ROSUtil.loggerStartFcn(bdroot)'
Dot indexing is not supported for variables of this type.
Error evaluating 'StopFcn' callback of block_diagram 'mySimulation'.
Callback string is '
% Do not delete, this is an auto-generated function to log ROS 2 message.
ros.slros.internal.ROSUtil.logROSMessageToBagFile(bdroot);'
Dot indexing is not supported for variables of this type.
I cannot find any related topic related to this error. Do you have any idea how to solve this?
Thanks,
Tai Hoang
Josh Chen
Josh Chen 2025년 1월 27일
Hello Tai,
This is a general error message when Simulink bus parsing failed during logging process after simulation. I know there are few updates been submitted to address similar issues in the past. So I would suggest to upgrade to the latest version of MATLAB.
If that still not resolving the problem, please attach the model and we can take a look.
Thanks,
Josh

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Publishers and Subscribers에 대해 자세히 알아보기

제품


릴리스

R2024b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by