Connecting Simulink with Carla Simulator through ROS2 toolbox
This is my block from Simulink. The issue is that the enabling autopilot block is working fine but it seems that ROS2 toolbox isn’t able to read data from the topics. In this case, I’m trying to read an image from one of the camera sensors that the Carla Simulator has. The read image block returns "errorCode =1" which means that the codification of the image isn’t correct. I’ve checked several times and the image codification is bgra8, so that’s the configuration that I have in the block and it still doesn’t work. Also, I’ve readed the data from rviz2 and it works fine. It shows all the sensor data and the images that are being recorded in real time
Anyone knows what could be causing this?This is my block from Simulink. The issue is that the enabling autopilot block is working fine but it seems that ROS2 toolbox isn’t able to read data from the topics. In this case, I’m trying to read an image from one of the camera sensors that the Carla Simulator has. The read image block returns "errorCode =1" which means that the codification of the image isn’t correct. I’ve checked several times and the image codification is bgra8, so that’s the configuration that I have in the block and it still doesn’t work. Also, I’ve readed the data from rviz2 and it works fine. It shows all the sensor data and the images that are being recorded in real time
Anyone knows what could be causing this? This is my block from Simulink. The issue is that the enabling autopilot block is working fine but it seems that ROS2 toolbox isn’t able to read data from the topics. In this case, I’m trying to read an image from one of the camera sensors that the Carla Simulator has. The read image block returns "errorCode =1" which means that the codification of the image isn’t correct. I’ve checked several times and the image codification is bgra8, so that’s the configuration that I have in the block and it still doesn’t work. Also, I’ve readed the data from rviz2 and it works fine. It shows all the sensor data and the images that are being recorded in real time
Anyone knows what could be causing this? ros2 MATLAB Answers — New Questions