Machine (1) for the automatic harvesting of fruits cultivated in rows, formed by a self-propelled and autonomous vehicle encompassing at least one crop row (13), including a pair of parallel rails (2), a fruit collector assembly formed by a carriage (3) movably mounted on the pair of parallel rails (2) and a collector robotic arm (4) movably mounted on the carriage (3) for moving transversely with respect to the carriage (3), a carriage motor (5) for moving the carriage (3), and a robotic arm motor (6) for moving the robotic arm (4), the carriage and the robotic arm motors (5, 6) attached to the carriage (3). The carriage is movable horizontally and the robotic arm is transversally movable with respect to the rails.