Apollo: View running cyber nodes/components

Created on 1 Apr 2019  ·  2Comments  ·  Source: ApolloAuto/apollo

Is there any way to check active cyber nodes and the channels they are subscribed to?

Cyber Future work Question

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 them

Thank you again, further discussion is welcome.

All 2 comments

@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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

BenBaek picture BenBaek  ·  3Comments

lql7595 picture lql7595  ·  3Comments

Wsine picture Wsine  ·  3Comments

YaoQii picture YaoQii  ·  3Comments

chasingw picture chasingw  ·  3Comments