csg-robomaster / examples /hf-operator /test_robomaster.py
TomPei's picture
Duplicate from opencsg/csg-robomaster
0bfb62b
Raw History Blame Contribute Delete
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)