mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-11-10 14:33:42 +08:00
22a8575199
Keep official openpilot ancestry and dependency licenses. Store resources directly in Git, remove LFS setup requirements, and leave the downloadable big model outside the source tree.
17 lines
448 B
Python
17 lines
448 B
Python
import os
|
|
import capnp
|
|
from opendbc.car.common.basedir import BASEDIR
|
|
|
|
capnp.remove_import_hook()
|
|
car = capnp.load(os.path.join(BASEDIR, "car.capnp"), imports=[BASEDIR])
|
|
|
|
CarState = car.CarState
|
|
RadarData = car.RadarData
|
|
CarControl = car.CarControl
|
|
CarParams = car.CarParams
|
|
|
|
CarStateT = capnp.lib.capnp._StructModule
|
|
RadarDataT = capnp.lib.capnp._StructModule
|
|
CarControlT = capnp.lib.capnp._StructModule
|
|
CarParamsT = capnp.lib.capnp._StructModule
|