Skip to content

ROS2 - Enable data sharing/ zero copy #2550

Answered by EduPonz
Nir-Az asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @Nir-Az ,

  1. Data sharing is enabled and configured as OFF by default in Fast DDS when using it through ROS 2, so to use it in ROS 2:
    1. These constrains must be met.
    2. You'd need to enable it using XML (see ros2/rmw_fastrtps#579).
  2. As for Zero-copy, which is the combination of data sharing and sample loaning in both sender and receiver side, the ROS 2 subscriber uses loans whenever it's possible, i.e. whenever these constrains are met. As for the publication side, ROS 2 does not provide documentation about the feature just yet, but you can see an example here.

Hope that helps!

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by MiguelCompany
Comment options

You must be logged in to vote
4 replies
@EduPonz
Comment options

@Nir-Az
Comment options

@Ryanf55
Comment options

@sirawats
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants