https://github.com/duckietown/Software
Revision a344e18ebe4dfa7ce0f7f486973877aef1c4e758 authored by Liam Paull on 08 November 2017, 11:13:05 UTC, committed by Liam Paull on 08 November 2017, 11:13:05 UTC
1 parent 86a0a12
Raw File
Tip revision: a344e18ebe4dfa7ce0f7f486973877aef1c4e758 authored by Liam Paull on 08 November 2017, 11:13:05 UTC
adding full logging
Tip revision: a344e18
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