-
Notifications
You must be signed in to change notification settings - Fork 58
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
Enhancement: allow dynamic scan message size to reduce latency #94
Comments
In my experimentation, sending 1 At least for Hesai, the decoder and decoder wrapper are already agnostic to number of packets. |
I recommend getting rid of ScanMsg altogether. |
I agree, this would additionally allow us to send smaller packets without padding (currently, Using the scan message for logging would require us to implement a mechanism to replay the scan contents in a timing-accurate manner, i.e. we would additionally need to store packet timestamps (the ones in the packets themselves could be used but are vendor-specific and thus a pain to parse in the HW interface). (also see discussion autowarefoundation#4024) |
I'm currently working on this along with refactoring Nebula towards being a single node: |
Packets are now decoded on arrival, one-by-one. Scan messages are still containing one scan's worth of packets as recording with |
Description
Currently, the scan message containing raw UDP packets is sized to be the same as the number of packets in the scan.
Together with adding
nebula_messages
that has a generic udppacket
message andpackets
message (currently "scan" message), enabling an arbitrary number of packets perpackets
message would allow tuning to optimize throughput.Purpose
Details
The reasoning behind this change is as follows:
Possible approaches
nebula_messages
withnebula_packet
andnebula_packets
, which allow any number of packets (but keep track of the number of packets contained in the message with a field)The text was updated successfully, but these errors were encountered: