Check ros2 node status
When using ROS1, I am able to use ros::master::getNodes to check the nodes that is functioning through code usage.
I wonder to know is there any way that ros2 can achieve the same functionality which is to get the functioning nodes.