Autonomous floor-detection and path-following for mobile robots using ROS