Design and Analysis of an Intelligent Toilet Wheelchair Based on Planar 2DOF Parallel Mechanism with Coupling Branch Chains

Due to the fixed size of the structure or the possibility of only simple manual adjustment, the traditional toilet wheelchair cannot easily be adapted to the size of the user or the toilet. In this paper, a planar two-degree-of-freedom parallel mechanism with coupling branch chains is proposed to enable both seat height adjustment and body posture adjustment of a toilet chair, solving the problems of posture adaptability between the user and the machine, and height matching in the process of using the wheelchair-assisted toilet. The model of the parallel mechanism was designed after analyzing the general rules of posture transformation in the human body before and after the toilet process, and the dimensions of each linkage were then determined according to the constraint conditions. By analyzing the degree of freedom, kinematics, workspace, singularity and position of the center of gravity, the rationality of the design was ensured. The weighted average function was used to find the optimal fixed point of the horizontal moving slider, and the actual trajectory at the end of the single driving mode was close to the ideal trajectory. The experimental results show that the adjustable seat height range is 290~550 mm and the adjustable angle range is 0~90°, which can enable disabled people to use the toilet independently.


Introduction
The impairment of lower extremity motor function seriously restricts the mobility of the disabled elderly and affects their quality of life [1,2]. They often face mobility problems, social discrimination, mental health problems and other problems, including daily toilet problems [3,4]. In order to reduce the burden on families and society, there is a need to solve the toilet problem for these patients, while taking into account mobility issues [5]. Without the assistance of nursing staff, going to the toilet is a difficult process for the elderly and patients with physical disabilities who cannot take care of themselves [6]. In the process of going to the toilet, it is easy for such patients to fall and risk injury. Before and after going to the toilet, there is also the problem of transferring a patient from a bed to the toilet. However, due to the need for privacy during the toilet process, the presence of nursing staff during this process will create a great psychological burden for patients [7]. Therefore, it is of social value and practical significance to develop a safe and stable wheelchair that can enable patients to complete the toilet process independently.
In order to solve the toilet problem, scholars have conducted a considerable amount of research [8,9]. The wheelchair is the most commonly used assistive device for people with mobility difficulties, and can help patients with basic mobility and transport. Recently, with the progress of technology, intelligent wheelchairs with various auxiliary functions have been developed rapidly, and these are a research hotspot [10]. The functional designs of these wheelchairs have different emphases. One kind of wheelchair focuses on road traffic ability, and examples include the ToPChair-S [11] electric wheelchair developed in France and the Scalevo [12] electric wheelchair developed in Switzerland. These kinds of wheelchair adopt the form of a crawler driver, which can automatically adjust the posture in the process of climbing at a large inclination angle to keep the center of gravity stable. Another type of chair focuses on intelligent control for severely paralyzed people, examples including an electric wheelchair developed in South Korea that controls wheelchair movement by collecting eye movement information [13] and an electric wheelchair developed by the Iwate University of Japan that controls wheelchair movement by detecting tongue movement information [14]. Some scholars have also studied wheelchair-assisted propulsion systems, which can significantly improve road traffic capacity for wheelchairs [15,16]. In addition, some wheelchairs use artificial intelligence for autonomous navigation and multimodal interaction. The above intelligent wheelchairs were designed to meet the needs of walking without considering toilet problems. Most of the posture adjustment structures used in these wheelchairs adopt a single-degree-of-freedom vertical lifting structure, which is not flexible, and, at the same time, the weight and volume of the chair are large, resulting in more difficult transportation and handling [17,18].
As a toilet wheelchair needs to adapt to the multi-position posture changes of users in the process of going to the toilet, the design of a toilet wheelchair posture adjustment structure is the focus of many researchers [19,20]. A toilet wheelchair needs to adapt to the narrow toilet space, variable body sizes and different toilet specifications, which brings challenges to the design of a posture adjustment structure, especially considering the necessary travel function of the wheelchair. The traditional wheelchair posture adjustment structure is a simple pair of bolts, which can only achieve basic height or angle adjustment [21,22]. If a nurse has to manually rotate a handle to change the posture of the wheelchair, the user cannot control it independently; thus, they cannot use the toilet independently. Most of the structures that can automatically adjust the attitude are series link structures [23,24]. This type of structure changes the angle between the chair seat and the back of the wheelchair through the telescopic change in the length of the connecting rod in order to achieve posture adjustment. The connection mode of the series connecting rod structure is relatively simple, and the technology of the main parts is relatively mature and can meet the needs of some disabled people [25,26]. However, the series connecting rod structure is unstable and may shake in the standing state, which can be a source of fear for the user [27]. In addition, the posture transformation trajectory of the series structure is fixed, meaning that the height of the seat in the sitting position cannot be changed; therefore, it cannot adapt to the height of the user or the height of a toilet.
In view of the shortcomings of the above adjustment mechanisms, we propose a design scheme of a planar two-degree-of-freedom parallel mechanism with coupling branch chains to realize the posture adjustment function for a toilet wheelchair. Compared with the multilink series adjustment mechanism, the parallel mechanism always forms a triangular support for the chair seat in the process of attitude adjustment, which greatly improves the stiffness and stability. The structure can be switched between a single degree of freedom and two degrees of freedom through the use of two sliders. The vertical translation of the chair seat is realized in a single degree of freedom, and the posture adjustment in the toilet process is realized in two degrees of freedom. Through the combination of seat height and tilt angle, the chair can meet the requirements of different body sizes and toilet heights. At the same time, the mechanism requires fewer components and occupies a smaller volume under the chair seat, which can leave enough space for the toilet without increasing the overall width of the wheelchair; therefore, the toilet wheelchair can easily be placed on the toilet and reduce the user's operational difficulty.
The design scheme proposed in this paper can effectively solve the problem of patients' independent toilet use and travel, improve the quality of life of the disabled elderly, maintain their dignity and effectively reduce the need for assistance from nursing staff. In addition, according to the information currently available, there are no other intelligent wheelchair devices using similar schemes. The main contributions of this study include the following.
The design of the toilet wheelchair needs to consider the distribution of human body sizes. The main parameters of the wheelchair were designed in accordance with the data on the national standard of human body size for adults in China [28], as shown in Figure  1 and Table 1.  According to the human body size data, the final basic size parameters of the wheelchair are shown in Table 2.  According to the human body size data, the final basic size parameters of the wheelchair are shown in Table 2.

Analysis of Toilet Process
When using a wall-mounted toilet, the human body leans forward, and it is easy to lose stability when using a wheelchair. Therefore, this study mainly focuses on sitting toilets. The premise was to design the posture adjustment mechanism by dividing the toilet process into stages and understanding the posture transformation laws at each stage. The process of using a wheelchair to assist toilet use is shown in Figure 2.

