micro-ROS/micro-ROS-demos

[FEA] add intra-mcu communication example.

ZhenshengLee opened this issue · 2 comments

As microxrcedds is a agent-based dds, every node inside/outside mcu will need to exchange info with each other through the agent.

Besides the agent-less solution of embeddedRTPS, there is a PR that can help to do intra-mcu communication, and an example is needed.

Thanks.

Hi @eden-desta! So, @pablogs9 has been working hard on a new Shared Memory feature, about which you can read in this PR. The implementation is complete and only pending to be merged. Basically, now the same Client with two entities matching internally can be aware of it and proceed with the communication without the Agent having to mediate it.

It would be great if you could test it and give us some feedback, also regarding whether this feature addresses your use-case. We are excited to know what you guys think of it! Hopefully, it fits your needs!

Originally posted by @FranFin in micro-ROS/micro-ROS-Agent#37 (comment)

EDIT:
Glad to see it an offically supported feature. https://micro.ros.org/docs/overview/ROS_2_feature_comparison/
image

This is awesome! I will definitely give it a test! Thank you all for your efforts!

This feature can be enabled on compilation time with the Micro-XRCE-DDS middleware UCLIENT_PROFILE_SHARED_MEMORY flag: detail.

Then you can just create a set of pub/sub or service server/client on the same topic and they will communicate internally.

At this moment there is not a tutorial specific doc about this feature, but that may change soon. Stay tuned!