Class Participant

Class Documentation

class Participant

Class Participant used to group Publishers and Subscribers into a single working unit.

Public Functions

const rtps::GUID_t &getGuid() const

Get the rtps::GUID_t of the associated RTPSParticipant.

Returns:

rtps::GUID_t

const ParticipantAttributes &getAttributes() const

Get the ParticipantAttributes.

Returns:

ParticipantAttributes.

bool newRemoteEndpointDiscovered(const rtps::GUID_t &partguid, uint16_t userId, rtps::EndpointKind_t kind)

Called when using a StaticEndpointDiscovery mechanism different that the one included in FastRTPS, for example when communicating with other implementations. It indicates to the Participant that an Endpoint from the XML has been discovered and should be activated.

Parameters:
  • partguidParticipant rtps::GUID_t.

  • userId – User defined ID as shown in the XML file.

  • kind – EndpointKind (WRITER or READER)

Returns:

True if correctly found and activated.

std::vector<std::string> getParticipantNames() const

Returns a list with the participant names.

Returns:

list of participant names.

void assert_liveliness()

Asserts liveliness of manual by participant publishers.

rtps::ResourceEvent &get_resource_event() const