https://github.com/carla-simulator/carla
Raw File
Tip revision: 1d58c6e4199ca6a8dd0883a895e63d54b3529042 authored by Roel Algaba Brizuela on 07 June 2021, 11:31:53 UTC
Updated render tests
Tip revision: 1d58c6e
Plugins.sh
# ==============================================================================
# -- Parse arguments -----------------------------------------------------------
# ==============================================================================

DOC_STRING="Retrieve the plugins for CARLA"

USAGE_STRING="Usage: $0 [-h|--help] [--release]"

RELEASE=false

while [[ $# -gt 0 ]]; do
  case "$1" in
    --release )
      RELEASE=true
      shift ;;
    -h | --help )
      echo "$DOC_STRING"
      echo "$USAGE_STRING"
      exit 1
      ;;
    * )
      shift ;;
  esac
done

# ==============================================================================
# -- Get Plugins ---------------------------------------------------------------
# ==============================================================================

log "Retrieving Plugins"

if [[ -d "${CARLA_ROOT_FOLDER}Plugins" ]] ; then
  log "Plugins already installed."
else
  if ${RELEASE} ; then
    git clone --depth=1 --recursive https://github.com/carla-simulator/carla-plugins.git "${CARLA_ROOT_FOLDER}Plugins"
  else
    git clone --recursive https://github.com/carla-simulator/carla-plugins.git "${CARLA_ROOT_FOLDER}Plugins"
  fi
fi
back to top