Anticollision system for tower cranes