Please enable JavaScript to view this video and consider upgrading to a web browser that supports HTML5 videos

A shape-shifting robot that can liquefy itself and then reform itself again looks like something straight out of the Terminator movies.

The formidable machine can escape from a cage and then regroup on the other side of the bars.

The engineering team was inspired by the sea cucumber when designing the miniature robots.

They tested the robots by making them jump channels, climb walls, and even split them in half to bring other objects together before putting them back together.

The “Terminator” robot in its huge form (Photo:

The robot in liquid form penetrates the metal bars (Photo:

11676553/Terminator Robot

The robot looks like this scene from Terminator (Image: Ian Fox)

The team also used the robots to remove a foreign object from a model stomach and deliver drugs into the same stomach if necessary.

Lead author Professor Carmel Majidi, a mechanical engineer at Carnegie Mellon University in Canada, said: “The magnetic particles here have two roles.

“One is that they make the material react to an alternating magnetic field, so you can inductively heat the material and cause the phase change.

“But the magnetic particles also give the robots mobility and the ability to move in response to the magnetic field.”