started to make a publish function for robot