Skip to content

BaseProtocol

Full path: schola.core.protocols.base.BaseProtocol

schola.core.protocols.base.BaseProtocol

BaseProtocol

BaseProtocol

Bases: object

Base class for all communication protocols with Schola.

This abstract class defines the basic interface for communication protocols used to connect Python environments with simulations.

Methods

ItemDescription
__init__()
closeClose the protocol connection.
get_definitionGet the environment definition from Unreal Engine.
send_startup_msgSend the initial startup message to Unreal Engine.
startStart the protocol connection.

Attributes

ItemDescription
propertiesGet protocol-specific properties.

close

close()

Close the protocol connection.

Notes

This method should be safe to call multiple times.

Returns

None


get_definition

get_definition(*args, **kwargs)

Get the environment definition from Unreal Engine.

Parameters

*args : Variable length argument list.

**kwargs : Arbitrary keyword arguments.

Returns

The environment definition containing information about agents, observation spaces, and action spaces.

Return type: Any


properties

properties: Dict[str, Any]

Get protocol-specific properties.


send_startup_msg

send_startup_msg(*args, **kwargs)

Send the initial startup message to Unreal Engine.

Parameters

*args : Variable length argument list.

**kwargs : Arbitrary keyword arguments.


start

start()

Start the protocol connection.

Initializes and opens the connection to the Unreal Engine.

Returns

None