The invention provides a snakelike
robot control method based on hierarchical
reinforcement learning in a highly limited environment, and the method specifically comprises the steps: building a highly limited complex
terrain simulation scene, and determining a task to be executed; a snake-shaped
robot simulation model is established, and modeling is conducted on the structure, joints and kinetic parameters of the snake-shaped
robot; a hierarchical control structure comprising a high-layer strategy network and a low-layer strategy network is designed based on a multi-layer
perceptron and is respectively used for generating a global navigation sub-target and controlling specific actions; defining a
state space, an action space and a reward function; in the training stage, a PPO
algorithm is adopted to optimize the high-layer strategy and the low-layer strategy respectively, repeated tests are conducted through a
simulation environment, strategy convergence is guided through a reward function, and finally the robot completes path planning and
motion control only by depending on the motion state of the robot and obtaining the target position. Autonomous navigation and
obstacle avoidance of the snakelike robot are realized, and the environmental adaptability of the snakelike robot is enhanced.