Analysis of Toilet Process
When using a wall-mounted toilet, the human body leans forward, and it is easy to lose stability when using a wheelchair. Therefore, this study mainly focuses on sitting toilets. The premise was to design the posture adjustment mechanism by dividing the toilet process into stages and understanding the posture transformation laws at each stage. The process of using a wheelchair to assist toilet use is shown in Figure 2.
The process of using a wheelchair to assist with toilet use: (a) wheelchair into toilet; (b) sitting position changes to standing position; (c) preparation before going to the toilet; (d) from standing to sitting; (e) wheelchair sits astride the toilet; (f) wheelchair away from toilet; (g) sitting position changes to standing position; (h) fix clothes after using the toilet; (i) wheelchair pulled out of the bathroom.
The whole toilet process can be summarized as a reciprocating posture adjustment process from a standing posture to a sitting posture and then a standing posture again. The armrest of the toilet wheelchair passes under the armpit of the user, and a bandage is fixed from the knee to the leg to protect the user. The chair seat lifts the patient's body upward to realize the adjustment from a sitting posture to a standing posture. Clothing is The process of using a wheelchair to assist with toilet use: (a) wheelchair into toilet; (b) sitting position changes to standing position; (c) preparation before going to the toilet; (d) from standing to sitting; (e) wheelchair sits astride the toilet; (f) wheelchair away from toilet; (g) sitting position changes to standing position; (h) fix clothes after using the toilet; (i) wheelchair pulled out of the bathroom.
The whole toilet process can be summarized as a reciprocating posture adjustment process from a standing posture to a sitting posture and then a standing posture again. The armrest of the toilet wheelchair passes under the armpit of the user, and a bandage is fixed from the knee to the leg to protect the user. The chair seat lifts the patient's body upward to realize the adjustment from a sitting posture to a standing posture. Clothing is removed and organized in the standing posture, while toilet use and cleaning are completed in the sitting posture. When using the toilet, the lower end of the chair seat should be attached to the upper end of the toilet. However, according to the national standard of sanitary ceramics [29], each toilet has different specifications in height and width, and special toilets designed for the elderly and the disabled have a higher height. Therefore, a toilet wheelchair should be adaptable to a good range of toilet heights and widths. In addition, considering the narrow toilet space in family and nursing homes, the transportation process before and after toilet use may lead to collision with obstacles, thus causing injury to patients. Based on the comprehensive analysis of the toilet process and the transportation before and after toilet use, the following requirements were put forward for the design of the posture adjustment mechanism of our toilet wheelchair: the height of the chair seat should be adjustable; a large range of posture adjustments should be realizable between the chair seat and back; it should be easy to arrange the omni-directional drive train and there should be safety protection measures for the posture transformation process.

Structure Diagram of Parallel Mechanism for Attitude Adjustment
As the patient sits on the chair seat, the patient's posture adjustment is mainly realized by the change in chair surface posture. A toilet wheelchair has both height and angle adjustment functions; therefore, the seat adjustment mechanism should have at least two degrees of freedom. Based on the research on sitting up during the toilet process in the previous section, we propose a planar 2-DOF parallel mechanism with coupling branch chains to realize attitude adjustment, as shown in Figure 3. removed and organized in the standing posture, while toilet use and cleaning are completed in the sitting posture. When using the toilet, the lower end of the chair seat should be attached to the upper end of the toilet. However, according to the national standard of sanitary ceramics [29], each toilet has different specifications in height and width, and special toilets designed for the elderly and the disabled have a higher height. Therefore, a toilet wheelchair should be adaptable to a good range of toilet heights and widths. In addition, considering the narrow toilet space in family and nursing homes, the transportation process before and after toilet use may lead to collision with obstacles, thus causing injury to patients. Based on the comprehensive analysis of the toilet process and the transportation before and after toilet use, the following requirements were put forward for the design of the posture adjustment mechanism of our toilet wheelchair: the height of the chair seat should be adjustable; a large range of posture adjustments should be realizable between the chair seat and back; it should be easy to arrange the omni-directional drive train and there should be safety protection measures for the posture transformation process.

Structure Diagram of Parallel Mechanism for Attitude Adjustment
As the patient sits on the chair seat, the patient's posture adjustment is mainly realized by the change in chair surface posture. A toilet wheelchair has both height and angle adjustment functions; therefore, the seat adjustment mechanism should have at least two degrees of freedom. Based on the research on sitting up during the toilet process in the previous section, we propose a planar 2-DOF parallel mechanism with coupling branch chains to realize attitude adjustment, as shown in Figure 3. The mechanism shown in Figure 3 is a unilateral support structure under the chair seat. The left and right supporting mechanisms under the chair seat are identical; thus, only one side was selected for analysis. As the seat is fixedly connected to connecting link 4, the relationship between the height and angle of the seat can be simplified to the attitude change of connecting link 4. In this mechanism, the prismatic pair P4 and the revolute joint R7 are coupled to form a coupling branch chain. The passive rotary-prismatic-rotary (RPR) branch chain is formed with connecting link 3, connecting link 2 and prismatic pair P1, and the RPR branch chains on both sides are connected with a pedal for patients to step on. The lengths of connecting links 6 and link 7 are equal; driving horizontal moving pair P3 can adjust the height of the chair seat and jointly driving the moving pair P4 at the cross node and the lower horizontal moving pair P3 can adjust the wheelchair posture. A planar two-degree-of-freedom (2-DOF) parallel mechanism with coupling branches: 1. link 1; 2. link 2; 3. link 3; 4. link 4; 5. slider 2; 6. link 5; 7. slider 3; 8. link 6; 9. slider 1. R 1 , R 2 , R 3 , R 4 , R 5 , R 6 and R 7 represent the revolute joints. P 1 , P 2 , P 3 and P 4 represent the prismatic pairs. θ, θ 1 , θ 2 and θ 3 represent the angles between link 4, link 5, link 6, link 2 and the horizontal plane, respectively.
The mechanism shown in Figure 3 is a unilateral support structure under the chair seat. The left and right supporting mechanisms under the chair seat are identical; thus, only one side was selected for analysis. As the seat is fixedly connected to connecting link 4, the relationship between the height and angle of the seat can be simplified to the attitude change of connecting link 4. In this mechanism, the prismatic pair P 4 and the revolute joint R 7 are coupled to form a coupling branch chain. The passive rotary-prismatic-rotary (RPR) branch chain is formed with connecting link 3, connecting link 2 and prismatic pair P 1 , and the RPR branch chains on both sides are connected with a pedal for patients to step on. The lengths of connecting links 6 and link 7 are equal; driving horizontal moving pair P 3 can adjust the height of the chair seat and jointly driving the moving pair P 4 at the cross node and the lower horizontal moving pair P 3 can adjust the wheelchair posture.

