detection publisher problem in simulink
I have a problem with using simulink to create a node about detection. Does anyone saw this problem previous and know the solution?
I set the blankMsg as polygonStamped. and in the Publisher also is polygonStamped.
The matlab function named outputMsg is very similiar with posted in task2.
I cut some pictures for this problem.
Probably this error is related to the name of the Simulink data bus. I realize it's a little confusing, but check out this tutorial:
https://www.mathworks.com/help/robotics/examples/work-with-ros-messages-in-simulink.html
And look under "Task 3 - Work with Messages Using MATLAB Function Block"
If you look at it, it might have the name of your previous example you cloned (e.g., task1simulink or laserscan2image) as part of its name. You will need to select the SL_Bus_..... to match what your new filename is. I think if you do that, things will work out! :)