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

9 visualizaciones (últimos 30 días)
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.

Respuestas (1)

Jagadeesh Konakalla
Jagadeesh Konakalla el 24 de Jun. de 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

Categorías

Más información sobre Specialized Messages en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by