Skip to content

Beginner's publish question #153

Answered by gabrik
smnrgrs asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @smnrgrs,

TL;DR;

1 and 2 ) Using the publisher allows for some wire optimizations that are not present when using the z_put directly.
So if the key expression being used by the sensor is always the same and it is known a priori I advocate for creating the publishers.

  1. I think the publisher is tied to the key expression used in the declaration, this is true also in other languages not only in C.
    In general, if the amount of key expression being published by every sensor is small and known a priori you can declare a publisher per key expression.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Mallets
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants