필터 지우기
필터 지우기

ROS Toolbox: Header.FrameId for publisher /move_base_simple/goal not recognised

조회 수: 93 (최근 30일)
Dario
Dario 2024년 6월 27일 14:00
편집: Umar 2024년 7월 19일 8:03
Good afternoon,
I am trying to move a mobile robot (MIR) declared in ROS from simulink. In order to do that i added to my project a publisher node from ROS Toolbox with node '/move_base_simple/goal', then with the Blank Message of type '/geometry_msgs/PoseStamped' i created a bus giving the coordinates that i need and "map" for the frameId. when i run the program the robot does not move, and if i type 'rostopic echo /move_base_simple/goal' on matlab i can notice that the the frameId field is empty, while the coordinates are correct, someone knows why the program can't read the frame Id? (i tried to move the MIR in ROS with the same command and it works)
  댓글 수: 9
Dario
Dario 2024년 7월 19일 6:38
편집: Dario 2024년 7월 19일 6:40
Good morning,
This is che command i send from Simulink to ROS:
if i check the result with 'rostopic echo /move_base_simple/goal', both in matlab and ROS, i see the coordinates but the frameID field is empty, and the robot does not move. (i also tried without giving Header.stamp.sec and Header.stamp.nsec but the result is the same).
And yes, if i launch the command /move_base_simple/goal from ROS, with the same inputs, it works.
This is the example of the command on ROS:
Umar
Umar 2024년 7월 19일 8:02
편집: Umar 2024년 7월 19일 8:03
Hi Dario,
In your comments, I see the screenshot you are sharing, verify that the topic you are publishing to in Simulink matches the topic subscribed to by the ROS node responsible for moving the robot. Consistency in topic names and message formats is essential for proper communication. By aligning the message structure in Simulink with the expected format in ROS and ensuring that all necessary fields, including the frameID, are correctly populated, you should be able to resolve the issue of the robot not moving when sending commands from Simulink. Remember, attention to detail in message formatting is key to seamless communication between different systems.

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 ROS 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