My racecar is controlled by ROS, and I am trying to make it work using AMCL for navigation. I set a goal to it. In the begining, it was working fine as expected, but soon it crashed into an obstacle because it didn't follow the path from teb_local_planner.
I tested this by making the car go through a U-shaped curve. Here are images of Rviz about the case. The green line is the global path and the orange one is the local path.