You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Example codes are really helpful to use the LCM. Nevertheless, examples only explain one subsribe case.
I would like to subscribe to multiple channels using the select method in one process. Thus, I'm really appreciate it if someone explain me a good solution (or sample code) of it. Because I'm a beginner of the LCM and thus I'm not sure whether my method is correct or not.
It would be nice if the example codes will be a bit richer (such as multiple channel subscribe in a process, etc).
Thank you in advance.
The text was updated successfully, but these errors were encountered:
kshfire
changed the title
[Ask][C++] What is a good practice for multiple subscribe (w/ select) ?
[Ask][C++] What is a good practice for multiple (channel) subscribe in one process (w/ select approach) ?
Nov 4, 2024
In the meantime, please see the API docs for information on how you subscribe to multiple channels. You may be interested in this page specifically. In particular the docs on the channel argument:
This is treated as a regular expression
So, for example, you could use regex to match multiple channels with one call. Or you could call the subscribe method multiple times.
Example codes are really helpful to use the LCM. Nevertheless, examples only explain one subsribe case.
I would like to subscribe to multiple channels using the select method in one process. Thus, I'm really appreciate it if someone explain me a good solution (or sample code) of it. Because I'm a beginner of the LCM and thus I'm not sure whether my method is correct or not.
It would be nice if the example codes will be a bit richer (such as multiple channel subscribe in a process, etc).
Thank you in advance.
The text was updated successfully, but these errors were encountered: