rticommunity / connextdds-py

Connext DDS Python API
Other
26 stars 12 forks source link

discovered_topic_data not supported. #54

Open mkgvb opened 11 months ago

mkgvb commented 11 months ago

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)```