Text this: Analysis and control of aquatic locomotion on robotic fish