Download code.py from nguyenhuu263/command_conditioned_humanoid: direct link, hf CLI and curl.
- Browser
- Download file 212 Bytes
-
https://huggingface.co/nguyenhuu263/command_conditioned_humanoid/resolve/main/code.py
- Command line
-
hf download hf://nguyenhuu263/command_conditioned_humanoid/code.py
-
curl -L -o code.py https://huggingface.co/nguyenhuu263/command_conditioned_humanoid/resolve/main/code.py
212 Bytes
| class CommandHumanoid: | |
| def act(self, command): | |
| if "walk" in command: | |
| return [0.5, 0.0, 0.0] | |
| if "turn" in command: | |
| return [0.0, 0.5, 0.0] | |
| return [0.0, 0.0, 0.0] | |