The present invention encodes this knowledge into a database of preferred loading conditions and creates a set of automated maneuvers that accomplish the loading actions. The invention assumes that the truck has a drive-by-wire kit and that it is capable of moving under computer control. This invention provides a set of tools that allows for the automation of the loading process. The invention is relevant to situations where the truck is autonomous and the excavator is not, or when both are automated.