Junnyfirst34 commited on
Commit
b0390c3
·
verified ·
1 Parent(s): 8571b41

Create adapt.py

Browse files
Files changed (1) hide show
  1. adapt.py +7 -0
adapt.py ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ class EnvAdaptiveHumanoid:
2
+ def adapt(self, friction, slope):
3
+ if slope > 10:
4
+ return "slow_walk"
5
+ if friction < 0.5:
6
+ return "wide_step"
7
+ return "normal_walk"