Dynamic trajectory planning for mobile robot navigation in crowded environments