Hostname: page-component-74656f9884-6grmk Total loading time: 0 Render date: 2026-11-06T01:26:23.277Z Has data issue: false hasContentIssue false

Design of an optimized gait planning generator for a quadruped robot using the decision tree and random forest workspace model

Published online by Cambridge University Press:  18 October 2023

Yifan Wu
Affiliation:
School of Mechanical, Electronic and Control Engineering, Beijing Jiaotong University, Beijing, 100044, China
Sheng Guo*
Affiliation:
School of Mechanical, Electronic and Control Engineering, Beijing Jiaotong University, Beijing, 100044, China
Zheqi Yu
Affiliation:
School of Mechanical, Electronic and Control Engineering, Beijing Jiaotong University, Beijing, 100044, China
Peiyi Wang
Affiliation:
School of Mechanical, Electronic and Control Engineering, Beijing Jiaotong University, Beijing, 100044, China
Lianzheng Niu
Affiliation:
School of Mechanical, Electronic and Control Engineering, Beijing Jiaotong University, Beijing, 100044, China
Majun Song
Affiliation:
Hangzhou Innovation Institute, Beihang University, Hangzhou, Zhejiang, 310051, China
*
Corresponding author: Sheng Guo; Email: shguo@bjtu.edu.cn
Rights & Permissions [Opens in a new window]

Abstract

Real-time gait trajectory planning is challenging for legged robots walking on unknown terrain. In this paper, to realize a more efficient and faster motion control of a quadrupedal robot, we propose an optimized gait planning generator (GPG) based on the decision tree (DT) and random forest (RF) model of the robot leg workspace. First, the framework of this embedded GPG and some of the modules associated with it are illustrated. Aiming at the leg workspace model described by DT and RF used in GPG, this paper introduces in detail how to collect the original data needed for training the model and puts forward an Interpolation Labeling with Dilation and Erosion (ILDE) data processing algorithm. After the DT and RF models are trained, we preliminarily evaluate their performance. We then present how these models can be used to predict the location relation between a spatial point and the leg workspace based on its distributional features. The DT model takes only 0.00011 s to process a sample, while the RF model can give the prediction probability. As a complement, the PID inverse kinematic model used in GPG is also mentioned. Finally, the optimized GPG is tested during a real-time single-leg trajectory planning experiment and an unknown terrain recognition simulation of a virtual quadrupedal robot. According to the test results, the GPG shows a remarkable rapidity for processing large-scale data in the gait trajectory planning tasks, and the results can prove it has an application value for quadruped robot control.

Information

Type
Research Article
Copyright
© The Author(s), 2023. Published by Cambridge University Press
Figure 0

Figure 1. The partial robot system framework with the GPG.

Figure 1

Figure 2. The prototype of a quadruped robot equipped with a depth camera (left) and the model of its right front leg (right).

Figure 2

Figure 3. The original data points sampled from the workspace. (a) Sampling interval: 0.4 rad, (b) Sampling interval: 0.2 rad, (c) Sampling interval: 0.1 rad, (d) Sampling interval: 0.05 rad.

Figure 3

Figure 4. Schematic diagram of the preliminary interpolation and labeling process. (a) The interpolation of unlabeled points, (b) the statistical data of nu, (c) the initial labeling process, (d) he initial labeling result.

Figure 4

Figure 5. Schematic diagram and real implementation result using the ILDE algorithm to redistribute different clusters of points. (a) Data after the initial labeling process, (b) data after the 1st dilation process, (c) data after the 1st erosion process, (d) data after the 2nd dilation process.

Figure 5

Figure 6. The number of points in each cluster in different processes of the ILDE algorithm.

Figure 6

Table I. Characteristics comparison of supervised machine learning algorithms commonly used for classification tasks.

Figure 7

Table II. The parameters of the used functions DecisionTreeClassifier.

Figure 8

Table III. The parameters of the used functions RandomForestClassifier.

Figure 9

Figure 7. Confusion matrix of the different supervised machine learning models. (a) SVM, (b) KNN, (c) DT, (d) RF.

Figure 10

Table IV. Evaluation report of the SVM and KNN model.

Figure 11

Table V. Evaluation report of the DT and RF model.

Figure 12

Figure 8. The block diagram of the PID model-based inverse kinematics control.

Figure 13

Figure 9. The schematic illustration of the experimental scenario.

Figure 14

Figure 10. The logical block diagram of the experiment.

Figure 15

Figure 11. The leg-end’s trajectory based on Bezier curve at different speeds.

Figure 16

Figure 12. The partial sequence diagram of the experiment. (a) t = 17.5 s, (b) t = 19.2 s, (c) t = 28.0 s, (d) t = 32.7 s, (e) t = 37.5 s, (f) t = 43.6 s, (g) t = 46.4 s, (h) t = 55.1 s.

Figure 17

Figure 13. The gait trajectories of the leg-end in the experiment. (a) The ideal trajectory, (b) the real trajectory.

Figure 18

Figure 14. The logical block diagram of the Group 2, Group 3, and Group 4 simulation.

Figure 19

Figure 15. The leg-end’s trajectories in simulation. (a) Trajectory on normal ground, (b) adjusted trajectory when encountering obstacle.

Figure 20

Figure 16. The sequence diagram of the simulation. (a) Group 1, (b) Group 2, (c) Group 3, (d) Group 4.

Figure 21

Figure 17. The sequence diagram of the simulation. (a) Group 1, (b) Group 2, (c) Group 3, (d) Group 4.

Figure 22

Figure 18. The boxplot of time taken by GPG to process the point clouds. (a) Using the PID inverse kinematics model in Group 2, (b) using the KNN model in Group 3, (c) using the decision module (with DT model) in Group 4.

Figure 23

Figure 19. The point cloud data processing results by GPG. (a) Using the PID inverse kinematics model in Group 2, (b) using the KNN model in Group 3, (c) using the decision module (with DT model) in Group 4.

Wu et al. supplementary material

Wu et al. supplementary material

Download Wu et al. supplementary material(Video)
Video 37.3 MB