selfdrive.manager package

Submodules

selfdrive.manager.build module

selfdrive.manager.build.build(spinner: Spinner, dirty: bool = False) None[source]

selfdrive.manager.helpers module

selfdrive.manager.helpers.unblock_stdout() None[source]

selfdrive.manager.manager module

selfdrive.manager.manager.main() None[source]
selfdrive.manager.manager.manager_cleanup() None[source]
selfdrive.manager.manager.manager_init() None[source]
selfdrive.manager.manager.manager_prepare() None[source]
selfdrive.manager.manager.manager_thread() None[source]

selfdrive.manager.process module

class selfdrive.manager.process.DaemonProcess(name, module, param_name, enabled=True)[source]

Bases: ManagerProcess

Python process that has to stay running across manager restart. This is used for athena so you don’t lose SSH access when restarting manager.

prepare() None[source]
start() None[source]
stop(retry=True, block=True) None[source]
class selfdrive.manager.process.ManagerProcess[source]

Bases: ABC

callback: _StructModule object at 0x7f7f4bdd4760>], bool]] = None
check_watchdog(started: bool) None[source]
daemon = False
enabled = True
get_process_state_msg()[source]
last_watchdog_time = 0
name = ''
offroad = False
onroad = True
abstract prepare() None[source]
proc: Optional[Process] = None
restart() None[source]
shutting_down = False
sigkill = False
signal(sig: int) None[source]
abstract start() None[source]
stop(retry: bool = True, block: bool = True) Optional[int][source]
unkillable = False
watchdog_max_dt: Optional[int] = None
watchdog_seen = False
class selfdrive.manager.process.NativeProcess(name, cwd, cmdline, enabled=True, onroad=True, offroad=False, callback=None, unkillable=False, sigkill=False, watchdog_max_dt=None)[source]

Bases: ManagerProcess

prepare() None[source]
start() None[source]
class selfdrive.manager.process.PythonProcess(name, module, enabled=True, onroad=True, offroad=False, callback=None, unkillable=False, sigkill=False, watchdog_max_dt=None)[source]

Bases: ManagerProcess

prepare() None[source]
start() None[source]
selfdrive.manager.process.ensure_running(procs: ~typing.ValuesView[~selfdrive.manager.process.ManagerProcess], started: bool, params=None, CP: ~typing.Optional[<capnp.lib.capnp._StructModule object at 0x7f7f4bdd4760>] = None, not_run: ~typing.Optional[~typing.List[str]] = None) None[source]
selfdrive.manager.process.join_process(process: Process, timeout: float) None[source]
selfdrive.manager.process.launcher(proc: str, name: str) None[source]
selfdrive.manager.process.nativelauncher(pargs: List[str], cwd: str, name: str) None[source]

selfdrive.manager.process_config module

selfdrive.manager.process_config.driverview(started: bool, params: ~common.params_pyx.Params, CP: <capnp.lib.capnp._StructModule object at 0x7f7f4bdd4760>) bool[source]
selfdrive.manager.process_config.logging(started, params, CP: <capnp.lib.capnp._StructModule object at 0x7f7f4bdd4760>) bool[source]
selfdrive.manager.process_config.notcar(started: bool, params: ~common.params_pyx.Params, CP: <capnp.lib.capnp._StructModule object at 0x7f7f4bdd4760>) bool[source]

Module contents