normally , the line carried the big green locos that pulled the sugar cane trucks , driven by cheerful men with knotted handkerchiefs on their heads , who leaned out of the side of the cabins and waved to the kids playing in their yards on either side of the train line .