本論文針對小型人形機器人,提出一個基於機器人作業系統(Robot Operating System, ROS)上,對於不平坦之複雜地形的路徑規劃方法,並實現於Gazebo模擬器之上。在影像處理方面,使用Gazebo提供之攝影機模組作為影像輸入,在經過色彩校正、過濾雜訊與物件分割得出感興趣之物件後,作為虛擬地圖資訊。在定位方面,使用自製機器人3D模組的位置作為地圖原點,判斷機器人在整個不平坦地形上的位置所在,同時以機器人的視覺影像來校正與不平坦地形的角度誤差。在導航方面,本論文提出一種對不平坦的複雜地形做出困難行走區域的判斷方法,使用A*演算法做路徑規劃,使機器人盡可能地避開困難區域。在實驗結果中可見,本論文所提出之方法能夠在已知環境中,避免機器人走在容易跌倒的高風險區域且順利抵達目的地。
In this thesis, a path planning method for uneven terrain is proposed to be implemented on the Robot Operating System (ROS) and Gazebo simulator for a samll-size humanoid robot. In image processing system part, the Gazebo camera module is used as the image source. Color correction, filtering noise, and object segmentation method are used to mark interested objects as visual map information. In localization system part, the homemade robot 3D module is the map origin. Then these distances between the robot and features are determined. And the angular error of the uneven terrain with the vision of the robot are corrected. In navigation system part, this paper proposes a method to determine difficult walking area in the uneven terrain. Then A* algorithm is used to plan a path to make the robot avoid difficult walking area as much as possible. From the experimental results, the proposed method can avoid the robot walking into a high-risk area that is easy to fall, and arrive at the destination smoothly.