The effects of temperature on the lattice barrier for twin wall motion