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

What computers are participating in ROS right now?

asked 2018-07-27 08:27:42 -0500

pitosalas gravatar image

Having gotten through a particularly annoying troubleshooting session, I think there must be a tool that would have helped me. Along the lines of rosnode and rostopic, I would like to see a listing of what the computers are that are participating, e.g.

computer-a (ip 12.1.2.3, ubuntu 16.04)
  Node one
     Topic X (published)
     Topic Y (published)
 - Node two
     Topic H (subscribed)
compute-b  (ip 12.1.2.4, ubuntu 16.04)
  - Node three
      Topic X (subscribed)

Note specifically the mention of distinct "computers" so that one could tell that topic Y had no subscribers. I am not sure to be honest whether this would have smoked out by config problem but it would seem that something more would have been useful.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2018-07-27 08:52:40 -0500

gvdhoorn gravatar image

I believe you're looking for this:

rostopic list --host

Adding -v gives you something like:

Host [some_hostname]:

  Published topics:
   * /rosout_agg [rosgraph_msgs/Log] 1 publisher

  Subscribed topics:
   * /rosout [rosgraph_msgs/Log] 1 subscriber
edit flag offensive delete link more

Comments

Note btw that this is technically not an actual answer to your question: rostopic list will only show the topics registered with a master (and the hostnames/nodes). There can be multiple masters, so this is not an exhaustive list.

"participating in ROS" is also an ambiguous question.

gvdhoorn gravatar image gvdhoorn  ( 2018-07-27 08:55:06 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2018-07-27 08:27:42 -0500

Seen: 114 times

Last updated: Jul 27 '18