In this section, we explore various mathematical tools that play a crucial role in locomotion planning of humanoid robots on complex terrains. Key topics include inverse kinematics, whole-body optimization, and simulation platforms that aid in real-time control and adaptability of robotic movements.