Is there any way to check active cyber nodes and the channels they are subscribed to?
@krishnatoshniwal Thanks for your question! The tool you suggested is already in our plan, it will be released soon.
I write a sample for you to get active nodes as following:
https://github.com/gruminions/apollo/commit/83583fa4df806466bc0c177e075911249095076c
You can also use the related APIs to implement your handy tools.
For example, if you want to get channels, you can use the APIs provided by ChannelManager.
auto topology = apollo::cyber::service_discovery::TopologyManager::Instance();
auto channel_mgr = topology->channel_manager();
// call GetReaders or GetWriters, then show them
Thank you again, further discussion is welcome.
nice
Most helpful comment
@krishnatoshniwal Thanks for your question! The tool you suggested is already in our plan, it will be released soon.
I write a sample for you to get active nodes as following:
https://github.com/gruminions/apollo/commit/83583fa4df806466bc0c177e075911249095076c
You can also use the related APIs to implement your handy tools.
For example, if you want to get channels, you can use the APIs provided by ChannelManager.
auto topology = apollo::cyber::service_discovery::TopologyManager::Instance();auto channel_mgr = topology->channel_manager();// call GetReaders or GetWriters, then show themThank you again, further discussion is welcome.