示例代码如下:
#coding=utf-8
from Robot import Robot
def drive(robot:Robot):
###### Begin ######
robot.SteerRightForward(2)
robot.SteerLeftForwad(1.25)
robot.Forward(1.9)
###### end ######
return
示例代码如下:
#coding=utf-8
from Robot import Robot
def drive(robot:Robot):
###### Begin ######
robot.Forward(3.38)
robot.Stop()
robot.PickUp()
###### end ######
return
示例代码如下:
#coding=utf-8
from Robot import Robot
def drive(robot:Robot):
###### Begin ######
robot.SteerLeftForwad(0.8)
robot.Forward(1)
robot.SteerRightForward(1.2)
robot.SteerLeftForwad(0.3)
robot.Forward(0.92)
robot.Stop()
robot.PickUp()
###### end ######
return
示例代码如下:
#coding=utf-8
from Robot import Robot
def drive(robot:Robot):
###### Begin ######
robot.SteerRightForward(1.41)
robot.Forward(2.75)
robot.Stop()
robot.PickUp()
robot.SteerLeft(3.1)
robot.Forward(5)
robot.Stop()
robot.PutDown()
###### end ######
return