STD Exception ROS2 Custom Message Simulink

I would appreciate ant tips regarding the following. :)
MATLAB R2021A
Error in Simulink Diagnostic Viewer: Subscribing to a topic with a custom message.
STD exception 'class mwboost::exception_detail::clone_impl': 'Connection to process with Exchange: "f945d322-3833-4611-89f7-e4b72eeb8dd3 " was lost.' was caught.
On a seperate machine the following is running:
custom message: custom_interfaces/HldLldDrivingControllerSpeed.msg
Succesful custom message generation:

6 件のコメント

Hassan Hotait
Hassan Hotait 2022 年 2 月 3 日
I just noticed connectivity test fails
but how come I can see the topics on the other machine?
Jagadeesh Konakalla
Jagadeesh Konakalla 2022 年 2 月 4 日
Hi Hasaan,
Are you using ROS1 or ROS2 ?
ROS2 does not require rosinit. the rosinit is for connecting to ROS1 Master.
In case of ROS2, you need to make sure that Domain ID is same. I guess in your case, the Domain ID of VM and MATLAB is same. That is why you see ros2 topic list working.
Can you provide clear reproduction steps
Thanks,
Jagadeesh K,
Hassan Hotait
Hassan Hotait 2022 年 2 月 4 日
Okay I see. I am usin ROS2.
What are reproduction steps?
Jagadeesh Konakalla
Jagadeesh Konakalla 2022 年 2 月 4 日
Hi Hassan,
I mean, i mean steps to reproduce the error that you are seeing. Please share the model and custom messages.
I will try on my end and let you know.
Thanks,
Jagadeesh K
Hassan Hotait
Hassan Hotait 2022 年 2 月 4 日
Hi Jagadeesh,
I just tried it again and it worked. Thanks anyways.
Consider the case closed.
준기 홍
준기 홍 2023 年 4 月 1 日
Hi Hassan Hotait, its nice to hear you have solved it.
im facing the similar issue you have posted. i made a custom message using "ros2genmsg()" and when i run the simulink model i get a error message saying
STD exception 'mwboost::wrapexcept<mwboost::exception_detail::current_exception_std_exception_wrapper<std::invalid_argument> >': 'Connection to process with Exchange: "5f1470ff-8f66-40e9-84fb-5f3bfd116a13 " was lost.' was caught.
it would be thankful of you if you can share how you made it work.

サインインしてコメントする。

回答 (1 件)

Jagadeesh Konakalla
Jagadeesh Konakalla 2022 年 6 月 22 日

0 投票

Looks like restarting the MATLAB solved the problem.

3 件のコメント

Nupur
Nupur 2024 年 3 月 26 日
I came across the same error and restrating the MATLAB didn't solve the problem. I then reset the publisher and subscriber block and it solved the error.
Jagadeesh Konakalla
Jagadeesh Konakalla 2024 年 3 月 26 日
Hi Nupur,
How did you Rest the publisher and subscriber block ?
Jagadeesh K.
Nupur
Nupur 2024 年 4 月 18 日
Hi Jagadeesh,
What I meant by reseting publisher & subscriber block is by reloading the topic in the blocks.

サインインしてコメントする。

カテゴリ

製品

リリース

R2021a

質問済み:

2022 年 2 月 3 日

コメント済み:

2024 年 4 月 18 日

Community Treasure Hunt

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

Start Hunting!

Translated by