-
Notifications
You must be signed in to change notification settings - Fork 14
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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
Python API about the Shared Memory Transport #42
Comments
Did you find a solution >_< |
Hi @cdp-study , @duchengyao , At this moment it's not possible to define the user transports using the Python API. However, by default Fast DDS uses both an UDPv4 transport and a Shared Memory transport, the latter being preferred for data transfer if communication is possible. Could you provide us with some more information (like the IDL used to generate the type) or a minimal reproducer? |
@jsantiago-eProsima Thanks for reply. For example, I'd like to receive data from example/HelloWorldExampleSharedMem .
Then, I run publisher of C++ and subscriber of python. The subscriber cannot receive any data. But after delete this line So, maybe the python binding cannot receive data of shared memory. Thanks! |
You could use an XML profile like the one shown here to setup the available descriptors for your participant. This XML can be loaded either from a file or from a string. If the profile is not set as default, you can specify it manually on participant creation with the create_participant_with_profile call. |
@jsantiago-eProsima I have successfully used shared memory via XML, thanks! BTW,
And I try using ctypes to accelerate speed of converting data.
But I cannot get the address using variable. Can I get the address like |
Hi @duchengyao, sorry for the late response. The data conversion has been improved in this PR, which introduces a
Regarding this, the |
I am moving this issue to the support discussion forum as per our CONTRIBUTING guidelines. |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
I want to use Fast-DDS-Python transfers the 900K data, but I find it too slow to transfer data. By viewing the answers to the corresponding questions in Fast-DDS, I need to use the Shared Memory Transport. But I don't find it in the Python API. Can you tell me how to implement the corresponding functions with the Fast-DDS-Python?
The text was updated successfully, but these errors were encountered: