In recent years, how to improve the performance of smart factories and reduce the cost of operation has been the focus of industry attention. This study proposes a new type of location-based service (LBS) to improve the accuracy of location information delivered by self-propelled robots. Traditional localization algorithms based on signal strength cannot produce accurate localization results because of the multipath effect. This study proposes a localization algorithm that combines the Kalman filter (KF) and the adaptive-network-based fuzzy inference system (ANFIS). Specifically, the KF was adopted to eliminate noise during the signal transmission process. Through the learning of the ANFIS, the environment parameter suitable for the target was generated, to overcome the deficiency of traditional localization algorithms that cannot obtain real signal strength. In this study, an experiment was conducted in a real environment to compare the proposed localization algorithm with other commonly used algorithms. The experimental results show that the proposed localization algorithm produces minimal errors and stable localization results.