Next Article in Journal
Proper Technical Maintenance of Combine Harvester Rolling Bearings for Smooth and Continuous Performance for Grain Crop Agrotechnical Requirements
Previous Article in Journal
OT-Equator® Attachments Comparison for Retaining an Early Loaded Implant Overdenture on Two or Three Implants: 1 Year RCT Preliminary Data
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

High-Efficiency Closed-Loop Control of a Robotic Fish via Virtual Musculoskeletal Methodology

1
School of Automation Science and Electrical Engineering, Beihang University, Beijing 100191, China
2
School of Mechanical Engineering and Automation, Beihang University, Beijing 100191, China
3
School of Astronautics, Beihang University, Beijing 100191, China
*
Author to whom correspondence should be addressed.
Appl. Sci. 2021, 11(18), 8602; https://doi.org/10.3390/app11188602
Submission received: 25 August 2021 / Revised: 12 September 2021 / Accepted: 13 September 2021 / Published: 16 September 2021
(This article belongs to the Section Robotics and Automation)

Abstract

:
Improving propulsion efficiency holds the promise of enabling the robotic fish to work for a long time with a limited battery in its small body. In this paper, for the swimming of a bionic robotic fish, we present a virtual musculoskeletal control method from the bionic model of the joint driven by agonist muscle and antagonist muscle. A closed-loop method composed of two loops is proposed as a rule of thumb for the speed control of the robotic fish. The outer loop adjusts the swimming speed using the speed deviation; the inner loop regulates the stiffness according to the virtual muscle spindle feedback to fit the water environment. Compared with the proportion control, the evaluation results show that the virtual musculoskeletal methodology increases the efficiency by 3.4 % in the steady flow and 7 % in the Karman-vortex flow. This algorithm provides a new idea for the joint-space control of the bionic robots that need to reduce the energy consumption of movements.

1. Introduction

Robotic fish, which is usually driven by motors in the joint space, is a kind of bionic device that imitates the body and the control mechanism of fish in nature. Robotic fish are widely applied in many fields, such as marine exploration, underwater rescue, fish breeding, and biotechnology research [1]. As robotic fish has a limited power supply, long working time in these applications requires it to swim efficiently. Prior works on the propulsion efficiency of robotic fish mainly focus on two aspects: (1) generating fish-like swimming patterns by learning the swimming model from the fish in nature and (2) designing control algorithms according to the characteristics of the robots and the effects of the flow [2,3].
The swimming model, including the kinematic and the dynamic model, is the basic challenge for the efficient propulsion of robotic fish. In [4], the multiple-joint kinematic model is presented to imitate the carangoid. Then, the control of the joints in this model is learned from the swimming data of the carangoid by the central pattern generator (CPG). Afterward, the work in [5] discussed the relationship between the CPG-based locomotion control and the energy consumption of the miniature self-propelled robotic fish, which provided a reference for improving the energy efficiency and locomotion performance of the versatile swimming gaits. The work in [6] proposes a function of the relationship between the head and the whole body to simulate the swimming pattern of the carangoid. Moreover, the angles of the joints in this function are discretized to form a lookup table, which achieves cruise and turning patterns in the experiment. Meanwhile, the work in [7] designs the caudal fin by combining the skeleton and the tail fin. The skeleton moves relatively while the fin swings to affect the efficiency. Although the experiment shows how the stiffness, the waveform, and the frequency of the skeleton significantly impact the propulsion efficiency, the mathematical model of the parameters is still unclear. Similarly, Silas Alben uses three-dimensional particle image velocimetry (PIV) to record the flow generated by different fins. The results indicate that the shape nonlinearly affects the hydrodynamics, and the length influences the forward speed [8]. The literature emphasizes the hydrodynamic performance of the wake vortex when robotic fish swims by analogizing the movement of the caudal fin [9]. In [10], an elaborate model with actuator dynamics was introduced to demonstrate the swimming behavior of the carangiform locomotion-type fish robots. However, there are still some uncertainties. Additionally, researchers have done many simulations and experiments to find out the relationship between typical wake vortex and propulsive efficiency [11,12].
The control algorithms of high propulsive efficiency are also widely studied recently. The work in [13] introduced the mainstream robotic fish propulsion mechanism and control method, and guided the robotic wave fish’s kinematic optimization and motion control. The work in [14] designed an extremum-seeking method to control the robotic fish to swim along a predetermined trajectory independently on the model. Moreover, a robotic fish consisting of a body, pectoral fins, and a caudal fin is controlled by a CPG model to swim point-to-point with the feedback from the visual system and the gyroscope [15]. In [16], researchers applied two control methods named computed torque method and feed-forward method on a four-joint, six-degrees-of-freedom robotic fish with a horizontal caudal fin. The work in [3] addresses an iterative learning control (ILC) method to a two-link carangiform robotic fish. The P-type ILC algorithm works well for the highly nonlinear model of the robotic fish and the nonaffine in the input. Chen et al. [17] define the natural oscillation of a class of flat-body fishes as a free response to the flow field under the damping compensation. Consequently, nonlinear feedback controllers are proposed to imitate the natural oscillation of the body, which results in a prescribed average velocity. The work in [18] introduced a particle swarm optimization (PSO) algorithm to optimize the characteristic parameters of the CPG model to obtain the maximum average speed and improve efficiency. In addition, research [19] has been conducted on the control of pectoral fins to improve propulsion efficiency.
The problem of high-efficient propulsion has been widely studied. However, the efficiency of the robotic fish is still far from the expectations of the application. Why is the propulsive efficiency of the robotic fish much lower than that of the fish in nature? When a fish swims, power is generated by the myotome muscle on either side of the body to overcome the drag [20]. A wave of muscle activation/contraction passes alternately down each side of the body from head to tail in an oscillation cycle. A wave of curvature also travels down the body due to the combined effects of muscle activities, the physical properties of the skeletal elements, and the interaction between the fish’s body and the reactive forces from the water in which it moves [21,22]. The muscles of the fish contract to generate the power for the swimming thrust. In contrast, the motors in the joints of the robotic fish generate the power for the oscillation to achieve forward propulsion. Therefore, applying the control mechanism of the fish muscle onto the motors in the joint space may be a feasible way to improve the efficiency of robotic fish propulsion [23].
In this paper, we aim to derive the high-efficient methodology from the fish in nature and design a novel closed-loop virtual musculoskeletal control method based on the dynamic model of the robotic fish and the musculoskeletal model of the biotic system. The main contributions of this paper are as follows: (1) a virtual musculoskeletal control method is the first used to raise the propulsion efficiency of robotic fish; (2) a closed-loop control framework, which improves the propulsive efficiency, is constructed by implementing the virtual musculoskeletal mechanism on the dynamic model of the robotic fish; and (3) a series of experiments is conducted to validate the proposed method in various swimming velocities and different parameters of the algorithm and hydrodynamic environment.
The rest of the paper is organized as follows. The mathematical model of a two-joint robotic fish and the problem formulation is stated in Section 2. The model of the musculoskeletal system, the control structure, and the designed strategy are presented in Section 3. Experimental results are presented in Section 4, and the paper ends with the conclusion in Section 5.

