Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from controller import Robot
- if __name__=='__main__':
- robot = Robot()
- timestep = 64
- max_speed = 6.28
- left_front_motor = robot.getDevice('motor_left_front')
- right_front_motor = robot.getDevice('motor_right_front')
- left_back_motor = robot.getDevice('motor_left_back')
- right_back_motor = robot.getDevice('motor_right_back')
- #left_motor.setPosition(float('inf'))
- left_front_motor.setPosition(float('inf'))
- right_front_motor.setPosition(float('inf'))
- left_back_motor.setPosition(float('inf'))
- right_back_motor.setPosition(float('inf'))
- left_front_motor.setVelocity(10);
- right_front_motor.setVelocity(10);
- left_back_motor.setVelocity(10);
- right_back_motor.setVelocity(10);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement