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

SHM feature On NuttX #306

Open
PierrePeng opened this issue Dec 18, 2021 · 3 comments
Open

SHM feature On NuttX #306

PierrePeng opened this issue Dec 18, 2021 · 3 comments

Comments

@PierrePeng
Copy link

Hi,

I am confused about the share memory feature On Nuttx.

  1. Can I publish a topic from program A and receive it both from program B and program C?
  2. Should I create sessions/streams/entities/publishers/subscribers for each topic that I want to publish/subscribe to in a single program?

Thanks!

@pablogs9
Copy link
Member

  • Can I publish a topic from program A and receive it both from program B and program C?

Yes if those programs share the same memory and address space. SHM in XRCE is implemented as a naive approach that does not take into account process memory protection.

  • Should I create sessions/streams/entities/publishers/subscribers for each topic that I want to publish/subscribe to in a single program?

One session can have multiple streams, and those streams and the session can handle multiple pubs, subs, and topics.

@PierrePeng
Copy link
Author

@pablogs9 Thanks for your reply!

One session can have multiple streams, and those streams and the session can handle multiple pubs, subs, and topics.

Are there any tutorials or examples about that?

@pablogs9
Copy link
Member

You have all the available examples here: https://github.com/eProsima/Micro-XRCE-DDS-Client/tree/master/examples

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