2. Modeling of Two-Joint Robotic Fish

2.1. The Kinematic Model

Figure 1a,b shows the prototype of a two-joint robotic fish, which consists of three parts: the head, body, and tail. The length of the robotic fish is 0.6   m and the front 1 / 3 part is the head, whose length L h is 0.2   m . L 1 and L 2 are the length of the body and the tail, respectively. They are greater than that of the driving motor. Let L motor be 0.1   m , min L 1 , L 2 > L motor . In Figure 1c, O 1 is the gravity center of the body and O 2 is the gravity center of the tail. F 0 is the resistance force of the flow to the fish. F 1 is the hydrodynamic force to the body and F 2 is the hydrodynamic force to the tail. D 1 is the point of the action of F 1 while D 2 is the point of the action of F 2 . The solid straight line stands for the midline of robotic fish, while the dashed curve represents the midline of the fish modeled by Lighthill [24]. The f ( x ) is the position of the robotic fish to the axis and g ( x ) is the position of the live fish to the axis.
g ( x , t ) = ( c 1 x + c 2 x 2 ) sin ( 2 π λ x + ω t )
where c 1 and c 2 stand for the first and the second coefficient of wave amplitude envelope, respectively; λ denotes the wavelength of the body; x is the body axis; and ω is the body wave frequency.
Moreover, S y is the area between f ( x ) and g ( x ) . We set L 1 = 0.24   m and L 2 = 0.16   m . Then, S y obtains its minimum, which indicates that the swing curve of the robotic fish is close to the fish in nature to most. Thus, the motion functions of the two joints are as follows:
θ 10 ( t ) = θ 10 A × sin ( 2 π f t ) θ 21 ( t ) = θ 21 A × sin ( 2 π f t + ϕ )
where θ 10 ( t ) is the angle between the body and x-axis; θ 10 A is the amplitude of θ 10 ( t ) ; θ 21 ( t ) is the angle between the tail and the body, while θ 21 A is the amplitude of θ 21 ( t ) ; and ϕ is the phase difference between the two joints.

2.2. The Dynamical Model

The dynamical model of the two-joint robotic fish is established with Lagrange–Euler method shown as follows:
τ i = d d t [ L q i ˙ ] L q i
where q i is the system variable, q i ˙ is the first derivative of the system variable, τ i is the generalized force or torque of the system, and i is the number of system variables. As we set that the robotic fish only swims horizontally, the gravitational potential energy is constant. Thus, L is the kinetic energy of the system, which is given in the Appendix A.
q i represents the three degrees of freedom in the model: θ 10 , the angle of the first joint; θ 21 , the angle of the second joint; and X 0 , the x-coordinate of the head.
The τ i is expressed as
τ 1 = L d 1 sin θ 10 L d 1 cos θ 10 × F 1 + L 1 sin θ 10 + L d 2 sin ( θ 21 + θ 10 ) L 1 cos θ 10 + L d 2 cos ( θ 21 + θ 10 ) × F 2 + M 1 τ 2 = L d 2 sin ( θ 21 + θ 10 ) L d 2 cos ( θ 21 + θ 10 ) × F 2 + M 2 τ 3 = F 0 · 1 0 + F 1 · 1 0 + F 2 · 1 0 ,
where τ 1 , τ 2 , and τ 3 are the non-conservative forces to generalized coordinates θ 10 , θ 21 , and X 0 , respectively. M 1 and M 2 are the torques generated by the first and second joint. F 0 , F 1 , and F 2 are the hydrodynamic forces on the head, body, and tail, respectively.
Neglecting the force of friction, the resistance force to the head is
F 0 = 1 2 ρ C 0 V 0 2 A 0 · ( 1 , 0 ) T ,
where ρ is the density of the fluid, C 0 is the resistance coefficient of the head, V 0 is the velocity of the robotic fish, and A 0 is the maximum cross-sectional area of the head.
By simplifying the body as a plane, the hydrodynamic force to the body is
F 1 = 1 2 ρ C 1 ( V c 1 · n 1 ) 2 A 1 · n 1 ,
where C 1 is the resistance coefficient of the body and A 1 is the area of the body. The velocity of the body on point O 1 is V c 1 = ( X ˙ 0 L 1 sin θ 10 θ ˙ 10 , L 1 cos θ 10 θ ˙ 10 ) T . The normal vector of the body is n 1 = ( sin θ 10 , cos θ 10 ) T .
The hydrodynamic force of the tail is predigested in the same way.
F 2 = 1 2 ρ C 2 ( V c 2 · n 2 ) 2 A 2 · n 2
where C 2 is the resistance coefficient of the tail. A 2 is the area of the tail. The velocity of the tail on point O 2 is V c 2 = ( X ˙ 0 L 1 sin θ 10 θ ˙ 10 L c 2 sin θ 20 θ ˙ 20 , L 1 cos θ 10 θ ˙ 10 + L c 2 cos θ 20 θ ˙ 20 ) T , the normal vector of the tail is n 2 = ( sin θ 20 , cos θ 20 ) T .
Substitute τ i and L into Equation (3). The dynamic model of the robotic fish is
D ( Q ) Q ¨ + H ( Q , Q ˙ ) + G ( Q ) = τ
where D ( Q ) is the inertia matrix, Q is the joint variable, H ( Q , Q ˙ ) is the vector of centrifugal force and the Coriolis force, and G ( Q ) is the gravity vector. Their details are given in the Appendix A.

2.3. The Propulsive Efficiency

The propulsive efficiency is defined as the ratio of the useful work to push the fish forward and the total work consumed by all components of the robotic fish.
η = W u s e f u l W t o t a l
In our model, the components that need to be actuated are the two joints. The total work in one period is
W t o t a l = 0 T ( M 1 ( t ) θ ˙ 10 ( t ) + M 2 ( t ) θ ˙ 21 ( t ) ) d t .
As the swing of the joints generates the hydrodynamic force to push the fish forward in the X direction, the useful work in one period is
W u s e f u l = 0 T ( F 1 x ( t ) + F 2 x ( t ) ) · V 0 ( t ) d t .

3. The Virtual Musculoskeletal Methodology

3.1. Modeling the Muscular Skeletal System

The mathematic model of the musculoskeletal system of the fish, shown in Figure 2, includes three parts: The muscles are actuators to produce torque. The spindles in the extrafusal muscles are mechanoreceptors to provide dynamic feedback for the closed-loop control. The central nervous system (CNS) in the spinal cord operates the dynamic motions of these muscles. The movement is driven by agonist muscles and antagonist muscles controlled by the CNS’s excitation signals. The excitation signals are produced from two sources of information: (1) the cerebellum plans the control goal in joint space according to the movement task and (2) the CNS unifies this goal and the feedback signals from the spindles to send signals to the muscles. The CNS adjusts the position and speed of the swing and varies the total stiffness and viscosity over a considerable range. This adjustment realizes the compliant action to the water environment.

3.1.1. The Model of the Muscle

The three-element Hill muscle model is a representation of the muscle mechanical response. The model is constituted by a contractile element (CE) and two nonlinear spring elements: one in series (SE) and another in parallel (PE). Due to the series connection of the tendon and the muscle belly, by ignoring the angle between them, the force of the muscle is equal to the force produced by the parallel units consisting of CE and PE.
The force–length relation of PE is
F PE F max = K PE = 0 if L PE < L slack PE k PE ( L PE L slack PE ) 2 1 if L PE L slack PE ,
where F PE is the force generated by PE, L PE is the current length of PE while L slack PE is the length when muscle is slack, k PE is a coefficient relating to the property of muscle fibers, and K PE is the coefficient to describe the rate to the maximum force.
The force–length equation and the force–speed equation illustrate the feature of CE. In Equations (13) and (14), the force is a quadratic function to the length and a hyperbolic function to the speed.
F L C E F max = K L C E = 1 L C E L 0 C E w 2
F v C E F max = K v C E = F max v max β α v F max ( β v max + v )
where L CE is the muscle length, L 0 CE is the length when the muscle achieves maximum isometric contraction force F max , w is used to control the width of the curve, K L CE is the force–length coefficient of contraction element, v max is the maximum speed of muscle contraction, α and β are coefficients relating to characteristics of muscle fibers, and K v CE is the force–speed coefficient.

3.1.2. The Model of the Spindle

The spindle produces the feedback information with three component processes illustrated in Figure 2. At first, the intrafusal fibers transfer the movement of muscle to nerve stretch. The fibers mechanically filter muscle length x ( t ) to a stretch of the sensory ending μ ( t ) . This component is given by a nonlinear differential equation:
d μ ( t ) d t + b ( c μ ( t ) x ( t ) + g x ( t ) μ ( t ) g ) = d x ( t ) d t ,
where b and c are constants that affect the degree of nonlinearity, and g is a reference length specifying the lower bound of the position range where the muscle spindle responds to stimuli.
Then, the transducer encoder converts the nerve stretch into neural signal r ( t ) . The linear dynamics of the transducer encoder is
r ( t ) = N ( μ ( t ) + τ e d d μ ( t ) d t ) ,
where N represents the small-signal sensitivity of the receptor and τ ed = 0.1 s is the time constant of encoder dynamics.
Finally, r ( t ) is conducted to the spinal cord to process an electromyographic (EMG) signal e ( t ) for muscle activation. The reflex pathway through the spinal cord is modeled as a time delay of 0.03 s.
e ( t ) = r ( t 0.03 )

3.1.3. The Excitation Model of the CNS

The CNS mediates the task command and the reflex from the muscle and then yields signals to activate the muscles. It incentives the contraction of muscle by EMG that comprises the information from the cerebellum and the feedback from the spindle. The information in the EMG is separated into two parts: One is from the cerebellum. Its strength is represented by a coefficient a ( 0 < a < 1 ) . The other is from the spindle. The e ( t ) represents the excitation signals related to the spindle information. Thus, adding the EMG into the muscle model in Equations (12)–(14), the equation of the muscle excited by CNS is
F = ( K L C E K v C E ( a + e ( t ) ) + K P E ) F max .

3.2. Virtual Musculoskeletal Method

Abstracting the strategy from the bionic model, we design the virtual musculoskeletal methodology for the activation of the joints.
Equation (18) contains the mechanics of the muscle and the activation of CNS. Suppose that the agonist and antagonist muscles have the same stiffness, maximum force, and spindle signal, then the torques generated by both muscles at the joint are
M a g = ( K L C E K v C E ( a + e ( t ) ) + K P E ) M max ,
M a n = ( K L C E K v C E ( a + e ( t ) ) + K P E ) M max ,
where M max is the maximum torque of each muscle.
Equation (19) subtracts Equation (20), and therefore the torque of the muscular joint is
M = ( 2 K L C E K v C E a + 2 K L C E K v C E e ( t ) + 2 K P E ) M max ,
In Equation (21), K L C E and K P E indicate the relationship between the length of the muscle and the torque, and M max is a constant. We set K Δ θ to take the place of 2 K L C E M max and 2 K P E M max . Thus, the torque of the joint is
M = ( K K v C E a + K K v C E e ( t ) + K ) Δ θ ,
where Δ θ represents the position of the muscle to the equilibrium.
The torque of the joint includes three parts; parameter K is the stiffness of the joint and K K v CE a represents the response of the muscle to the control signal from CNS. As our goal is to control the robotic fish to follow a given speed, this part could be replaced by adjusting the speed. The feedback from the spindle e ( t ) contains the nonlinearity, K K v CE is replaced by a coefficient H to adjust the feedback intensity of the spindle. Therefore, the equation of the torque of the joint is simplified as
M = ( K v ( v * v ) + H e ( t ) + K ) Δ θ ,
where v * is the planned swimming speed of the robotic fish and v is the real swimming speed of the fish.
Equation (23) shows that the torque of the joint contains three parts of activation: (1) the adjustment from the CNS which is dependent on the task planning and the real swimming state, (2) the feedback signal from the muscle spindle, and (3) the stiffness of the joints set by the task planning. To control the robotic fish, Δ θ represents the deviation of a given angle and the real angle. Therefore, the virtual musculoskeletal control method is
M = K v ( v * v ) + H e ( θ , θ ˙ ) + K ( θ * θ ) ,
where e ( θ , θ ˙ ) indicates the spindle-like feedback in the controller and H is the coefficient of this feedback. The spindle-like feedback is designed as a fuzzy controller, whose inputs are the angle and the angular velocity. This controller imitates the nonlinearity of the muscle feedback well [23]. This controller needs three kinds of information from the planning algorithm: a given swimming speed, a set stiffness, and a given angle of the joint.
As the signals delay in the spinal cord and nerve system, a low-pass filter in Equation (25) is added after the given signal to the joint.
d ( s ) = 1 τ e d s + 1

3.3. The Closed-Loop Control Structure

The control algorithm is designed to control the robotic fish compliantly and efficiently. When swimming, the biological fish changes the feature of muscles to control the body’s posture and the swing speed to fit the water environment. In the control process, the fish perceives the flow field of the water. Then, the nervous system mixes this information with the posture and the swimming speed to decide how to adjust its swimming parameters. When the neural signals reach the muscles, the muscles contract for the swing of the fish. Consequently, the fish efficiently swims at an expected speed. In this way, the control process designed to mimic the fish in nature is shown in Figure 3.
The robotic fish is controlled in a closed-loop procedure. At first, the task planning module sets the swimming velocity and the stiffness of both joints. The lookup table is a fitting curve function, shown in Figure 4, which outputs the frequency f and the amplitude A of the wave of the robotic fish (All subsequent curve figures in the paper are drawn using MATLAB software.). We regulate the input of this table according to the error between the set velocity and the actual swimming velocity. This negative feedback helps the robotic fish follow the set velocity from the task planning. Second, Equation (2) transforms the wave to angles in the joint space. Third, Equation (24) is decomposed into two equations of two joints.
M 1 = d ( s ) [ K v 1 ( v * v ) + H 1 e 1 ( θ 10 , θ 10 ˙ ) + K 1 ] ( θ 10 * θ 10 ) M 2 = d ( s ) [ K v 2 ( v * v ) + H 2 e 2 ( θ 21 , θ 21 ˙ ) + K 2 ] ( θ 21 * θ 21 )
where M 1 and M 2 are the torques to drive the joints, K v 1 and K v 2 are the gains for the velocity deviation, H 1 and H 2 are the intensive coefficients of the feedback in the joints, e 1 and e 2 are the virtual spindle functions, K 1 and K 2 are the stiffness set by the task planning module, and “*” indicates that the value is the given value.
The last part of the procedure is the movement of the robotic fish under the excitation of M 1 and M 2 . Two models restrain the robotic fish: one is the dynamic model, which is analyzed by the Lagrange method, the other is the hydrodynamic model, which describes how the flow generates the force on the parts of the robotic fish. While the fish is swimming, the swimming velocity and the angles of the joints are fed back to the control algorithm in real-time.

4. Performance Evaluation

The wavelength of the body is λ = 0.75   m . Therefore, the phase difference is 1.57   rad . To ensure the endpoints of the body and the tail coincide with the corresponding points on the midline of the live fish, let θ 10 A = 0.3144   rad and θ 21 A = 1.0123   rad . The parameters in Figure 1 are shown in Table 1. The hydrodynamic parameters and controller parameters are shown in Table 2.
The virtual musculoskeletal methodology in this paper is compared with the proportion control, which is a widely used method in the joint space of the robotic fish. In the figures of this paper, the subscript “PM” means the proportion method, and “VMM” means the virtual musculoskeletal method.
We evaluate the performance when the robotic fish is controlled via the virtual Musculoskeletal closed-loop algorithm. The simulation results are obtained from three aspects: (1) the robotic fish swims in the steady flow field; (2) the robotic fish swims in the Karman vortex field; (3) how the controller’s parameters affect the efficiency and other indices of performance.

4.1. In Steady Flow

