This paper proposes a miniature biomimetic robotic fish based on a single joint, with a compact structure, high manoeuvrability and multiple sensors, and a model of freely swimming situation is built based on Lagrangian function. The robotic fish mimics the motion of Thunniform fish, and methods of