Analysis of Degree of Freedom
The existence of coupling branch chains increases the difficulty of mechanism analysis. In the preliminary analysis, the coupling of the parallel mechanism is removed to form a planar RPR-RRP-PRR parallel mechanism. After solving the degree of freedom of the simplified parallel mechanism, coupling branch chains are added to solve the degree of freedom of the parallel mechanism with coupling branch chains.
According to the derivation of reference [30], the constrained screw system of the mechanism in decoupling state is determined as shown in Equation (1).
According to the Kutzbach-Gübler degree of freedom formula, the degree of freedom M = 3 in a decoupling state can be calculated. The coordinate system Bxyz shown in Figure 2 is established. When there are coupling branches, the constraint screw of the three branches of the parallel mechanism is obtained as follows: where $ r 4 , $ r 5 and $ r 6 represent the constraint helix of the first, second and third branches of the parallel mechanism with coupling branch chains, respectively. It can be seen from Equation (2) that the two mutually perpendicular constraint couples and the binding force of the spiral system are still the three common constraints of the planar mechanism, as in the decoupled state. Therefore, the order of the mechanism does not change due to the generation of coupling branched chains, but rather only increases the number of components, the number of motion pairs and the number of redundant constraints in the mechanism; thus, M = 2 can be obtained. Namely, the mechanism has two degrees of freedom with coupling support chains. Therefore, taking any two motion pairs of the mechanism as the driving input objects can make the mechanism realize a certain motion trajectory. According to the design principle that the space under the seat is reserved for the toilet as much as possible, and considering the rationality of the structure design, the drive layout scheme was screened, and finally, two prismatic pairs, P 3 and P 4 , were selected as the drive input.

Constraint Index of Rod Length
In the parallel mechanism described in the previous section, the length of the L 6 and L 8 links determines the overall structure size and attitude adjustment range of the wheelchair, which were the first parameters to be determined before design, and the optimal length of these two links needed to be determined according to multiple index requirements [31]. For the convenience of study, let AB = L 1 , AD = L 2 , BE = L 6 and AF = L 8 . According to the basic indexes in Table 2 and the body size distribution of the adult population of China, the initial range of BE and AF can be determined as follows: In view of the fact that the wheelchair cannot have an abnormal posture that causes discomfort to the patient in the manned state [32], and in order to reduce the search range of the optimization index, the position of the hinge point D was appropriately limited: Formula (4) was the basic constraint based on empirical value. The maximum reachable angle θ max , minimum reachable angle θ min , maximum reachable height H max and minimum reachable height H min , which are most closely related to the seat height and attitude adjustment, were selected as evaluation indexes to establish a quantifiable evaluation system to determine the connecting rod size.
By setting the coordinates of point E(E x , E y ) and point F(F x , F y ), the inclination angle of the moving platform θ can be expressed as: According to Helen's theorem, the height of the moving platform H can be expressed as: and p = (BD + AD + AB)/2. In addition, the proportional relationship between rod BE and rod AF needs to be limited; thus, L 6 /2 ≤ L 8 ≤ 2L 6 . The boundary conditions of the evaluation indexes can be calculated as shown in Table 3, where ξ = L 6 + L 8 . Table 3. Boundary conditions of evaluation indexes.
Formula (4) was the basic constraint based on empirical value. The maximum reachable angle θmax, minimum reachable angle θmin, maximum reachable height Hmax and minimum reachable height Hmin, which are most closely related to the seat height and attitude adjustment, were selected as evaluation indexes to establish a quantifiable evaluation system to determine the connecting rod size.
By setting the coordinates of point E(Ex, Ey) and point F(Fx, Fy), the inclination angle of the moving platform θ can be expressed as: where Δx = Fx − Ex, Δy = Fy − Ey. According to Helen's theorem, the height of the moving platform H can be expressed as: . In addition, the proportional relationship between rod BE and rod AF needs to be limited; thus, The boundary conditions of the evaluation indexes can be calculated as shown in Table 3, where 6 8 = + ξ L L . Table 3. Boundary conditions of evaluation indexes.

Evaluation Index Boundary Conditions
Maximum reachable angle θmax =  According to the actual situation, the seat (the fourth connecting rod) needs to adapt to the size of the toilet. In addition, there is usually a 20 ± 10 mm pad above the toilet. According to the actual situation, the seat (the fourth connecting rod) needs to adapt to the size of the toilet. In addition, there is usually a 20 ± 10 mm pad above the toilet. Considering the tire size of the wheelchair, H max ≥ 300 mm and H min ≤ 290 mm are limited. The inclination angle of the seat should exceed the range between the horizontal sitting position and the vertical standing position so that −20 • ≤ θ ≤ 120 • . As a greater height adjustment ability not only facilitates the use of different specifications of toilets for patients but also expands the ability of patients to pick up items in daily life, ∆H ≥ 160 mm is limited, where ∆H = H max − H min . To meet the design requirements, the smaller the sum of L 6 and L 8 is, the more conducive it is to reducing the overall size of the wheelchair. In order to avoid instability of the center of gravity caused by the large deviation of the seat during the lifting process, L 6 and L 8 should be as close in value as possible. According to the above requirements, the range and boundary conditions of the rod length can be determined. In order to further obtain the optimal solution of the length of the connecting rod, the above factors were quantified and the following evaluation function was established: where µ i (i = 1,2,3,4) represents the weighting factor, taking 0.2, 0.2, 0.3 and 0.3, respectively; k 1 represents the angle adjustment ability factor of the moving platform; k 2 represents the height adjustment ability factor of the moving platform; k 3 represents the length factor of the connecting rod; and k 4 represents the stability factor. The optimal bar length was selected through the evaluation function score. At the maximum value of the evaluation function, the optimal solution of the length was obtained, and the length L 6 = 440 mm and L 8 = 440 mm.
Considering the universality of wheelchair seat size [33], GF = 50 mm was determined. In order to ensure the user's comfort in the process of sitting, standing and state transition between the two postures, the inclination angle of the passive branch chain should conform to the laws of human movement, and BH = 145 mm was selected. After the length of the link was determined, HI = GI = 220 mm was selected to ensure that the second link and the third link cooperate stably and do not interfere in the process of wheelchair posture transformation from a sitting posture to a standing posture. Through the above analysis, the lengths of the main connecting rods of the parallel mechanism were preliminarily determined.

