Split out code for different robot types in seperate file.