In response to the problem of human activities being limited due to uncertainty in the natural environment,as well as the short-term growth and inconvenient collection of some wild plants,a worm shaped plant sampling robot is designed for processing.Worm shaped plant sampling robot is composed of three parts:driving system,sampling system and recognition system.Through the cooperation of recognition system and driving system,the robot can detect plants in the natural environment.Through Convolutional Neural Network combined with YOLOv7 algorithm training,when the plant to be sampled is identified,ultrasonic sensors detect the distance between the robot and the plant,and the actuator adjusts the mechanism to the appropriate position,and then the sampling system operates.The fixed claw clamps the ob-ject below to fix the robot's position.After the electric push rod is extended,the two sliding tables of the electric claw are closed,and the cutting and storage of plant samples are completed through the cutting head.Implemented the collec-tion of wild plants in small caves and steep slope environments,while protecting the safety of exploration personnel.