Collaborative robots are already being used by many companies for packaging, assembly, and other tasks. DHL is using Active8 Robots and TRAKRAP to handle packaging tasks. Sawyer is used to adapt to its environment and sense the edge of the tray.
The above video shows this end to end system in action.
[Source]