Skip to content

Commit

Permalink
[jsk_tools] add get_ros_client_hostnames_func
Browse files Browse the repository at this point in the history
  • Loading branch information
sktometometo committed Mar 29, 2023
1 parent 8d6ff58 commit 417ed11
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions jsk_tools/env-hooks/99.jsk_tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -189,3 +189,7 @@ restart_travis() {
rosbag_record_interactive() {
rosbag record $(zenity --list --column topics $(rostopic list) --multiple --separator=' ')
}

get_ros_client_hostnames() {
rosnode list | xargs -P10 -I% bash -c "rosnode info % | grep \"contacting node\" | sed -e \"s/.*http:\/\///\" | sed -e \"s/:[0-9]*\/.*//\"" | sort -u
}

0 comments on commit 417ed11

Please sign in to comment.