Models¶
This page specifies the configuration models defined by inorbit_connector.models.
ConnectorConfig¶
Base configuration model for connectors.
Key points:
You typically subclass this to define your connector-specific
connector_configmodel.The base model reads
INORBIT_API_KEYandINORBIT_API_URLfrom environment variables by default.fleetmust contain at least oneRobotConfig, and robot IDs must be unique.
to_singular_config(robot_id) -> ConnectorConfig¶
Returns a config instance of the same subclass type, with fleet filtered down to exactly the requested robot.
Deprecated: log_level¶
ConnectorConfig.log_level is deprecated in favor of ConnectorConfig.logging.log_level.
RobotConfig¶
Per-robot configuration:
robot_id: the InOrbit robot ID.cameras: list of Edge SDKCameraConfigobjects. Camera registration is performed automatically during connector startup.
MapConfig / MapConfigTemp¶
These models describe map metadata and image source.
MapConfig: file-backed map withfile: FilePathpointing to a.png.MapConfigTemp: in-memory map payload withimage: bytes.
Both carry metadata via MapConfigBase:
map_id, optionalmap_labelorigin_x,origin_y,resolutionformat_version(must be 1 or 2)
LoggingConfig¶
Logging configuration used by the connector at startup:
config_file: path to a logging config file (defaults to the package’slogging.default.conf).log_level: optional override for the root logger level.defaults: dictionary passed to the logging config (e.g.log_file).
See setup_logger() for how it is applied.
Deprecated: InorbitConnectorConfig¶
InorbitConnectorConfig is a deprecated single-robot configuration format. It can be converted to a fleet config via:
to_fleet_config(robot_id) -> ConnectorConfig
New implementations should use ConnectorConfig directly.