Skip to content

3.1.0 Participant user data/get_matched_publication_data example #5409

Answered by Mario-DL
CaseySanchez asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @CaseySanchez,

Thanks for using Fast DDS. I would clarify some ideas here:

  • The UserData is meant for the user to add extra information of the entity (vector of bytes), but you usually use a standard topic for transmitting a data message starting from an idl.
  • A usual way of retrieving the UserDataQoSPolicy in the receiving side would be in the on_participant_discovery() within ParticipantDiscoveryInfo.
  • Making operations on discovery callbacks is usually discouraged as it can potentially cause deadlocks with the application.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@CaseySanchez
Comment options

Answer selected by CaseySanchez
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants