get deflection pattern - ksoltan/RoboFish GitHub Wiki
get_deflection_pattern
Generates the order of joint movement and the timing between each joint's critical point.
Parameters:
joint_lengths - Array of respective lengths of each joint
posture_func - Swimming model function
Returns:
Multidimensional array whose n rows are in order of joint movement.
Each nth row is formatted as [num_joint,
timing_from_previous_joint, amplitude].
Timing represents the time between consecutive joints' critical
points (both troughs and peaks).
Timing for first joint's critical point is measured from the last
joint's critical point.