The robotic fish swims in a steady flow. The given speed is v * = 0.4   m / s at the beginning, and it steps to 0.5   m / s at 15   s . How the feedback of the speed in the control structure stabilizes the swimming speed is illustrated in Figure 5 and Figure 6. In Figure 4, the relationships between the forward speed v and the frequency f and the amplitude A of the oscillation are depicted. When we set the frequency and the amplitude for desired swimming speed, such as 0.4   m / s and 0.5   m / s , Figure 5 shows that if the speed feedback is not added to form the closed-loop control, there will be a deviation between the real swimming speed v _ without   feedback and the given speed v * .
Because the robotic fish model is not exactly the same as the live fish, the function derived from the data of the fish in nature does not fit the robotic fish perfectly. Additionally, the speed cannot follow the given value if there is a disturbance in the water.
Figure 6 sketches the speed following when the robotic fish is controlled with speed feedback. The speed of the PM( v _ PM ) and the VMM( v _ VMM ) both follow the given speed. After the step at 15   s , the response time of the VMM and that of the PM is very close.
Figure 7 shows the angle of the joint between the head and the body. Both curves of the two control methods are stable sinusoidal waveforms that follow the given θ 10 with a 30 ° delay. This delay is caused by the calculation time, the response time of the dynamic model, and the hydrodynamic model. The curve of VMM has an offset of the amplitude because of the VMM complaints to the force from the water. As the hydrodynamic forces on the robotic fish are not completely symmetrical, the offset of the amplitude is added in the wave.
The angular velocity of the tail relative to the head is illustrated in Figure 8. The angular velocity of VMM ( θ ˙ 21 _ VMM ) changes more smoothly than that of PM ( θ ˙ 21 _ PM ). The virtual spindle model in the VMM adjusts the torque according to the angle and the angular velocity of the joints. This adjustment mimics how the muscles change the stretching speed and power to improve the smoothness of the movements.
Figure 9 shows the output torque of the motor in the second joint. The magnitude of M 2 of the VMM ( M 2 _ VMM ) is 0.5   Nm less than that of the PM ( M 2 _ PM ); M 2 of the VMM also changes more smoothly than the PM. In the closed-loop control, the VMM leads the flexibility and adaptability of the muscles into the controller in the joint space. Thus, the joint can adapt to the environment to avoid the output torque changes radically. Thereby, the smoothness of the torque can reduce energy consumption. Figure 10 depicts the feedback signal of the virtual spindle model in the VMM. The fuzzy controller e ( t ) generates the spindle-like feedback signal to regulate the closed-loop controller to fit the disturbances in the environment. e 1 and e 2 are periodic signals transformed from the angular velocity and the angle of the joints. As the torque and the hydrodynamic force interact with the movements of the joints, e 1 and e 2 add the same-frequency virtual spindle signals onto the sinusoidal motion of the joints. Therefore, the body and the tail fin can use the hydrodynamic force of the fluid better to reduce energy consumption and improve propulsive efficiency.
Figure 11 gives the results of how much the VMM increases the propulsive efficiency of the robotic fish. Before 2.5   s , in the start-up phase, these two methods have the same efficiency. When the robotic fish reaches the speed of 0.4   m / s , the efficiency of the VMM ( η _ VMM ) is one percentage point higher than that of the PM ( η _ PM ). The given speed jumps to 0.5   m / s at 15   s , and both efficiencies decrease with increasing speed. At 0.5   m / s , the VMM plays a more significant role in improving the propulsive efficiency. The efficiency of VMM is 32 % , which is 3.4 percentage points higher than that of the PM.

4.2. In Karman Vortex Flow

Fish often swim in water that is full of disturbances. Therefore, the control strategy of the robotic fish must adapt to the flow environment. The Karman vortex is a typical vortex flow field for the environment test of the robotic fish. We extend the analysis of the algorithm in a steady flow to the Karman vortex flow field. We generate the Karman vortex shown in Figure 12 in FLUENT and add the vortex to the swimming environment of the robotic fish.
The speed of the robotic fish swimming in the Karman vortex is depicted in Figure 13. The VMM follows the given speed faster at the beginning, whose rise time is 0.4   s shorter than the PM. The overshoot of the VMM, meanwhile, is 18 % greater than that of the PM. The VMM, which has the characteristics of muscles, can use the flow vortex to boost the speed. Consequently, the robotic fish loses some ability to adjust its speed, leading to a greater overshoot. At 15   s , the overshoot of the VMM still affects the response of the speed that the following of the speed is a little slower compared with the PM.
The angles of the joints in Figure 14 show that the VMM adjusts the movements of the robotic fish to adapt to the vortex in the water. As a result, the robotic fish swims with higher efficiency than controlled via the PM. The actual angle of the first joint has phase lag and positive deviation. The phase lag of the waveform is 38 ° , which is greater than the lag in the steady water; the offset is 1.5   rad because the vortex affects the hydrodynamic force on the robotic fish.
In the Karman vortex, the VMM can improve the propulsive efficiency more significantly than it does in the steady flow. Figure 15 illustrates that the VMM increases the efficiency about 10 % than the PM. When the speed is 0.4 m/s, the η of PM is 36 % while the η of VMM reaches 47 % . At 0.5 m/s, the η of PM is 33 % and the η of VMM is 40 % . The vortex in the water contains the energy to generate the hydrodynamic force on the robotic fish. The virtual muscular method takes the compliance into the joints. The compliant joints can use the energy of vortex street better; thus, the robotic fish consumes less energy to produce motive force for the forward motion.

4.3. The Affection of the Parameters

