An adapter is created when the adapter_func input is sent to the pub/sub decorators. Ether will first call this function on the inputs of a pub decorated method or outputs of a sub decorated method to convert it as needed.
This could be useful when
- connecting two third-party classes with ether
- integrating modular components like controllers and game environments where each pair can communicate on the same topics but have unique code to ensure proper conversion from controller space to game action space
An adapter is created when the
adapter_funcinput is sent to the pub/sub decorators. Ether will first call this function on the inputs of a pub decorated method or outputs of a sub decorated method to convert it as needed.This could be useful when