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

조회 수: 2 (최근 30일)
진호
진호 2025년 5월 14일
댓글: Aditya 2025년 7월 26일
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