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

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.

2 comentarios

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.
did you guys solve it.i am also facing same problem.

Iniciar sesión para comentar.

Respuestas (1)

TED MOSBY
TED MOSBY el 14 de Mayo de 2025
Editada: TED MOSBY el 14 de Mayo de 2025
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!

Productos

Versión

R2024b

Etiquetas

Preguntada:

el 14 de Mayo de 2025

Comentada:

RAI
el 4 de Feb. de 2026

Community Treasure Hunt

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

Start Hunting!

Translated by