The closed-loop controller via the VMM includes several parameters, the values of which are significant to the performance of the robotic fish. This subsection analyzes the relations between the parameters and the efficiency to provide references for the parameter setting. The experiment fixes other parameters and changes each parameter to test how it affects efficiency.
In Figure 16, when K 2 = 16 , after reaching a maximum value at K 1 = 5 , the efficiency of the robotic fish decreases to a minimum at K 1 = 25 . Therefore, 5 is a good choice for K 1 .
The results also show the changing of the efficiency along with the variation of K 2 . The value of η fluctuates with the change of K 2 . We found that if the K 2 is too large during the simulation experiments, the curve will show a large overshoot, so we finally chose K 2 = 16 .
Figure 17 depicts how the intensity of the feedback of the virtual spindle affects efficiency. The efficiency increases with the increase of H 1 . H 1 is set to 1 for the intensity of the virtual spindle in the first joint. The relation between the efficiency and H 2 is an upward convex curve, which gets its maximum at H 2 = 9 .
The virtual spindle model in VMM is the part to percept the force of the flow field onto the robotic fish and to add the adaptive response into the torques. The values of H 1 and H 2 have an obvious effect on the efficiency.
In Figure 18, the efficiency curve of the robotic fish fluctuates and decreases with the increase of K v 1 . When K v 1 is less than 0.07 , though the efficiency is high, the robotic fish cannot follow the given speed. The gain is so small that the closed-loop control cannot eliminate the following deviation of the speed. To balance the swimming efficiency and the following of the closed-loop control, we chose K v 1 = 0.1 . The efficiency to K v 2 is an upward projecting curve; it rises quickly before K v 2 = 0.1 and declines slowly after this point. At K v 2 = 0.1 , the efficiency reaches its maximum value. Simultaneously, the swimming speed of the robotic fish is also in good condition.

5. Conclusions

In this paper, a novel closed-loop algorithm describing how to control the swimming efficiency of a robotic fish was proposed. We established the dynamic model and the hydrodynamic model of a two-joint robot fish. We formulated the problem of raising the propulsive efficiency as an algorithm designed in the joint space. Moreover, we characterized the mechanism of how the fish moves under the control and drive of the nerve and the muscles. Consequently, we abstracted a virtual musculoskeletal methodology from the nerve and muscle system and applied it in the joint space of the robotic fish. We evaluated the performance of the robotic fish controlled by two kinds of methods in the steady flow and Karman vortex. The results showed that the closed-loop control via virtual musculoskeletal methodology is more energy-efficient than the proportion control algorithm in both kinds of flow. The insight is that the virtual musculoskeletal methodology brings compliance to the muscles in the joints. Therefore, the robotic fish can adapt to the hydrodynamic effects of the water to reduce energy consumption when swimming.
In our future work, we will build up a more general swimming model of the robotic fish by considering complex flow turbulence to adapt to the real environment. Additionally, we will take the task planning into the closed-loop control for the applications. Finally, we will build up a real platform and conduct experiments on it to evaluate the performance of the proposed algorithm.

Author Contributions

Conceptualization, D.X. and Y.Z.; methodology, Y.Z.; software, H.F.; validation, Y.Z. and H.F.; formal analysis, H.F.; investigation, Y.Z.; resources, D.X.; data curation, H.F.; writing—original draft preparation, Y.Z.; writing—review and editing, Y.Z.; visualization, H.F.; supervision, D.X. and C.M.; project administration, D.X.; funding acquisition, D.X. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by National Natural Science Foundation of China grant number 62073017.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Conflicts of Interest

The authors declare no conflict of interest.

Appendix A

The coefficients in Equations (3) and (8)
The kinetic energy of the head is
L 0 = 1 2 m 0 X ˙ 0 2
The kinetic energy of the body is
L 1 = 1 2 m 1 V c 1 2 + 1 2 J c 1 θ ˙ 10 2 = 1 2 m 1 [ X ˙ 0 2 + ( L c 1 θ ˙ 10 ) 2 2 X ˙ 0 L c 1 θ ˙ 10 sin θ 10 ] + 1 2 J c 1 θ ˙ 10 2
The kinetic energy of the tail is
L 2 = 1 2 m 2 V c 2 2 + 1 2 J c 2 θ ˙ 20 2 = 1 2 m 2 [ X ˙ 0 2 + ( L c 1 θ ˙ 10 ) 2 + ( L c 2 θ ˙ 20 ) 2 + 2 L 1 L 2 θ ˙ 10 θ ˙ 20 cos θ 21 2 X ˙ 0 ( L c 1 θ ˙ 10 sin θ 10 + L c 2 θ ˙ 20 sin θ 20 ) ] + 1 2 J c 2 θ ˙ 20 2
D ( Q ) = D 11 D 12 D 13 D 21 D 22 D 23 D 31 D 32 D 33
Q = θ 10 θ 21 X 0
H ( Q , Q ˙ ) = D 111 D 122 D 211 D 222 D 311 D 322 θ ˙ 10 2 θ ˙ 21 2 + D 112 D 212 D 312 θ ˙ 10 θ ˙ 21
G ( Q ) = 0
D 11 = J c 1 + J c 2 + m 1 L c 1 2 + m 2 [ L 1 2 + L c 2 2 + 2 L 1 L c 2 cos θ 21 ]
D 12 = D 21 = J c 2 + m 2 [ L c 2 2 + L 1 L c 2 cos θ 21 ]
D 13 = D 31 = m 1 L c 1 sin θ 10 m 2 ( L 1 sin θ 10 + L c 2 sin θ 20 )
D 22 = m 2 L c 2 2 + J c 2
D 23 = D 32 = m 2 L c 2 sin θ 20
D 33 = m 0 + m 1 + m 2
D 111 = D 222 = D 212 = 0
D 122 = D 211 = m 2 L 1 L c 2 sin θ 21
D 311 = m 1 L c 1 cos θ 10 m 2 ( L 1 cos θ 10 + L c 2 cos θ 20 )
D 322 = m 2 L c 2 cos θ 20
D 112 = 2 m 2 L 1 L c 2 sin θ 21
D 312 = 2 m 2 L c 2 cos θ 20