Workspace and Singularity Analysis
In order to ensure the safety of patients, singularity must be avoided in the process of toilet wheelchair posture adjustment. According to the forward and inverse kinematics of the parallel mechanism [34], it is clear that the movement ranges of P 3 and P 4 are L 1 = 170~360 mm and L 2 = 220~375 mm, respectively. When the P 3 and P 4 moving pairs move within the above range of motion, the inclination of the moving platform will be greater than 90 • . However, because the chair seat inclination cannot be too large or too small in the actual use of the wheelchair, the chair seat inclination also becomes a limitation of the working space. In addition, the lengths of the upper and lower connecting rods of the passive branch chain have been determined. Considering that the radius of the connecting rod should not be too small, the distance between R 1 and R 2 of the rotating pair should be limited to avoid interference between the passive branch chain of the mechanism and the moving and fixed platforms. Therefore, the following conditions should be met in the attitude adjustment process of the moving platform: Taking point F as the end-point of the moving platform, the relationship between its trajectory and seat inclination is shown in Figure 5 under limited conditions. limited to avoid interference between the passive branch chain of the mechanism and the moving and fixed platforms. Therefore, the following conditions should be met in the attitude adjustment process of the moving platform: Taking point F as the end-point of the moving platform, the relationship between its trajectory and seat inclination is shown in Figure 5 under limited conditions. As can be seen from Figure 5, the boundary of point F can be divided into seven segments: (1) Boundary 1 is obtained when θ3 = 90°; (2) Boundary 2 is obtained when L1 = L1min = 170 mm; (3) Boundary 3 is obtained when L2 = L2min = 220 mm; (4) Boundary 4 is obtained when θ1 + θ2 = 90°; (5) Boundary 5 is obtained when L1 = L1max = 360 mm; (6) Boundary 6 is obtained when L2 = L2max = 375 mm; (7) Boundary 7 is obtained when GH = 230 mm. In Figure 5, the upper-left region of F workspace boundary 4 corresponds to the situation of θ1 + θ2 > 90°, and the lower-right region corresponds to the situation of θ1 + θ2 < 90°.
In addition, in order to avoid the problems of self-locking and excessive driving torque, it is necessary to consider the singularity of the parallel mechanism in the workspace, including the singularity of the positive solution and the singularity of the inverse As can be seen from Figure 5, the boundary of point F can be divided into seven segments: (1) Boundary 1 is obtained when θ 3 = 90 • ; (2) Boundary 2 is obtained when L 1 = L 1min = 170 mm; (3) Boundary 3 is obtained when L 2 = L 2min = 220 mm; (4) Boundary 4 is obtained when θ 1 + θ 2 = 90 • ; (5) Boundary 5 is obtained when L 1 = L 1max = 360 mm; (6) Boundary 6 is obtained when L 2 = L 2max = 375 mm; (7) Boundary 7 is obtained when GH = 230 mm. In Figure 5, the upper-left region of F workspace boundary 4 corresponds to the situation of θ 1 + θ 2 > 90 • , and the lower-right region corresponds to the situation of θ 1 + θ 2 < 90 • .
In addition, in order to avoid the problems of self-locking and excessive driving torque, it is necessary to consider the singularity of the parallel mechanism in the workspace, including the singularity of the positive solution and the singularity of the inverse solution. In order to facilitate the subsequent analysis, the input of the mechanism was converted from the sliding of the slider to the change in the inclination angle of θ 1 and θ 2 .
The singularity analysis of positive solutions was performed first. According to the kinematics, the Jacobian matrix J θ of the positive solution of the parallel mechanism is obtained: where ct 2 is cosθ 2 , c 1 is cosθ 1 , s 1 is sinθ 1 , s 2 is sinθ 2 , c 2 is cosθ 2 and A and B are represented by Equation (10): where s 21 denotes sin(θ 2 − θ 1 ), c 21 denotes cos(θ 2 − θ 1 ) and dq denotes 2θ 2 .
When rank(J θ ) < 2-that is, when all of the rows in the Jacobian are linearly independent-the singularity of the positive solution of the mechanism appears. In order to solve the singular configuration, it is assumed that the first and second lines of the Jacobian matrix are linearly independent, and then, θ 1 + θ 2 = π/2 or θ 2 = π/2 can be obtained. When θ 2 = π/2, the moving platform is in the vertical state, which is not in the value range; thus, it is omitted. Then, by substituting θ 1 + θ 2 = π/2 into the Jacobian matrix, the rank (J θ ) = 2 is obtained, which shows that there is a linear correlation between the lines of the Jacobian matrix; thus, the mechanism will not have positive solution singularity in the working range.
In addition, considering the singularity of the inverse solution, the inverse Jacobian matrix J F is obtained: where (X, Y, θ) represent the pose of the moving platform. Similarly, assuming that the first and second columns of J F are linearly related, we obtain the case where the singularity configuration of the inverse solution of the mechanism is θ = 0; that is, X = 0 or θ 1 = θ 2 . When it is substituted into the Jacobian matrix of Equation 12, the second and third columns are still linearly independent. Only when θ 1 = θ 2 = 0-that is, when the moving platform coincides with the fixed platform-is it linearly related, but the solution is not in the range of value; thus, there is no inverse solution singular configuration in the working range.

The Stability of the Wheelchair in Attitude Adjustment
The toilet wheelchair moves slowly in the process of posture adjustment, which can be analyzed by statics [34]. The upper body, thigh and calf of the human body are, respectively, fused with the back, seat and pedal of the wheelchair to simplify them into three homogeneous connecting rods, which are, respectively, represented by L p1 , L p2 and L p3 , as shown in Figure 6. The center of gravity of each link is located at the mid-point of the connecting rod, and the mass of each part is expressed by m 1 , m 2 and m 3 , respectively. The length of link 2 is expressed as l th . Link 2 is horizontal in the sitting position. Link 1 and link 3 remain upright during attitude adjustment. The coordinate system o'-x'y' was established as shown in Figure 6. x' 1 and x' 2 represent the position of the combined body weight center on the x'-axis in the processes of sitting and posture adjustment, respectively. In the sitting position, x' 1 = (m 1 · l th + 0.5m 2 · l th )/(m 1 + m 2 + m 3 ); during posture adjustment, the center of gravity changes and moves along the x'-axis, x' 2 = (m 1 · l th cosθ + m 2 · 0.5l th cosθ)/(m 1 + m 2 + m 3 ). However, in the whole adjustment process, the center of gravity will fall within the four supporting points of the frame; therefore, the toilet wheelchair and the user can remain stable.

Structural Design and Key Performance Analysis
This section describes the transformation of the theoretical model into a concrete physical model. In order to fully ensure the safety of users when they choose the function in the toilet environment, a mechanical limit was arranged at each movable joint of the wheelchair, and flexible safety auxiliary devices such as a small leg protection belt were added. Considering the actual needs of the elderly, the use of the controller was simplified, and the function of "one button to achieve" was set; that is, the attitude conversion can be completed automatically by pressing the button. In addition, an emergency stop switch was provided to prevent an emergency. The cables for all the electrical components should be built in as much as possible.
tablished as shown in Figure 6. x'1 and x'2 represent the position of the combined body weight center on the x'-axis in the processes of sitting and posture adjustment, respectively. In the sitting position, x'1 = (m1 ▪ lth + 0.5m2 ▪ lth)/(m1 + m2 + m3); during posture adjustment, the center of gravity changes and moves along the x'-axis, x'2 = (m1 ▪ lthcosθ + m2 ▪ 0.5lthcosθ)/(m1 + m2 + m3). However, in the whole adjustment process, the center of gravity will fall within the four supporting points of the frame; therefore, the toilet wheelchair and the user can remain stable.

