Skip to content
Discussion options

You must be logged in to vote

Use this QoS settings when creating the reader.

eprosima::fastdds::rtps::Locator udp_locator{};
udp_locator.kind = LOCATOR_KIND_UDPv4;
DataReaderQos reader_qos{};
reader_qos.endpoint().unicast_locator_list.push_back(udp_locator);

Bonus: This can also be used to set a specific listening port for that reader. Just add udp_locator.port = <your_custom_port>;

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by wddpfx
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