mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-08-05 16:25:41 +08:00
cfe0ae9b8a
date: 2023-10-09T10:55:55 commit: 91b6e3aecd7170f24bccacb10c515ec281c30295
26 lines
838 B
Cython
26 lines
838 B
Cython
# distutils: language = c++
|
|
|
|
from libcpp cimport bool
|
|
from libc.stdint cimport uint32_t, uint64_t
|
|
|
|
cdef extern from "cereal/messaging/messaging.h":
|
|
cdef cppclass MessageBuilder:
|
|
size_t getSerializedSize()
|
|
int serializeToBuffer(unsigned char *, size_t)
|
|
|
|
cdef extern from "selfdrive/modeld/models/driving.h":
|
|
cdef int FEATURE_LEN
|
|
cdef int HISTORY_BUFFER_LEN
|
|
cdef int DESIRE_LEN
|
|
cdef int TRAFFIC_CONVENTION_LEN
|
|
cdef int DRIVING_STYLE_LEN
|
|
cdef int NAV_FEATURE_LEN
|
|
cdef int NAV_INSTRUCTION_LEN
|
|
cdef int OUTPUT_SIZE
|
|
cdef int NET_OUTPUT_SIZE
|
|
cdef int MODEL_FREQ
|
|
cdef struct PublishState: pass
|
|
|
|
void fill_model_msg(MessageBuilder, float *, PublishState, uint32_t, uint32_t, uint32_t, float, uint64_t, uint64_t, float, bool, bool)
|
|
void fill_pose_msg(MessageBuilder, float *, uint32_t, uint32_t, uint64_t, bool)
|