Python API: DataReader/DataWriter find_by_name(): What is name?

2 posts / 0 new
Last post
Offline
Last seen: 1 month 1 week ago
Joined: 06/07/2023
Posts: 5
Python API: DataReader/DataWriter find_by_name(): What is name?

I would like to make use of `find_by_name()` byt I can't determine how to set a name for the reader. Passing the topic name or type name does not work.

`find_by_topic()` and `find_all_by_topic()` does work using topic name, and probably is sufficient for my needs. I'm just trying to understand the API.

Keywords:
Howard's picture
Offline
Last seen: 2 days 14 hours ago
Joined: 11/29/2012
Posts: 573

Hi, because the Connext Python API's documentation is not up to par (its new and still being worked on), you should confer the docs of a different language to find the information for the equivalent method.

In this case, it's DDSSubscriber::lookup_datareader_by_name:

https://community.rti.com/static/documentation/connext-dds/7.1.0/doc/api/connext_dds/api_cpp/classDDSSubscriber.html#ac76625bb6c883c6e90782dfef715f320

You'll see that it uses the EntityName QoSPolicy.

https://community.rti.com/static/documentation/connext-dds/7.1.0/doc/api/connext_dds/api_cpp/group__DDSEntityNameQosModule.html