Header Assignment Ros not working for Header.FrameId

조회 수: 3 (최근 30일)
Hocine YAKOUBI
Hocine YAKOUBI 2023년 7월 21일
댓글: Hocine YAKOUBI 2023년 8월 24일
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
Saksham
Saksham 2023년 8월 18일
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 2023년 8월 24일
I just tried to reproduce the error, but the issue has disappeared. (i dont know why !!)
Best regards,
Hocine

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 ROS 2 Network Access in Simulink에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by