-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CANParser: remove dependence on cereal #934
Conversation
d62f9cc
to
97e3e8f
Compare
So we still need to support parsing dynamic capnp in parser.cc if the DYNAMIC_CAPNP is defined? Also parser_pyx.pyx still depends on cereal, do we need to move it to openpiot? Or just leave it as it is? |
The goal of this is to make opendbc a real independent submodule,, and that means getting rid of the cereal dependence entirely. I'm imagining we have a very fast function that converts from cereal's CAN struct to opendbc's. Then, we can wrap it in Cython for openpilot and PlotJuggler can also use it. |
got it |
@deanlee want to finish this one up? |
y, but it might take a little while. |
9cfb4e3
to
7ef09a4
Compare
@adeebshihadeh : Done. there is no loss in performance. |
d7bdfbd
to
ab36998
Compare
@adeebshihadeh removed all dependencies on cereal. the CAN frame uses the same format as |
ab36998
to
f51be6f
Compare
24722ba
to
f46ac6d
Compare
@sshane the extra conversion steps make it (commaai/openpilot#32009) more than twice as slow as the master. this branch
master
|
Seeing similar results here. I think this is acceptable, but would be nice to speed it up in the future. Before #1039 I'm seeing
on this PR I'm seeing
and on current master I'm seeing
|
@deanlee is this ready now? Once it's in we can really start on commaai/openpilot#32630! |
BTW here's a list of things we need to remove from selfdrive/car, do you know if we have Python logging in opendbc yet? commaai/openpilot#32726 |
Y, it's ready.
There shouldn't be any, but I'm not very sure right now |
d025e4f
to
986dd5d
Compare
same capitalization
thought there'd be more
564b146
to
69ca983
Compare
LGTM, thanks for the PR! |
@deanlee want to update PlotJuggler? |
I keep encountering the following error when trying to clone the PlotJuggler:
I'll attempt it again later. |
* move car interfaces to opendbc * Revert "move car interfaces to opendbc" This reverts commit 0589ea0. * remove dependence on cereal * parse can strings in a c++ helper function * remove all cereal * reserve * use itervalues * rebase master * cleanup * keep the same style * revert unrelated changes * truly no cereal! * same capitalization same capitalization * parser: declutter nanos usage (commaai#1067) thought there'd be more * revert more --------- Co-authored-by: Shane Smiskol <shane@smiskol.com>
resolve #825