https://github.com/duckietown/Software
Raw File
Tip revision: 24daf8362d2c6788d2b2533e4f9e9d9200c6d7be authored by Liam Paull on 13 December 2017, 20:10:55 UTC
mostly configs for camera infos and stuff
Tip revision: 24daf83
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 using environment.sh and compile the repo." >&2
  exit 1
fi

rospack find what_the_duck >/dev/null

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

export DISABLE_CONTRACTS=1
rosrun what_the_duck what-the-duck
back to top