Contact mechanics model of robot engagement tasks