I want to understand the algorithm that calculates the time-absed motion of the leg's joints within the walker demo. I do not understand exactly how the calculate-torque methods work and how they relate to the passed time.
The technique used in most of the demo breve simulations is to assume that each joint has a sine wave motion as a function of time, as shown in this equation
time = ( controller get-time ).
torque = W * sin( X * ( time + Y ) - Z.
W controls the amplitude of the wave by scaling the sine equation
X controls the frequency of the wave by scaling the time value
Y controls the phase-shift of the wave (relative to other joints in the body) by offsetting the time value
Z controls the vertical shift of the wave by adding a scalar value to the output.
Need explanation of Walker Demo's leg-algorithm
The technique used in most of the demo breve simulations is to assume that each joint has a sine wave motion as a function of time, as shown in this equation
time = ( controller get-time ). torque = W * sin( X * ( time + Y ) - Z.W controls the amplitude of the wave by scaling the sine equation
X controls the frequency of the wave by scaling the time value
Y controls the phase-shift of the wave (relative to other joints in the body) by offsetting the time value
Z controls the vertical shift of the wave by adding a scalar value to the output.