-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Creation of one connector blocking another? #127
Comments
Hey, I just ran a quick test and cannot reproduce your behaviour. I modified the simple example shipped with Connector to contain two readers (MySquareReader1 and MySquareReader2):
I then modified the reader.py to do:
And I see samples arriving to both Inputs. I also modified it to create a separate connector object for each reader (like you are doing in your example):
and it still works:
|
So I am not crazy. I had run a similar test last night. How would you expect the above to change if I were not talking to another RTI DDS connection. For instance is there any reason to believe the behavior would be different when talking with a computer running twin oaks DDS? Both are using DDS and should be interoperable? I am writing 1/2 of a software stack and another group is working on the other 1/2. I only have their XML and some pre compiled test scripts. |
It shouldn't have an effect AFAIK. Could you run a quick test for me and modify your code such that only one Connector object is created (and then that Connector is used to create both of the inputs, as opposed to creating a Connector per reader)? Out of interest, are your DataReaders both defined under the same DomainParticipant? And the DataWriter too? |
So if I am understanding you right this should be the new connector generator:
xml (redacted)
They are both defined under the same domain participant as well as subscriber. I have tried splitting them into different subscribers with no effect. Oddly the QOS xml I am using is being used as it with another group working on an electron application and they do not encounter the issue. I will test the multi reader from a single connector solution as soon as I can track down where the testing box walked off to... |
Update:
I can say with preliminary confidence that this appears to be a solution. Generate a single connector with multiple readers. |
Interesting case where creating one DDS reader appears to block the reading ability of another? If the creation of the first is commented out the second will receive messages. Holding off on XML unless necessary. Have confirmed both connectors will be created and operate independently so doubt it is an XML issue.
connectors.py
invoke.py
The text was updated successfully, but these errors were encountered: