A work machine includes a drive source, a transmission, a travel device, a brake device, and a controller. The transmission is connected to the drive source. The travel device is connected to the transmission and causes the work machine to travel. The brake device brakes the travel device. The…