References

  1. Chowdhury, A.R.; Sasidhar, S.; Panda, S.K. Bio-harmonized control experiments of a carangiform robotic fish underwater vehicle. Adv. Robot. 2016, 30, 338–351. [Google Scholar] [CrossRef]
  2. Wang, J.; Tan, X. Averaging tail-actuated robotic fish dynamics through force and moment scaling. IEEE Trans. Robot. 2015, 31, 906–917. [Google Scholar] [CrossRef]
  3. Li, X.; Ren, Q.; Xu, J.X. Precise speed tracking control of a robotic fish via iterative learning control. IEEE Trans. Ind. Electron. 2015, 63, 2221–2228. [Google Scholar] [CrossRef]
  4. Ren, Q.; Xu, J.; Fan, L.; Niu, X. A GIM-based biomimetic learning approach for motion generation of a multi-joint robotic fish. J. Bionic Eng. 2013, 10, 423–433. [Google Scholar] [CrossRef]
  5. Yu, J.; Chen, S.; Wu, Z.; Chen, X.; Ming, W. Energy Analysis of a CPG-controlled Miniature Robotic Fish. J. Bionic Eng. 2018, 15, 260–269. [Google Scholar] [CrossRef]
  6. Liu, J.; Hu, H. Biological inspiration: From carangiform fish to multi-joint robotic fish. J. Bionic Eng. 2010, 7, 35–48. [Google Scholar] [CrossRef]
  7. Esposito, C.J.; Tangorra, J.L.; Flammang, B.E.; Lauder, G.V. A robotic fish caudal fin: Effects of stiffness and motor program on locomotor performance. J. Exp. Biol. 2012, 215, 56–67. [Google Scholar] [CrossRef] [Green Version]
  8. Feilich, K.L.; Lauder, G.V. Passive mechanical models of fish caudal fins: Effects of shape and stiffness on self-propulsion. Bioinspiration Biomimetics 2015, 10, 036002. [Google Scholar] [CrossRef] [Green Version]
  9. Kopman, V.; Laut, J.; Acquaviva, F.; Rizzo, A.; Porfiri, M. Dynamic modeling of a robotic fish propelled by a compliant tail. IEEE J. Ocean. Eng. 2014, 40, 209–221. [Google Scholar] [CrossRef]
  10. Chen, Y.H.; Chen, Y.Y.; Chen, Q.X.; Tsai, Y.L. A complete modeling for fish robots with actuators. Ind. Robot. Int. J. Robot. Res. Appl. 2019, 46, 44–45. [Google Scholar] [CrossRef]
  11. Chowdhury, A.R.; Xue, W.; Behera, M.R.; Panda, S. Hydrodynamics study of a BCF mode bioinspired robotic-fish underwater vehicle using Lighthill’s slender body model. J. Mar. Sci. Technol. 2016, 21, 102–114. [Google Scholar] [CrossRef]
  12. Korkmaz, D.; Akpolat, Z.H.; Soygüder, S.; Alli, H. Dynamic simulation model of a biomimetic robotic fish with multi-joint propulsion mechanism. Trans. Inst. Meas. Control. 2015, 37, 684–695. [Google Scholar] [CrossRef]
  13. Zhong, Y.; Song, J.; Yu, H.; Du, R. A study on kinematic pattern of fish undulatory locomotion using a robot fish. J. Mech. Robot. 2018, 10, 041013. [Google Scholar] [CrossRef]
  14. Cochran, J.; Kanso, E.; Kelly, S.D.; Xiong, H.; Krstic, M. Source seeking for two nonholonomic models of fish locomotion. IEEE Trans. Robot. 2009, 25, 1166–1176. [Google Scholar] [CrossRef]
  15. Wang, M.; Yu, J.; Tan, M. CPG-based sensory feedback control for bio-inspired multimodal swimming. Int. J. Adv. Robot. Syst. 2014, 11, 170. [Google Scholar] [CrossRef] [Green Version]
  16. Chowdhury, A.R.; Kumar, V.; Prasad, B.; Kumar, R.; Panda, S. Model-based control of a BCF mode carangiform bioinspired robotic fish. Mar. Technol. Soc. J. 2014, 48, 36–50. [Google Scholar] [CrossRef]
  17. Chen, Z.; Iwasaki, T.; Zhu, L. Feedback control for natural oscillations of locomotion systems under continuous interactions with environment. IEEE Trans. Control. Syst. Technol. 2014, 23, 1294–1306. [Google Scholar] [CrossRef]
  18. Wang, M.; Dong, H.; Li, X.; Zhang, Y.; Yu, J. Control and optimization of a bionic robotic fish through a combination of CPG model and PSO. Neurocomputing 2019, 337, 144–152. [Google Scholar] [CrossRef]
  19. Castaño, M.L.; Tan, X. Rapid Maneuvering Control of Pectoral Fin-Actuated Robotic Fish. In Proceedings of the IEEE/ASME International Conference on Advanced Intelligent Mechatronics (AIM), Delft, The Netherlands, 12–16 July 2021; IEEE: Piscataway, NJ, USA, 2021; pp. 705–712. [Google Scholar]
  20. Kaneko, G.; Shirakami, H.; Hirano, Y.; Oba, M.; Yoshinaga, H.; Khieokhajonkhet, A.; Nagasaka, R.; Kondo, H.; Hirono, I.; Ushio, H. Diversity of lipid distribution in fish skeletal muscle. Zool. Sci. 2016, 33, 170–178. [Google Scholar] [CrossRef] [PubMed]
  21. Mazelet, L.; Parker, M.O.; Li, M.; Arner, A.; Ashworth, R. Role of active contraction and tropomodulins in regulating actin filament length and sarcomere structure in developing zebrafish skeletal muscle. Front. Physiol. 2016, 7, 91. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  22. Seebacher, F.; Little, A.G.; James, R.S. Skeletal muscle contractile function predicts activity and behaviour in zebrafish. J. Exp. Biol. 2015, 218, 3878–3884. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  23. Xu, D.; Zhang, S.; Wei, H. Virtual musculoskeletal control model with a spindle-like fuzzy algorithm for robotic compliance. Appl. Math. Model. 2015, 39, 3265–3279. [Google Scholar] [CrossRef]
  24. Lauder, G.V.; Flammang, B.; Alben, S. Passive Robotic Models of Propulsion by the Bodies and Caudal Fins of Fish. Integr. Comp. Biol. 2012, 52, 576–587. [Google Scholar] [CrossRef] [PubMed] [Green Version]
