Advertisement
Guest User

Untitled

a guest
Jan 26th, 2015
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. function rosn() {
  2. if [ "$1" = "" ]; then
  3. topic=$(rosnode list | percol | xargs -n 1 rosnode info | percol | sed -e 's%.* \* \(/[/a-zA-Z0-9_]*\) .*%\1%')
  4. else
  5. topic=$(rosnode info $1 | percol | sed -e 's%.* \* \(/[/a-zA-Z0-9_]*\) .*%\1%')
  6. fi
  7. if [ "$topic" != "" ] ; then
  8. rost $topic
  9. fi
  10. }
  11. function rost() {
  12. if [ "$1" = "" ]; then
  13. node=$(rostopic list | percol | xargs -n 1 rostopic info | percol | sed -e 's%.* \* \(/[/a-zA-Z0-9_]*\) .*%\1%')
  14. else
  15. node=$(rostopic info $1 | percol | sed -e 's%.* \* \(/[/a-zA-Z0-9_]*\) .*%\1%')
  16. fi
  17. if [ "$node" != "" ] ; then
  18. rosn $node
  19. fi
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement