Simulating actuator energy consumption for trajectory optimisation. (September 2018)