Skip to content

Deprecate/remove getDataType() ? #179

Description

@peci1

The sub and pub plugins now have two redundant methods:

Or at least I see them as redundant.

getDataType() is only used in list_transports and PointCloudCodec, but it is a public method which all plugins have to implement.

I'd suggest to deprecate/future remove getDataType() and keep only getMessageType(). In the meantime, we could at least add implementation to simple plugins that would relay getDataType() to getMessageType() so that newly written plugins do not need to implement it. I think this should be ABI-compatible even in existing distros.

The question is whether getDataType() should be removed in the future because it would break all existing plugins. But given the fact that there were anyways large changes recently, the plugin authors have to be prepared for updating....

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions