clearpath_config.system.system module

class clearpath_config.system.system.SystemConfig(config: dict = {}, hosts: List[dict] | HostListConfig = [{'hostname': 'generic-xxxx', 'ip': '192.168.131.1'}], localhost: str | Hostname = '206fad758b49', username: str | Username = 'administrator', namespace: str | Namespace = 'cpr_generic_xxxx', domain_id: int | DomainID = 0, middleware: dict | MiddlewareConfig = {'discovery': 'simple', 'implementation': 'rmw_fastrtps_cpp', 'override_server_id': False, 'profile': '', 'servers': []}, workspaces: list = [])

Bases: BaseConfig

DEFAULTS = {'domain_id': 0, 'hosts': [{'hostname': 'generic-xxxx', 'ip': '192.168.131.1'}], 'localhost': '206fad758b49', 'middleware': {'discovery': 'simple', 'implementation': 'rmw_fastrtps_cpp', 'override_server_id': False, 'profile': '', 'servers': []}, 'namespace': 'cpr_generic_xxxx', 'username': 'administrator', 'workspaces': []}
DOMAIN_ID = 'domain_id'
HOSTS = 'hosts'
KEYS = {'domain_id': 'system.ros2.domain_id', 'hosts': 'system.hosts', 'localhost': 'system.localhost', 'middleware': 'system.ros2.middleware', 'namespace': 'system.ros2.namespace', 'self': 'system.self', 'username': 'system.username', 'workspaces': 'system.ros2.workspaces'}
LOCALHOST = 'localhost'
MIDDLEWARE = 'middleware'
NAMESPACE = 'namespace'
ROS2 = 'ros2'
SELF = 'self'
SYSTEM = 'system'
TEMPLATE = {'system': {'hosts': 'hosts', 'localhost': 'localhost', 'ros2': {'domain_id': 'domain_id', 'middleware': 'middleware', 'namespace': 'namespace', 'workspaces': 'workspaces'}, 'self': 'self', 'username': 'username'}}
USERNAME = 'username'
WORKSPACES = 'workspaces'
property domain_id: int
property hosts: HostListConfig
property localhost: str
property middleware: MiddlewareConfig
property namespace: str
update(serial_number=False) None

Update any variables based on inputs.

property username: str
property workspaces: list