A software platform of the main control PC in the humanoid robot has a dual-kernel real-time operating system (RTOS), Linux and Xenomai for its obvious advantages in hard real time support in user space programs. When Xenomai modules are uploaded, it attains two domains, the primary real-time Xenomai domain and the secondary non-real time Linux domain. Most real-time tasks are executed in the primary domain