Structural Design and Key Performance Analysis
This section describes the transformation of the theoretical model into a concrete physical model. In order to fully ensure the safety of users when they choose the function in the toilet environment, a mechanical limit was arranged at each movable joint of the wheelchair, and flexible safety auxiliary devices such as a small leg protection belt were added. Considering the actual needs of the elderly, the use of the controller was simplified, and the function of "one button to achieve" was set; that is, the attitude conversion can be completed automatically by pressing the button. In addition, an emergency stop switch was provided to prevent an emergency. The cables for all the electrical components should be built in as much as possible.
The toilet wheelchair includes three parts: an attitude adjustment mechanism, a carrying platform and a chassis. The input parts of the attitude adjustment device, P3 and P4 movable sliders, were realized using a ball-screw transmission mechanism and an electric push rod. A gyroscope was arranged below the seat for attitude feedback. The transformation from the theoretical model to the design model is shown in Figure 7. The overall structure of the toilet wheelchair is shown in Figure 8. The toilet wheelchair includes three parts: an attitude adjustment mechanism, a carrying platform and a chassis. The input parts of the attitude adjustment device, P 3 and P 4 movable sliders, were realized using a ball-screw transmission mechanism and an electric push rod. A gyroscope was arranged below the seat for attitude feedback. The transformation from the theoretical model to the design model is shown in Figure 7. The overall structure of the toilet wheelchair is shown in Figure 8.

Finite Element Analysis of Key Components
The linear transmission mechanism is the key component of the toilet wheelchair. To obtain higher accuracy of the wheelchair posture adjustment process, the deformation of the lead screw must be in a reasonable range. In order to ensure the stable fit of the bevel

Finite Element Analysis of Key Components
The linear transmission mechanism is the key component of the toilet wheelchair. To

Finite Element Analysis of Key Components
The linear transmission mechanism is the key component of the toilet wheelchair. To obtain higher accuracy of the wheelchair posture adjustment process, the deformation of the lead screw must be in a reasonable range. In order to ensure the stable fit of the bevel gear, the connecting end of the lead screw and the bevel gear was fixed, while the other side was fixed or supported. Through the finite element method based on the ANSYS Workbench, the combined model of the screw and nut seat was analyzed in order to select a reasonable support mode.
The ball-screw pair was simplified as a trapezoidal screw pair, the nut seat was simplified as a part, and then, the simplified model was imported into ANSYS, as shown in Figure 9a (corresponding position L 1 = 280 mm). The material of the lead screw and nut seat was structural steel, their elastic modulus was E = 2.07 × 105 N/mm 2 and the Poisson ratio was µ = 0.3. The simplified model was meshed based on the automatic meshing method, and the meshing results shown in Figure 9b were obtained. The left side of the lead screw adopts a "fixed" support mode, and the right side adopts a "fixed" support mode, as shown in Figure 9c, and a "support" mode, as shown in Figure 9d. According to the force analysis, in the attitude adjustment process, the maximum horizontal and vertical loads on the nut seat are obtained in the sitting position, and the specific loads are shown in Table 4.  According to the force analysis, in the attitude adjustment process, the maximum horizontal and vertical loads on the nut seat are obtained in the sitting position, and the specific loads are shown in Table 4. The finite element analysis results of two different support modes are shown in Figures 10 and 11, where the maximum load was applied to the nut seat.  For both cases, the equivalent elastic strain and total deformation of the lead screw are shown in Table 5. It was found that the equivalent elastic strain and the total deformation are small, and the results of the two are not different; under the fixed support mode at both ends, the total deformation is small. Therefore, in order to realize the linear transmission function better, the fixed support form was adopted at both ends of the screw.

Analysis of Seat Inclination Adjustment Ability at Different Heights
In addition to meeting the requirement for patients' autonomous toilet use, the intelligent toilet wheelchair also has the ability to assist patients in walking. Patients who need assistance when using a toilet are usually in poor physical condition and are not able to autonomously drive a wheelchair on complex roads. Therefore, the toilet wheelchair pays more attention to resolving the short-distance travel problem of patients in the community environment.
As a walking tool, the toilet wheelchair needs to have a certain seat tilt adjustment ability to stabilize the patient's center of gravity, reduce discomfort and fear when moving on a sloping road and enhance the user's safety and comfort. According to different seat heights, the effect of seat inclination adjustment will be different to some extent. The inclination change can be represented by the trajectory of point F on the moving platform, as shown in Figure 12. For both cases, the equivalent elastic strain and total deformation of the lead screw are shown in Table 5. It was found that the equivalent elastic strain and the total deformation are small, and the results of the two are not different; under the fixed support mode at both ends, the total deformation is small. Therefore, in order to realize the linear transmission function better, the fixed support form was adopted at both ends of the screw.

Analysis of Seat Inclination Adjustment Ability at Different Heights
In addition to meeting the requirement for patients' autonomous toilet use, the intelligent toilet wheelchair also has the ability to assist patients in walking. Patients who need assistance when using a toilet are usually in poor physical condition and are not able to autonomously drive a wheelchair on complex roads. Therefore, the toilet wheelchair pays more attention to resolving the short-distance travel problem of patients in the community environment.
As a walking tool, the toilet wheelchair needs to have a certain seat tilt adjustment ability to stabilize the patient's center of gravity, reduce discomfort and fear when moving on a sloping road and enhance the user's safety and comfort. According to different seat heights, the effect of seat inclination adjustment will be different to some extent. The inclination change can be represented by the trajectory of point F on the moving platform, as shown in Figure 12. It can be seen from Figure 11 that with the decrease in height of the chair seat, the adjustment ability of the wheelchair inclination angle decreases continuously. This is because the lower the height of the seat is, the more seriously the adjustment ability of the seat inclination is limited by the length of the bottom slide. When we travel outdoors, uneven road surfaces are often unavoidable. In order to ensure that the seat has a certain inclination adjustment ability, we should appropriately raise the seat height when encountering larger slopes or more serious potholes. When the road surface is flat, we should appropriately reduce the body height to ensure a comfortable sitting posture.

