added minimal example for remote control via laptop

master
Simon Pirkelmann 2019-04-13 14:30:30 +02:00
parent 1b2a8368e1
commit 80ee257a7d
1 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,10 @@
import socket
rc_socket = socket.socket()
rc_socket.connect(('192.168.4.1', 1234)) # connect to robot
rc_socket.send('l\n') # left
rc_socket.send('r\n') # right
rc_socket.send('f\n') # forward
rc_socket.send('b\n') # backward
rc_socket.send('q\n') # quit