Created
January 26, 2015 18:00
-
-
Save garaemon/90b4d98b42c59b42ded4 to your computer and use it in GitHub Desktop.
ROS + percol integration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function rosn() { | |
| if [ "$1" = "" ]; then | |
| topic=$(rosnode list | percol | xargs -n 1 rosnode info | percol | sed -e 's%.* \* \(/[/a-zA-Z0-9_]*\) .*%\1%') | |
| else | |
| topic=$(rosnode info $1 | percol | sed -e 's%.* \* \(/[/a-zA-Z0-9_]*\) .*%\1%') | |
| fi | |
| if [ "$topic" != "" ] ; then | |
| rost $topic | |
| fi | |
| } | |
| function rost() { | |
| if [ "$1" = "" ]; then | |
| node=$(rostopic list | percol | xargs -n 1 rostopic info | percol | sed -e 's%.* \* \(/[/a-zA-Z0-9_]*\) .*%\1%') | |
| else | |
| node=$(rostopic info $1 | percol | sed -e 's%.* \* \(/[/a-zA-Z0-9_]*\) .*%\1%') | |
| fi | |
| if [ "$node" != "" ] ; then | |
| rosn $node | |
| fi | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment