Can a mobile robot learn from a pedestrian model to prevent the sidewalk salsa?