Skip to content

Filtering self sent data #8

@Boereck

Description

@Boereck

Hi,

When subscribing on a topic that the same participant is publishing to, how can one filter out the messages sent by this same participant. When searching on the internet regarding this topic, the only solutions that come up are to use the DDS_Entity API, which does not seem to be supported by Cyclone DDS.
See also: https://community.rti.com/kb/how-do-i-get-datareader-ignore-datawriter-belongs-same-domainparticipant

From dds_sample_info_t it is possible to access the field publication_handle of type dds_instance_handle_t but it seems this handle does not match the instance handle from the sending publisher or participant (gained by calling dds_get_instance_handle).

It seems the publication_handle is always 1 when the sender is receiving its own data, can this be relied upon as a workaround filtering criterion? Or is there a different API that can be used?

I would appreciate your help! Thanks,
Max

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