Recently, the demand for service robots that move autonomously in a crowded environment, such as stations, airports, and commercial facilities has increased. Such robots are required to move to a destination without hindering the progress of the surrounding pedestrians. Previous papers proposed collision avoidance methods based on the direction and distance of the destination of the robot, and the position and velocity of pedestrians in the vicinity. However, in a crowded environment, the behavior of a robot may affect other pedestrians, or the behavior of a pedestrian facing the robot may affect other pedestrians. Moreover, considering the motion strategy used by a pedestrian in a crowded environment, the impact on other pedestrians can be reduced by the robot following the pedestrians moving in the direction in which the robot wants to move. This navigation method has not been proposed thus far. Therefore, in this paper, we propose a method that considers the impact of the robot on surrounding pedestrians and the impact of those pedestrians on other pedestrians. The robot determines the avoidance or following action based on the traveling direction of the surrounding pedestrians.