You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ways of identifying message type without the hacky C++ struct wrapper/runtime registration trick from last year:
Protobuf message descriptor full name (string). Protobuf can provide the full name (message name + package) in string form, which can be used to identify the message's type. Very easy, reliable, few limitations. The only con is that mapping a received message to its handler will require string comparison. Messages need to be handled with low latency on Raspberry Pi and desktop. Test whether string comparison vs direct mapping even makes a measurable difference on these platforms.
Protobuf message descriptor index. Protobuf provides the index of a message in the package. This adds the limitation that all messages must be defined in the same proto package/file, but an integer index allows a direct-mapped table of message type to handler.
Manually specifying message types using a Protobuf enum. Documenting this method since it was our original plan. It is like the message descriptor index, but worse.
Done. The Protobuf repository (here) has a new wrapper.proto file and the Dashboard and Subsystems-Computer repositories can include this repository as a submodule.
No description provided.
The text was updated successfully, but these errors were encountered: