The impact dynamics of robotic arms