Helping soft robots turn rigid on demand