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.
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.