Seat Posture Adjustment Planning
When patients use a wheelchair for a long time, they need to adjust their posture in addition to going to the toilet. In order to extend the joints or expand the ability to pick up objects, the attitude change does not need height adjustment, but rather directly enters the angle change stage. As the parallel mechanism has two inputs, in order to reduce the complexity of the control, this section uses the single drive method to complete the attitude change and makes the actual trajectory of point F at the end of the moving platform close to the ideal trajectory of the two drives.
In the process of posture change, in order to ensure that the squeezing force between the lower limbs and the leg guard belt will not be too large, the inclination angle of the passive branch chain should be constrained to limit the overall center of gravity of the wheelchair from moving forward too much. Referring to the attitude change process of the existing auxiliary standing wheelchair, this wheelchair keeps the inclination angle between the passive chain and the fixed platform stable and selects θ3 = 75°. Then, the hinge point of the passive branch chain and the moving platform moves on the straight line YG = tan75° (XG + lBH), where (XG, YG) are the coordinates of point G in Figure 2 and lBH is the length of the connecting rod BH. The trajectory formed by point F in this state is regarded as the ideal trajectory.
The parallel mechanism has two degrees of freedom, and if one degree of freedom is arbitrarily limited, the mechanism can be changed into a single-degree-of-freedom mechanism. In order to determine the appropriate degree-of-freedom limitation scheme, the ideal trajectory is displayed on the grid workspace drawn using the univariate method, as shown in Figure 13. It can be seen from Figure 11 that with the decrease in height of the chair seat, the adjustment ability of the wheelchair inclination angle decreases continuously. This is because the lower the height of the seat is, the more seriously the adjustment ability of the seat inclination is limited by the length of the bottom slide. When we travel outdoors, uneven road surfaces are often unavoidable. In order to ensure that the seat has a certain inclination adjustment ability, we should appropriately raise the seat height when encountering larger slopes or more serious potholes. When the road surface is flat, we should appropriately reduce the body height to ensure a comfortable sitting posture.

Seat Posture Adjustment Planning
When patients use a wheelchair for a long time, they need to adjust their posture in addition to going to the toilet. In order to extend the joints or expand the ability to pick up objects, the attitude change does not need height adjustment, but rather directly enters the angle change stage. As the parallel mechanism has two inputs, in order to reduce the complexity of the control, this section uses the single drive method to complete the attitude change and makes the actual trajectory of point F at the end of the moving platform close to the ideal trajectory of the two drives.
In the process of posture change, in order to ensure that the squeezing force between the lower limbs and the leg guard belt will not be too large, the inclination angle of the passive branch chain should be constrained to limit the overall center of gravity of the wheelchair from moving forward too much. Referring to the attitude change process of the existing auxiliary standing wheelchair, this wheelchair keeps the inclination angle between the passive chain and the fixed platform stable and selects θ 3 = 75 • . Then, the hinge point of the passive branch chain and the moving platform moves on the straight line Y G = tan75 • (X G + l BH ), where (X G , Y G ) are the coordinates of point G in Figure 2 and l BH is the length of the connecting rod BH. The trajectory formed by point F in this state is regarded as the ideal trajectory.
The parallel mechanism has two degrees of freedom, and if one degree of freedom is arbitrarily limited, the mechanism can be changed into a single-degree-of-freedom mechanism. In order to determine the appropriate degree-of-freedom limitation scheme, the ideal trajectory is displayed on the grid workspace drawn using the univariate method, as shown in Figure 13.  Figure 12 is the ideal trajectory of point F. According to the observation, the ideal trajectory is close to that of L1 = 280 mm; thus, slider P3 should be locked and slider P4 should be driven in the attitude adjustment. In order to determine the best locking position of slider P3, the weighted average method was used for analysis. Considering that the end pose is more important, the closer it is to the end of the pose, the greater the set weight should be. At the same time, there should be no excessive fluctuations in the process of attitude adjustment, and the weight should be appropriately reduced in the initial stage of adjustment. In conclusion, the discrete weighted sum function is established:

The black line in
where 1 L is the fixed position of P3 to be determined, L1i is the slider position corresponding to the ith data point, θi0 is the moving platform inclination corresponding to the ith data point and N is the total number of data points. After taking N = 1000 for discrete decomposition and calculation, L1 = 284.7318 mm is obtained, and L1 = 285 mm is taken for convenience of design. In order to verify the rationality of the above analysis method, firstly, the slider P3 was fixed at L1 = 285 mm; then, the slider P4 was moved separately at a speed of 15 mm/s for attitude adjustment, and the driving time was 8 s. The simulation curves of angular displacement, velocity and acceleration of point F can be obtained by comparing the actual trajectory of point F with the ideal trajectory, as shown in Figure 14.
It can be seen from the figure that in the starting position, the maximum deviation between the inclination angle of the passive branch chain, the fixed platform and the theoretical trajectory is Δθ3 = 1.42° in the single driving mode.  Figure 12 is the ideal trajectory of point F. According to the observation, the ideal trajectory is close to that of L 1 = 280 mm; thus, slider P 3 should be locked and slider P 4 should be driven in the attitude adjustment. In order to determine the best locking position of slider P 3 , the weighted average method was used for analysis. Considering that the end pose is more important, the closer it is to the end of the pose, the greater the set weight should be. At the same time, there should be no excessive fluctuations in the process of attitude adjustment, and the weight should be appropriately reduced in the initial stage of adjustment. In conclusion, the discrete weighted sum function is established:

The black line in
where L 1 is the fixed position of P 3 to be determined, L 1i is the slider position corresponding to the ith data point, θ i0 is the moving platform inclination corresponding to the ith data point and N is the total number of data points. After taking N = 1000 for discrete decomposition and calculation, L 1 = 284.7318 mm is obtained, and L 1 = 285 mm is taken for convenience of design. In order to verify the rationality of the above analysis method, firstly, the slider P 3 was fixed at L 1 = 285 mm; then, the slider P 4 was moved separately at a speed of 15 mm/s for attitude adjustment, and the driving time was 8 s. The simulation curves of angular displacement, velocity and acceleration of point F can be obtained by comparing the actual trajectory of point F with the ideal trajectory, as shown in Figure 14.
It can be seen from the figure that in the starting position, the maximum deviation between the inclination angle of the passive branch chain, the fixed platform and the theoretical trajectory is ∆θ 3 = 1.42 • in the single driving mode.
It can be seen from Figure 14 that at the end point, the deviation between the inclination angle of the passive branch chain and the angular velocity and angular acceleration in the ideal trajectory reaches the maximum, in which the angular velocity deviation is ∆ . θ 3 = 0.56 • /s and the angular acceleration deviation is ∆ .. θ 3 = 0.24 • /s 2 . The actual trajectory and the ideal trajectory in the single driving mode are very small, which will not cause discomfort to patients. The rationality of the single driving mode and the fixed position of the slider P 3 is therefore verified. It can be seen from Figure 14 that at the end point, the deviation between the inclina tion angle of the passive branch chain and the angular velocity and angular acceleratio in the ideal trajectory reaches the maximum, in which the angular velocity deviation Δ 0.24 / s θ . The actual trajec tory and the ideal trajectory in the single driving mode are very small, which will no cause discomfort to patients. The rationality of the single driving mode and the fixed po sition of the slider P3 is therefore verified.

