How do i publish lanelines data as visualisation marker array message for RVIZ?
9 次查看(过去 30 天)
显示 更早的评论
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.
0 个评论
回答(1 个)
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
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Specialized Messages 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!