measure the damage of robot and save it to the csv file