Download examples/hf-operator/test_robomaster.py from TomPei/csg-robomaster: direct link, hf CLI and curl.
- Browser
- Download file 361 Bytes
-
https://huggingface.co/datasets/TomPei/csg-robomaster/resolve/main/examples/hf-operator/test_robomaster.py
- Command line
-
hf download hf://datasets/TomPei/csg-robomaster/examples/hf-operator/test_robomaster.py
-
curl -L -o test_robomaster.py https://huggingface.co/datasets/TomPei/csg-robomaster/resolve/main/examples/hf-operator/test_robomaster.py
361 Bytes
| from robomaster import robot, blaster, led | |
| import robomaster | |
| CONN="sta" | |
| robomaster.config.LOCAL_IP_STR = "" | |
| robomaster.config.ROBOT_IP_STR = "192.168.2.1" | |
| ep_robot = robot.Robot() | |
| print("Initializing robot...") | |
| assert ep_robot.initialize(conn_type=CONN), "Could not initialize ep_robot" | |
| event = ep_robot.chassis.move(x=0, y=0, z=-90.0, xy_speed=0, z_speed=50) | |