Connection with PC(windows) via python

28 views
Skip to first unread message

Gutierre Andrade

unread,
Feb 4, 2016, 11:25:41 AM2/4/16
to iRobot Create Forum
Guys, I'm starting to research about it.
Must connect Roomba Create with my computer via serial cable / USB.
So I'm trying to do this with Python.

import serial

class CreateDrive():

def onConnect(self):
                port = (COM3)
def move(self):
self.sendCommandASCII('128')
self.sendCommandASCII('131') 
self.sendCommandASCII('137 255 56 1 244')
self.sendCommandASCII('173') 
if __name__ == "__main__":
    app = CreateDrive()
  

You know tell if these lines of code can make the connection and send commands to the robot?

Thanks.
Reply all
Reply to author
Forward
0 new messages