Robot panic peaked in 2015 - so where will AI go next?

Experts have warned about the havoc robots could cause humanity. How do we ensure machines are friends rather than foes?