Skip to content
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

Does this Embedded RTPS supports with Publish and Subscribe within a MCU running different tasks #25

Open
ManvithRaj opened this issue Dec 6, 2022 · 1 comment

Comments

@ManvithRaj
Copy link

ManvithRaj commented Dec 6, 2022

Hi @akampmann

I have following use case i would like to know whether embeddedRTPS support or not ?

Usecase1 : I have built my application by replacing Micro-ROS XRCE DDS with your embeddedRTPS. Micro-ROS XRCE DDS has below functinalties . does embeddedRTPS supports the same ?

                 1. Shared memory functionalities - this will allow Internally a MCU Publish and subscribe on same topic
                 2. Multi thread functionalities   -   this will allow multiple threads/task running with publish and subscribe within mcu 
                 3. Custom Transport Functionality  - this will allow to replace UDP/TCP transport to serial transport etc.

Please clarify on these. I could not see above options enabling config files in embeddedRTPS compared to Micro-ROS XRCE DDS.

If not please let me know if there is any way to have publisher and subscriber within a mcu to establish communication between two different tasks one as publisher and other as subscriber on same topic ?

Please mention if there is any limitations while using embeddedRTPS.

Information from you is really helpful to me. Please reply ASAP. Thank you in advance

@akampmann
Copy link
Contributor

akampmann commented Dec 9, 2022

Hi @ManvithRaj

the main goal of embeddedRTPS is to enable microcontrollers to communicate through RTPS on top of UDP/IP without having to use an agent (in contrast to XRCE-DDS).

1. Shared memory functionalities - this will allow Internally a MCU Publish and subscribe on same topic

It is in principle possible to create multiple RTPS participants on the same MCU. The endpoints of these two participants should match (haven't tested this feature and you might run into memory limitation issues). I'm not sure how Micro-ROS interacts with embeddedRTPS and if this would be a feasible way. Communication between the two instances on the same device will then go through lwip.

2. Multi thread functionalities - this will allow multiple threads/task running with publish and subscribe within mcu

Yes, embeddedRTPS is intended to be thread safe.

3. Custom Transport Functionality - this will allow to replace UDP/TCP transport to serial transport etc.

embeddedRTPS uses UDP through lwIP. There is no seamless way to use a different transport (e.g. serial port).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants