sample robot in C