ROSEncoder: separate the ROSEncoder in ROSPublisher and ROSSubscriber classes