Global regulation of a planar robot arm striking a surface