ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
You can use rosnode_ping_all() or rosnode_ping()
import rosnode
alive_nodes, unpinged_nodes = rosnode.rosnode_ping_all()
rosnode.rosnode_ping(node, max_count=5)
you can find the documentation of the rosnode module here