ROS Toolbox: Header.FrameId for publisher /move_base_simple/goal not recognised
8 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Dario
el 27 de Jun. de 2024
Respondida: Jagadeesh Konakalla
el 18 de Nov. de 2024 a las 12:24
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 comentarios
Umar
el 19 de Jul. de 2024
Editada: Umar
el 19 de Jul. de 2024
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.
Respuestas (1)
Jagadeesh Konakalla
el 18 de Nov. de 2024 a las 12:24
Hi,
I do not have your entire model. My suggestion for you to use the Header Assignment block as described in the following page.
Thanks,
Jagadeesh K
0 comentarios
Ver también
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!