Obstacle avoidance behaviour during locomotion door