Automation of truck side loading