How do i publish lanelines data as visualisation marker array message for RVIZ?

8 vues (au cours des 30 derniers jours)
I have a ROS bag file with detected lanelines in image frame.The goal of my model is to convert these image points into World points. The output is the Ego left and Ego right lane in world coordinates.Now i want to publish this data as a ROS message and visualize the lanes in RVIZ.The type of the message has to be 'visualisation marker array' as that is the type accepted in RVIZ.
Problem is i canno feed this data to the bus assignment block as i keep getting the error :'The Bus Assignment block 'ImageToWorld_21_6/Bus Assignment1' could not replace signal 'Markers.Points', because this signal is inside an array of buses 'Markers''
I understand that Bus assignment blocks cannot write data in an array inside array of buses. So i have tried many things already (one such example in picture) but nothing works. Is there a simple way of doing this that i am missing? Please help.

Réponses (1)

Jagadeesh Konakalla
Jagadeesh Konakalla le 24 Juin 2022
Hi Amrita,
Please take a look at the following example which explains how to access variable size arrays, nested messages in Simulink.
Thanks,
Jagadeesh K

Catégories

En savoir plus sur Specialized Messages dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by