controlling robot via lua script