[Python API] - Access Typeref data types

2 posts / 0 new
Last post
Offline
Last seen: 1 year 4 months ago
Joined: 11/23/2021
Posts: 32
[Python API] - Access Typeref data types

Hello RTI Community,

I want to access typeref data types from my python application like follows:

provider = dds.QosProvider("PingPong_types.xml")
my_type = provider.type("NewTypedef1")
 
The typeref in the xml file looks like this:
 
<types>
  <typedef name="NewTypedef1" type="uint8"/>
</types>
 
However if I run the application I get the following error:
 

my_type = provider.type("NewTypedef1")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
rti.connextdds.Error: Failed to get get DynamicType from type library

Can you telp me - what is wrong here?
Thanks in advance!

Best Regards,

Marc

Howard's picture
Offline
Last seen: 1 day 18 hours ago
Joined: 11/29/2012
Posts: 605

Works for me...see attachments.