Skip to content

Commit 7fb7cc8

Browse files
committed
[jsk_tools] add get_ros_client_hostnames_func
1 parent 006778b commit 7fb7cc8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

jsk_tools/env-hooks/99.jsk_tools.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,3 +189,7 @@ restart_travis() {
189189
rosbag_record_interactive() {
190190
rosbag record $(zenity --list --column topics $(rostopic list) --multiple --separator=' ')
191191
}
192+
193+
get_ros_client_hostnames() {
194+
rosnode list | xargs -P10 -I% bash -c "rosnode info % | grep \"contacting node\" | sed -e \"s/.*http:\/\///\" | sed -e \"s/:[0-9]*\/.*//\"" | sort -u
195+
}

0 commit comments

Comments
 (0)