Introduction of Physical Prototype
Based on the above analysis, an intelligent toilet wheelchair control system was bui to meet the toilet and walking requirements of disabled patients, as shown in Figure 15.

Introduction of Physical Prototype
Based on the above analysis, an intelligent toilet wheelchair control system was built to meet the toilet and walking requirements of disabled patients, as shown in Figure 15.
According to the corresponding functions, the control system was divided into five parts: a main control unit, a chassis walking system, an attitude adjustment system, a backadjustment unit and a human-computer interaction system. Here, the main control unit is responsible for the management and operation of the whole wheelchair control system. The chassis walking unit consists of four Mecanum wheels and their driving motors to realize the omni-directional movement of the wheelchair. A gyroscope is arranged in both the attitude adjusting unit and the back adjusting unit to provide wheelchair attitude feedback and realize closed-loop control. The human-computer interaction unit is mainly used for the selection of the working mode, function parameter settings, operation status query and real-time display. Finally, the prototype design was completed, as shown in Figure 16. According to the corresponding functions, the control system was divided into five parts: a main control unit, a chassis walking system, an attitude adjustment system, a back-adjustment unit and a human-computer interaction system. Here, the main control unit is responsible for the management and operation of the whole wheelchair control system. The chassis walking unit consists of four Mecanum wheels and their driving motors to realize the omni-directional movement of the wheelchair. A gyroscope is arranged in both the attitude adjusting unit and the back adjusting unit to provide wheelchair attitude feedback and realize closed-loop control. The human-computer interaction unit is mainly used for the selection of the working mode, function parameter settings, operation status query and real-time display. Finally, the prototype design was completed, as shown in Figure 16.

Verification Experiment for Altitude and Attitude Adjustment
In order to verify the adaptability of the toilet wheelchair to different toilet heights, a seat height adjustment experiment was carried out. Volunteers were invited to ride in the toilet wheelchair. The height of the wheelchair seat was adjusted to the highest position as the initial state. The ball screw used to adjust the height was set to move at a linear speed of 5 mm/s. In the process of the experiment, the seat moved downward from the highest to the lowest position, paused for a while and then moved to the highest position.  According to the corresponding functions, the control system was divided into five parts: a main control unit, a chassis walking system, an attitude adjustment system, a back-adjustment unit and a human-computer interaction system. Here, the main control unit is responsible for the management and operation of the whole wheelchair control system. The chassis walking unit consists of four Mecanum wheels and their driving motors to realize the omni-directional movement of the wheelchair. A gyroscope is arranged in both the attitude adjusting unit and the back adjusting unit to provide wheelchair attitude feedback and realize closed-loop control. The human-computer interaction unit is mainly used for the selection of the working mode, function parameter settings, operation status query and real-time display. Finally, the prototype design was completed, as shown in Figure 16.

Verification Experiment for Altitude and Attitude Adjustment
In order to verify the adaptability of the toilet wheelchair to different toilet heights, a seat height adjustment experiment was carried out. Volunteers were invited to ride in the toilet wheelchair. The height of the wheelchair seat was adjusted to the highest position as the initial state. The ball screw used to adjust the height was set to move at a linear speed of 5 mm/s. In the process of the experiment, the seat moved downward from the highest to the lowest position, paused for a while and then moved to the highest position.

Verification Experiment for Altitude and Attitude Adjustment
In order to verify the adaptability of the toilet wheelchair to different toilet heights, a seat height adjustment experiment was carried out. Volunteers were invited to ride in the toilet wheelchair. The height of the wheelchair seat was adjusted to the highest position as the initial state. The ball screw used to adjust the height was set to move at a linear speed of 5 mm/s. In the process of the experiment, the seat moved downward from the highest to the lowest position, paused for a while and then moved to the highest position. During the whole movement, the seat was kept in a horizontal position, and measurements were taken every 0.5 s to record the height of the seat surface. The experimental process is shown in Figure 17, and the experimental results are shown in Figure 18. During the whole movement, the seat was kept in a horizontal position, and measurements were taken every 0.5 s to record the height of the seat surface. The experimental process is shown in Figure 17, and the experimental results are shown in Figure 18.
. Figure 17. Experimental scenario. From the experimental results, it can be seen that the actual height of the seat is close to the theoretical height curve, which shows the correctness of the seat height adjustment method. At the same time, it can be seen that the height adjustment range of the seat is 290~550 mm, which fully meets the requirements for different specifications of toilets. In addition, through observation, it can be found that the actual height of the seat is almost above the theoretical calculation height, and the deviation is consistent with the actual height. This is because the height of the seat from the ground includes the height of the parallel adjustment structure and the height of the chassis. The height of the chassis is constant, but due to processing and assembly errors, the actual value of this constant is larger than the theoretical value, resulting in the actual chair height exceeding the theoretical height. However, this deviation is not significant and does not affect the actual use effects. At the same time, this deviation can be controlled via the improvement of subsequent processing and the assembly process.
A posture adjustment experiment was carried out to verify that the toilet wheelchair can change the sitting/standing posture under different chair heights. As the patient is sitting on the chair surface, the adjustment of the patient's posture can be expressed by the change in the tilt angle of the chair surface. The height of the toilet was mainly between 380 and 430 mm. The volunteers were asked to adjust the sitting/standing posture for chair heights of 350 mm, 400 mm and 450 mm. The angle-adjustable electric push rod Seat height (mm) Figure 17. Experimental scenario. During the whole movement, the seat was kept in a horizontal position, and measurements were taken every 0.5 s to record the height of the seat surface. The experimental process is shown in Figure 17, and the experimental results are shown in Figure 18.
. Figure 17. Experimental scenario. From the experimental results, it can be seen that the actual height of the seat is close to the theoretical height curve, which shows the correctness of the seat height adjustment method. At the same time, it can be seen that the height adjustment range of the seat is 290~550 mm, which fully meets the requirements for different specifications of toilets. In addition, through observation, it can be found that the actual height of the seat is almost above the theoretical calculation height, and the deviation is consistent with the actual height. This is because the height of the seat from the ground includes the height of the parallel adjustment structure and the height of the chassis. The height of the chassis is constant, but due to processing and assembly errors, the actual value of this constant is larger than the theoretical value, resulting in the actual chair height exceeding the theoretical height. However, this deviation is not significant and does not affect the actual use effects. At the same time, this deviation can be controlled via the improvement of subsequent processing and the assembly process.
A posture adjustment experiment was carried out to verify that the toilet wheelchair can change the sitting/standing posture under different chair heights. As the patient is sitting on the chair surface, the adjustment of the patient's posture can be expressed by the change in the tilt angle of the chair surface. The height of the toilet was mainly between 380 and 430 mm. The volunteers were asked to adjust the sitting/standing posture for chair heights of 350 mm, 400 mm and 450 mm. The angle-adjustable electric push rod Seat height (mm) From the experimental results, it can be seen that the actual height of the seat is close to the theoretical height curve, which shows the correctness of the seat height adjustment method. At the same time, it can be seen that the height adjustment range of the seat is 290~550 mm, which fully meets the requirements for different specifications of toilets. In addition, through observation, it can be found that the actual height of the seat is almost above the theoretical calculation height, and the deviation is consistent with the actual height. This is because the height of the seat from the ground includes the height of the parallel adjustment structure and the height of the chassis. The height of the chassis is constant, but due to processing and assembly errors, the actual value of this constant is larger than the theoretical value, resulting in the actual chair height exceeding the theoretical height. However, this deviation is not significant and does not affect the actual use effects. At the same time, this deviation can be controlled via the improvement of subsequent processing and the assembly process.
A posture adjustment experiment was carried out to verify that the toilet wheelchair can change the sitting/standing posture under different chair heights. As the patient is sitting on the chair surface, the adjustment of the patient's posture can be expressed by the change in the tilt angle of the chair surface. The height of the toilet was mainly between 380 and 430 mm. The volunteers were asked to adjust the sitting/standing posture for chair heights of 350 mm, 400 mm and 450 mm. The angle-adjustable electric push rod moved at a speed of 5 mm/s, and measurements were taken every 0.8 s to record the inclination angle of the chair seat. The experimental results are shown in Figure 19. moved at a speed of 5 mm/s, and measurements were taken every 0.8 s to record the inclination angle of the chair seat. The experimental results are shown in Figure 19. It can be seen from the figure that the seat inclination can be adjusted from 0° to 90° at different heights. The inclination of 0° indicates that the chair seat is in the horizontal state, which represents the patient's sitting posture, and the inclination of 90° indicates that the chair seat is in the vertical state, which represents the patient's standing posture. Therefore, the toilet wheelchair meets the needs of patients for adjusting the sitting/standing posture at different heights. In addition, it can be seen that the posture adjustment capability of the toilet wheelchair is different at different heights, and the posture adjustment can be completed faster when the chair seat is higher than the ground. This is because the initial values of θ1 and θ2 are larger when the seat is higher, and they are more sensitive to the change in the length of the moving link. At the same time, it can also be seen that after the inclination of the chair seat reaches 90°-that is, after the patient completes the standing posture-the inclination of the chair seat does not continue to increase. This is because the inclination of the chair seat is limited, which can avoid excessive inclination and effectively protect the patient's safety.

