DDS Python Connector

1 post / 0 new
Offline
Last seen: 3 months 3 weeks ago
Joined: 10/11/2022
Posts: 1
Python RTI Connector Event Loop

Do you have an example of how to setup an event loop in python with the DDS Python Connector?

I only see input.wait() and connector.wait() on https://community.rti.com/static/documentation/connector/current/api/python/input.html  but both appear to be blocking.  How do I set up a way to register a call back when new messages are recieved?

 

Organization:
2 posts / 0 new
Last post
Offline
Last seen: 8 months 1 week ago
Joined: 05/27/2022
Posts: 1
RTI Python Crashes with FuncAnimation

I am implementing a python script which seeks to plot in real time read data from an RTI python connector.

When I reference a function rather than call a function which uses input.wait(), the python kernel crashes. Is there a reason why this happens?

I added a screenshot of the code. The kernel crashes at the animation call.

Organization:
5 posts / 0 new
Last post
ilya_1725's picture
Offline
Last seen: 7 months 3 weeks ago
Joined: 04/20/2020
Posts: 24
Using rti/service/admin/command_request example

Hello:

There is an administration topic to control RTI data recorder. The topic is rti/service/admin/command_request.

Does anyone have a python example to do this remote control of the data recorder? Sending commands and processing replies.

-Ilya.

6 posts / 0 new
Last post
Offline
Last seen: 2 years 9 months ago
Joined: 03/01/2020
Posts: 8
Python DDS: OSError: exception: access violation

Dear All!

 

I am trying to publish some sensor data via DDS from Python code.

Basically, the relevant parts of the code are:

with rti.open_connector(config_name="MyParticipantLibrary::MyPubParticipantT", url="Definition.xml") as connector:
self.output=connector.get_output("a::MyWriterT")
self.output.wait_for_subscriptions()

self.dds_instance=self.output.instance

 

And after some steps within the statemachine:

2 posts / 0 new
Last post
Offline
Last seen: 3 years 2 months ago
Joined: 11/09/2019
Posts: 1
Python DDS connector issue

Hi

I want to use 2 connectors in my python program but I don't know why this error occurs

1 post / 0 new
Offline
Last seen: 1 year 10 months ago
Joined: 05/08/2017
Posts: 5
Using rtirecord.xml in python connector/XML Application

Main Question:

How do I explicitly fill out a union? The other examples given on the forum rely on it automatically figuring out what type to use, but the rtirecord struct (ab)uses the discriminator to mean different things!

Subscribe to RSS - DDS Python Connector