I have built a omnidirectional robot based on the linobase2 package for humble with 4 motors, teensys, imu, YDLidar scanner and a Realsense depth camera. I use a powerful x86 PC on the robot, so there is no limit in CPU performance.
I can drive around with a Joypad and create a map with slam. This works perfect. No matter how many tuns the robot makes, the map is always alligned. There is no problem with turning, moving etc. The PID parameters and encoder values have beend optimized.
But when it comes to navigation, the position of the robot drifts in the map and never will be realligned with AMCL. I think
amcl is not working properly. I also can not see the red
amcl arrows for possible locations in rviz. But the amcl node is running.
I dont know where the problem is, because everything seems ok. All tf are published. The robot urdf is shown in rviz. use_sim_time is in all config files and in the commands on false. There are no errors or warnings in rviz for the topics.
But there is one problem:
When I run "ros2 launch linorobot2_description
description.launch.py" on the robot it will stuck at
"Waiting for robot_description to be published on the robot_description topic"
altough "ros2 launch linorobot2_description
description.launch.py" is running on the host
The command " ros2 topic echo joint_states" shows only values 0.