lcm-proj / lcm

Lightweight Communications and Marshalling
GNU Lesser General Public License v2.1
997 stars 393 forks source link

can lcm list all active topics? like ros 'rostopic list' #227

Open DinnerHowe opened 6 years ago

DinnerHowe commented 6 years ago

hi, there, does lcm support list all alive topic by command line or py api? just like ros, input a command line in terminal rostopic list

venabled commented 6 years ago

Would probably point you to the user's mailing list for questions like this, since they're not technically code issues:

https://groups.google.com/forum/#!forum/lcm-users

However, to answer your question, something like this isn't out of the box via command line. The LCM-Spy gui will do this, and you can write a quick command line script via your favorite supported programming language.

Since LCM defaults to UDP multicast, you'd have to just listen for all channels and collect metadata on the messages coming across.