ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Hey @blackbird Reading through the documentation link you provided, it seems rosnode.rosnode_ping can take max_count. So for example If you set max_count=5, the rosnode.rosnode_ping("/my_node_name", max_count=5) will exit after 5 pings and return True. If you don't mention any max_count, it will continue until stopped ctrcl+c. You can also set verbose=True to see the ping time.

Hey @blackbird Reading through the documentation link you provided, it seems rosnode.rosnode_ping can take max_count. So for example If you set max_count=5, the rosnode.rosnode_ping("/my_node_name", max_count=5) will exit after 5 pings and return True. If you don't mention any max_count, it will continue until stopped ctrcl+cctrl+c. You can also set verbose=True to see the ping time.