I tried to run the mapping, localization and path planning launch files in the real robot but it does not work. When I try to launch the localization launch file it gets:
It’s very strange that no tf data is received. I assume you checked the robot was working correctly because I checked just now and I receive tf messages. If you didn’t check, this is what you can do:
Are you able to receive tf messages in ROS 1? you can echo the topic to check. What about scan, can you move the robot? If this works, then you can discard the robot not working as the issue.
Next you can move to the ros1_bridge. Is it running? Is it actually bridging the topics you need? what happens when you check ros2 topic echo /tf?
It makes sense that cartographer_ros doesn’t work if there are not TFs. So the challenge becomes finding the reason why you are not receiving the data that the robot is supposed to provide. If you find that the robot does in fact not respond, please let me know.
Note the output in the ros1_bridge terminal, a succesful bridge connection should look like that. In your case, there are no connections made.
If you correctly followed the instructions, including running the bridge in a fresh terminal, then the most likely reason for your error is that your rosject’s documents (specifically, the catkin_ws) are corrupted.
What you can do is download all of the work you have done in ros2_ws/src and refork the course rosject: