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

8 ビュー (過去 30 日間)
Amrita Ojha
Amrita Ojha 2022 年 6 月 24 日
回答済み: Jagadeesh Konakalla 2022 年 6 月 24 日
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.

回答 (1 件)

Jagadeesh Konakalla
Jagadeesh Konakalla 2022 年 6 月 24 日
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

カテゴリ

Help Center および File ExchangeSpecialized Messages についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by