https://github.com/duckietown/Software
Raw File
Tip revision: c24c136451fea51d24045c83d4c4de338fbc0367 authored by Andrea Censi on 15 October 2017, 20:31:56 UTC
Merge pull request #230 from duckietown/andrea-devel
Tip revision: c24c136
what-the-duck
#!/bin/bash
RED='\033[0;31m'
NC='\033[0m' # No Color

if ! [ -x "$(command -v rospack)" ]; then
  echo -e "${RED}rospack is not accessible${NC}." >&2
  echo -e "You need to activate ROS and compile the repo." >&2
  exit 1
fi

rospack find what_the_duck

if [ $? -eq 0 ]; then
    echo
else
    echo -e "Error: ${RED}Package what_the_duck not compiled.${NC}" >&2
fi

rosrun what_the_duck what-the-duck
back to top