Revision fc27ac579b0d5de0fb3b0e3bd4000752970e5648 authored by Andrea Censi on 17 September 2018, 08:46:13 UTC, committed by GitHub on 17 September 2018, 08:46:13 UTC
2 parent s 7a0e829 + 717b98a
Raw File
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