olympus-robotics / hephaestus

Hephaestus is a C++ framework designed to facilitate robotics development by providing commonly needed functionality and abstractions.
MIT License
18 stars 2 forks source link

[IPC] Check for TypeInfo in pubsub / service #114

Open floriantschopp opened 2 weeks ago

floriantschopp commented 2 weeks ago

In https://github.com/olympus-robotics/hephaestus/pull/113, it gets testet that with a wrong type, pubsub does fail (which it should). However, in some cases, it could still actually work to deserialize and then lead to undefined behavior. A better way would be to check the TypeInfo of both publisher and subscriber, and client and server, respectively.