Robots are getting better at negotiating rough and unknown environments all the time. This video shows a multi-layered locomotion system for legged robots that allows them to achieve safe foot placement and dynamic stability.
As Robotic Systems Lab explains, their framework
“unifies Control Barrier Functions (CBFs) with Model Predictive Control (MPC) to simultaneously achieve safe foot placement and dynamic stability.”
The above video shows how this works.