Support for runtime switching of transport (UDP / custom, etc )
Current implementation requires compile time definition for transport type. Adding support for runtime
switching will open possibility of applications to setup backup channel in case main channel fails or create more dynamic applications.
possible implementation
- add a another transport "multimode" apart from UDP, custom, etc which defines multimode implementation. Thus only users with "multimode" bear the overhead of binary size and execution.
multimode
-
rmw_uxrce_transport_params_t contains parameters for all possible types. Nothing excluded by macros.
-
Add a static global variable "RMW_UXRCE_ACTIVE_TRANSPORT" to determine currently active transport and make transport call as per currently active transport.
Does this sound like a good idea ?