A design of a compact network-based controller mounted on a humanoid robot