cozmo.exceptions

SDK-specific exception classes.

Exceptions

ActionError Base class for errors that occur with robot actions.
AnimationsNotLoaded Raised if an attempt is made to play a named animation before animations have been received.
CannotPlaceObjectsOnThis Raised if an attempt is made to place an object on top of an invalid object
ConnectionAborted Raised if the connection to the device is unexpectedly lost.
ConnectionCheckFailed Raised if the connection check has failed.
ConnectionError Base class for errors regarding connection to the device.
CozmoSDKException Base class of all Cozmo SDK exceptions.
InvalidOpenGLGlutImplementation Raised by opengl viewer if no valid GLUT implementation available.
NoDevicesFound Raised if no devices connected running Cozmo in SDK mode
NotPickupable Raised if an attempt is made to pick up or place an object that can’t be picked up by Cozmo
RobotBusy Raised if an attempt is made to perform an action while another action is still running.
SDKShutdown Raised when the SDK is being shut down
SDKVersionMismatch(message, sdk_version, …) Raised if the Cozmo SDK version is not compatible with the software running on the device.
StopPropogation Raised by event handlers to prevent further handlers from being triggered.
exception cozmo.exceptions.CozmoSDKException

Base class of all Cozmo SDK exceptions.

exception cozmo.exceptions.SDKShutdown

Raised when the SDK is being shut down

exception cozmo.exceptions.StopPropogation

Raised by event handlers to prevent further handlers from being triggered.

exception cozmo.exceptions.AnimationsNotLoaded

Raised if an attempt is made to play a named animation before animations have been received.

exception cozmo.exceptions.ActionError

Base class for errors that occur with robot actions.

exception cozmo.exceptions.ConnectionError

Base class for errors regarding connection to the device.

exception cozmo.exceptions.ConnectionAborted

Raised if the connection to the device is unexpectedly lost.

exception cozmo.exceptions.ConnectionCheckFailed

Raised if the connection check has failed.

exception cozmo.exceptions.NoDevicesFound

Raised if no devices connected running Cozmo in SDK mode

exception cozmo.exceptions.SDKVersionMismatch(message, sdk_version, sdk_app_version, app_version, *args)

Raised if the Cozmo SDK version is not compatible with the software running on the device.

app_version = None

The version of the App that was detected, and is incompatible, in Major.Minor.Patch format.

Type:str
sdk_app_version = None

The version of the App that this SDK is compatible with in Major.Minor.Patch format.

Type:str
sdk_version = None

The SDK version number in Major.Minor.Patch format. See SDK vs. App Versions for which App version is compatible with each SDK version.

Type:str
exception cozmo.exceptions.NotPickupable

Raised if an attempt is made to pick up or place an object that can’t be picked up by Cozmo

exception cozmo.exceptions.CannotPlaceObjectsOnThis

Raised if an attempt is made to place an object on top of an invalid object

exception cozmo.exceptions.RobotBusy

Raised if an attempt is made to perform an action while another action is still running.

exception cozmo.exceptions.InvalidOpenGLGlutImplementation

Raised by opengl viewer if no valid GLUT implementation available.