File size: 206 Bytes
b0390c3
 
 
 
 
 
 
1
2
3
4
5
6
7
8
class EnvAdaptiveHumanoid:
    def adapt(self, friction, slope):
        if slope > 10:
            return "slow_walk"
        if friction < 0.5:
            return "wide_step"
        return "normal_walk"