We are using gazebo 11 and launching using
ros2 launch rosbot_description rosbot_sim.launch.py
We run teleop_keyboard to control the robot in the simulator, but sometimes the robot does not respond to the commands.
I can see that the cmd_vel topic has messages published to it by:
ros2 topic echo /cmd_vel
The problem is that the robot model in gazebo is not responding.
If we shutdown gazebo (by ctrl-c in the launching terminal) and restart - sometimes the problem is fixed sometimes it is not. The behaviour is strange.
Please also note that we use ROS_LOCALHOST_ONLY=1
Our suspicion is that the problem relates to how gazebo and the robot model is launched, but we do not know where to begin to debug this issue. Please can you provide any clues for us? Thank you for your help.