Header Assignment Ros not working for Header.FrameId

6 visualizaciones (últimos 30 días)
Hocine YAKOUBI
Hocine YAKOUBI el 21 de Jul. de 2023
Comentada: Hocine YAKOUBI el 24 de Ag. de 2023
Hi,
I am using the example given by matlab for update header field in ros message.
open_system('rosHeaderAssignmentBlockExampleModel.slx').
THis example works fine.
I wanted to publish the frame id : lidar_link in a topic /my_topic, so I added a publisher with same message type(sensor_msgs/LaserScan).
The publisher bloc is connected to Bus assignment where i selected Header.FrameID, the bus assignment input is connected to Header Assignment block.
All other selection (Header.Stamp), rangeMin,Range max ...works fine but Header.FrameId not working. it display frame_id: ''.
Any adea to how to resolve that ?
Thanks by advance.
  3 comentarios
Saksham
Saksham el 18 de Ag. de 2023
Hi Hocine,
Please share the Simulink model made by you. That will be helpful to me in reproducing the issue.
Thanks
Hocine YAKOUBI
Hocine YAKOUBI el 24 de Ag. de 2023
I just tried to reproduce the error, but the issue has disappeared. (i dont know why !!)
Best regards,
Hocine

Iniciar sesión para comentar.

Respuestas (0)

Community Treasure Hunt

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

Start Hunting!

Translated by