cozmo.conn

Engine connection.

The SDK operates by connecting to the Cozmo “engine” - typically the Cozmo app that runs on an iOS or Android device.

The engine is responsible for much of the work that Cozmo does, including image recognition, path planning, behaviors and animation handling, etc.

The cozmo.run module takes care of opening a connection over a USB connection to a device, but the CozmoConnection class defined in this module does the work of relaying messages to and from the engine and dispatching them to the cozmo.robot.Robot instance.

Classes

CozmoConnection(*a, **kw)

Manages the connection to the Cozmo app to communicate with the core engine.

EvtConnected(**kwargs)

Triggered when the initial connection to the device has been established.

EvtConnectionClosed(**kwargs)

Triggered when the connection to the controlling device is closed.

EvtRobotFound(**kwargs)

Triggered when a Cozmo robot is detected, but before he's initialized.