Multivalue coding: application to autonomous robots