connextdds-py icon indicating copy to clipboard operation
connextdds-py copied to clipboard

discovered_topic_data not supported.

Open mkgvb opened this issue 1 year ago • 0 comments

Was trying to play around with dynamic_data and wanted to use discovered_topics to try and subscribe. I got this far and ran into rti.connextdds.UnsupportedError: get discovered topic data

Are there any plans to support this in the python api, or another way to get the topic data at this time? Jist of my code, it all works until the last line.

import rti.connextdds as dds

time.sleep(2)
print(part.discovered_participants())

x = part.discovered_participant_data(part.discovered_participants())

i: dds.ParticipantBuiltinTopicData
for i in x:
    print(i.topic_name)
    print(i.participant_name.name)

topics = part.discovered_topics()

t: dds.InstanceHandle
for t in topics:
    print(t)
    print(part.discovered_topic_data(t).topic_name)```

mkgvb avatar Aug 07 '23 13:08 mkgvb