darkscyla / MATLAB-Carla-Interface

Interfacing Carla with MATLAB using Python and ROS
106 stars 36 forks source link

Simulink not reading ROS2 topic messages #7

Closed pablo-1212 closed 1 month ago

pablo-1212 commented 1 month ago

image

I have these blocks in Simulink. Enabling autopilot is working fine, but Simulink isn't able to read the images of the camera sensor. Ros2 read image block returns errorCode 1 which means that the codification of the image isn't correct. I've checked and the configuration is ok, matchig the image codification with the ros2 message information of it. Does someone know what's wrong? I've also tried to read a node created by myself that publishes an image and I have the same problem.

pablo-1212 commented 1 month ago

Also, if i read those images through rviz2, they are perfectly shown