Summary
In this paper, the design and analysis of a toilet wheelchair for disabled people were studied. Through the analysis of human body size and the toilet use process, a design scheme for a planar two-degree-of-freedom parallel mechanism with coupling branch chains was proposed. A parallel mechanism is used as the posture adjustment mechanism of the left and right sides of the toilet wheelchair, which can reserve enough space for the sitting toilet under the seat so that the toilet wheelchair can be placed on the sitting toilet. By first decoupling the model and then coupling it, the degree of freedom of the parallel mechanism with coupling branch chains was calculated, and it was determined that the mechanism can meet the requirements for wheelchair height and angle adjustment at the same time. The kinematics, dynamics, workspace and singularity analyses laid the foundation for the realization of attitude adjustment. Through analysis of the constraints in the process of using a toilet, the actual size of the connecting rod of the parallel mechanism was determined, and the conversion from the theoretical model to the physical model was completed. Next, the coupling relationship between seat height and seat inclination adjustment ability was analyzed, and the seat height adjustment strategy under different road conditions was discussed. Then, the trajectory planning of attitude adjustment was carried out, and the weighted average function was used to find the optimal fixed point of the horizontal moving slider so that the actual trajectory of the end is close to the ideal Seat angle (°) Figure 19. Experimental results of sit/stand attitude adjustment.
It can be seen from the figure that the seat inclination can be adjusted from 0 • to 90 • at different heights. The inclination of 0 • indicates that the chair seat is in the horizontal state, which represents the patient's sitting posture, and the inclination of 90 • indicates that the chair seat is in the vertical state, which represents the patient's standing posture. Therefore, the toilet wheelchair meets the needs of patients for adjusting the sitting/standing posture at different heights. In addition, it can be seen that the posture adjustment capability of the toilet wheelchair is different at different heights, and the posture adjustment can be completed faster when the chair seat is higher than the ground. This is because the initial values of θ 1 and θ 2 are larger when the seat is higher, and they are more sensitive to the change in the length of the moving link. At the same time, it can also be seen that after the inclination of the chair seat reaches 90 • -that is, after the patient completes the standing posture-the inclination of the chair seat does not continue to increase. This is because the inclination of the chair seat is limited, which can avoid excessive inclination and effectively protect the patient's safety.

Summary
In this paper, the design and analysis of a toilet wheelchair for disabled people were studied. Through the analysis of human body size and the toilet use process, a design scheme for a planar two-degree-of-freedom parallel mechanism with coupling branch chains was proposed. A parallel mechanism is used as the posture adjustment mechanism of the left and right sides of the toilet wheelchair, which can reserve enough space for the sitting toilet under the seat so that the toilet wheelchair can be placed on the sitting toilet. By first decoupling the model and then coupling it, the degree of freedom of the parallel mechanism with coupling branch chains was calculated, and it was determined that the mechanism can meet the requirements for wheelchair height and angle adjustment at the same time. The kinematics, dynamics, workspace and singularity analyses laid the foundation for the realization of attitude adjustment. Through analysis of the constraints in the process of using a toilet, the actual size of the connecting rod of the parallel mechanism was determined, and the conversion from the theoretical model to the physical model was completed. Next, the coupling relationship between seat height and seat inclination adjustment ability was analyzed, and the seat height adjustment strategy under different road conditions was discussed. Then, the trajectory planning of attitude adjustment was carried out, and the weighted average function was used to find the optimal fixed point of the horizontal moving slider so that the actual trajectory of the end is close to the ideal trajectory under the single driving mode. Finally, the feasibility of the overall design scheme was verified by the height and angle adjustment experiments.

Conclusions
(1) The toilet wheelchair design scheme proposed in this paper adopts a planar 2-DOF parallel mechanism with coupling branch chains, which can adjust the height and the sitting/standing posture in order to facilitate the patient's independent toilet use.
(2) The height adjustment range of the toilet wheelchair is 290~550 mm, and the tilt angle adjustment range is 0~90 • , thus adapting to different specifications of toilets.
(3) This study only carried out preliminary experimental verification for the toilet use process. Follow-up work will further verify the adaptability to complex road conditions in the process of driving. In addition, the structural design and processing technology of the toilet wheelchair itself should be optimized.