A computer device coupled to a robot, comprising a processor and a memory, the memory having a computer program stored therein, the robot comprising a body, and a first robotic leg set and a second robotic leg set connected to the body through hip joints, at least one of the first robotic leg set and the second robotic leg set comprising at least two robotic legs, and a rotation center of a first hip joint corresponding to the first robotic leg set and a rotation center of a second hip joint corresponding to the second robotic leg set being located on a same vertical plane, the computer program being loaded and executed by the processor to implement:
- standing on a support plane in an overlapping standing state, position errors among the respective robotic legs of the robot in the overlapping standing state in a first direction being zero;
- and
- controlling the first robotic leg set and the second robotic leg set to swing alternately to move on the support plane in the first direction.