A robot learns an important lesson from a malfunctioning leg.