Abstract:
With the rapid development and application of bionic robots, methods for obtaining target information feedback have attracted widespread attention. Currently, most target recognition and distance measurement approaches rely on auxiliary devices installed on the robot, such as radar or stereo cameras. However, due to the limited resources of bionic robots, there is a need for lighter, lower-cost, and easily deployable solutions. Therefore, this paper proposes a target detection and distance measurement scheme that combines the posture adjustment capability of a bionic spider with a monocular camera. In this scheme, the YOLOv5 model is first used to identify target objects in the image. Then, the camera is calibrated in MATLAB to obtain intrinsic and extrinsic parameters, followed by image preprocessing, stereo matching, and target depth computation. Finally, the distance of the target object relative to the camera mounted in the bionic spider's left posture is obtained. Experimental results demonstrate the effectiveness of this approach in target detection and distance measurement tasks.