Dual-Loop Optimal Control of a Robot Manipulator and Its Application in Warehouse Automation | Synapse