i can't select msg type to "sensor_msgs/Imagae" in ROS2 Subscribe block.

5 次查看(过去 30 天)
I try to read a ros image message in simulink.
A msg type is "sensor_msgs/Image".
But i can't select msg type to "sensor_msgs/Imagae" in ROS2 Subscribe block.
however, it is selected in ROS subscribe block.
  1 个评论
Aditya
Aditya 2025-7-26
Same here,
I have also experienced similar issues. While creating a blank message of type sensor_msgs/Image, Simulink does not allow to select the message type.

请先登录,再进行评论。

回答(1 个)

TED MOSBY
TED MOSBY 2025-5-14
编辑:TED MOSBY 2025-5-14
I tried this on the same MATLAB version as yours and I am able to change the "Message type" to "sensor_msgs/Image" in the ROS2 block.
Looks like you are not clicking "OK" in the yellow box after selecting the "sensor_msgs/Image" option:
Once you click "OK" in the yellow box, you will defintely see the changed type.
Hope this helps!

类别

Help CenterFile Exchange 中查找有关 ROS Network Access in Simulink 的更多信息

标签

产品


版本

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by