Figure 1. Model of the two-joint robotic fish: (a) the prototype of the robotic fish, (b) the top view of the robotic fish, and (c) the geometry parameters of the robotic fish.
Figure 1. Model of the two-joint robotic fish: (a) the prototype of the robotic fish, (b) the top view of the robotic fish, and (c) the geometry parameters of the robotic fish.
Applsci 11 08602 g001
Figure 2. Biology structure of musculoskeletal system.
Figure 2. Biology structure of musculoskeletal system.
Applsci 11 08602 g002
Figure 3. The closed-loop control structure.
Figure 3. The closed-loop control structure.
Applsci 11 08602 g003
Figure 4. Waveform parameters to the swimming speed.
Figure 4. Waveform parameters to the swimming speed.
Applsci 11 08602 g004
Figure 5. The forward speed of robotic fish without speed feedback.
Figure 5. The forward speed of robotic fish without speed feedback.
Applsci 11 08602 g005
Figure 6. The forward speed of robotic fish with speed feedback of two methods.
Figure 6. The forward speed of robotic fish with speed feedback of two methods.
Applsci 11 08602 g006
Figure 7. The angle of the first joint.
Figure 7. The angle of the first joint.
Applsci 11 08602 g007
Figure 8. The angular velocity of the tail.
Figure 8. The angular velocity of the tail.
Applsci 11 08602 g008
Figure 9. The output torque of the second joint.
Figure 9. The output torque of the second joint.
Applsci 11 08602 g009
Figure 10. The feedback of the virtual spindle.
Figure 10. The feedback of the virtual spindle.
Applsci 11 08602 g010
Figure 11. The efficiency of robotic fish in steady flow.
Figure 11. The efficiency of robotic fish in steady flow.
Applsci 11 08602 g011
Figure 12. The robotic fish in Karman vortex.
Figure 12. The robotic fish in Karman vortex.
Applsci 11 08602 g012
Figure 13. The speed of the robotic fish in Karman vortex.
Figure 13. The speed of the robotic fish in Karman vortex.
Applsci 11 08602 g013
Figure 14. The angle of the first joint in Karman vortex.
Figure 14. The angle of the first joint in Karman vortex.
Applsci 11 08602 g014
Figure 15. The efficiency in Karman Vortex.
Figure 15. The efficiency in Karman Vortex.
Applsci 11 08602 g015
Figure 16. The efficiency of the robotic fish to K 1 and K 2 . (a) When K 2 = 16 , the efficiency varies with K 1 . (b) The changing of the efficiency along with the variation of K 2 .
Figure 16. The efficiency of the robotic fish to K 1 and K 2 . (a) When K 2 = 16 , the efficiency varies with K 1 . (b) The changing of the efficiency along with the variation of K 2 .
Applsci 11 08602 g016
Figure 17. The efficiency of the robotic fish to H 1 and H 2 . (a) The changing of efficiency along with the variation of H 1 when H 2 = 9 . (b) The changing of efficiency along with the variation of H 2 when H 1 = 1 .
Figure 17. The efficiency of the robotic fish to H 1 and H 2 . (a) The changing of efficiency along with the variation of H 1 when H 2 = 9 . (b) The changing of efficiency along with the variation of H 2 when H 1 = 1 .
Applsci 11 08602 g017
Figure 18. The efficiency of the robotic fish to K v 1 and K v 2 . (a) The changing of efficiency along with the variation of K v 1 when K v 2 = 0.1 ; (b) The changing of efficiency along with the variation of K v 2 when K v 1 = 0.1 .
Figure 18. The efficiency of the robotic fish to K v 1 and K v 2 . (a) The changing of efficiency along with the variation of K v 1 when K v 2 = 0.1 ; (b) The changing of efficiency along with the variation of K v 2 when K v 1 = 0.1 .
Applsci 11 08602 g018
Table 1. The specific values of the parameters in Figure 1.
Table 1. The specific values of the parameters in Figure 1.
Parameters A 0 A 1 A 2 L c 1 L d 1 L c 2 L d 2 m 0 m 1 m 2
Value 0.03   m 2 0.05   m 2 0.05   m 2 0.12   m 0.12   m 0.12   m 0.12   m 0.8   kg 0.4   kg 0.5   kg
Table 2. The specific values of the hydrodynamic and controller parameters.
Table 2. The specific values of the hydrodynamic and controller parameters.
Parameters C 0 C 1 C 2 ρ K 1 K 2 H 1 H 2 K v 1 k v 2
Value 0.9 1.54 1.54 1000   kg / m 3 516190.10.1
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Xu, D.; Zhang, Y.; Fan, H.; Meng, C. High-Efficiency Closed-Loop Control of a Robotic Fish via Virtual Musculoskeletal Methodology. Appl. Sci. 2021, 11, 8602. https://doi.org/10.3390/app11188602

AMA Style

Xu D, Zhang Y, Fan H, Meng C. High-Efficiency Closed-Loop Control of a Robotic Fish via Virtual Musculoskeletal Methodology. Applied Sciences. 2021; 11(18):8602. https://doi.org/10.3390/app11188602

Chicago/Turabian Style

Xu, Dong, Yuanlin Zhang, Hongjie Fan, and Cai Meng. 2021. "High-Efficiency Closed-Loop Control of a Robotic Fish via Virtual Musculoskeletal Methodology" Applied Sciences 11, no. 18: 8602. https://doi.org/10.3390/app11188602

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop