https://github.com/carla-simulator/carla
Raw File
Tip revision: cdbe2d82f3c3b361ce64617c9615d67541dadea2 authored by Axel on 08 October 2021, 16:22:55 UTC
Added new class ASensorManager to control the ticking of the various sensors. Added specific classes UAtlasManager8Bit and UAtlasManager16Bit to control camera sensors with specific texture precision.
Tip revision: cdbe2d8
ImportAssets.sh
#! /bin/bash

# ==============================================================================
# -- Parse arguments -----------------------------------------------------------
# ==============================================================================

DOC_STRING="Unpack and copy over CarlaUE4's Exported Assets"

USAGE_STRING="Usage: $0 [-h|--help] [-d|--dir] <outdir>"

OUTPUT_DIRECTORY=""

OPTS=`getopt -o h,d:: --long help,dir:: -n 'parse-options' -- "$@"`

if [ $? != 0 ] ; then echo "$USAGE_STRING" ; exit 2; fi

eval set -- "$OPTS"

while true; do
  case "$1" in
    --dir )
      OUTPUT_DIRECTORY="$2"
      shift ;;
    -h | --help )
      echo "$DOC_STRING"
      echo "$USAGE_STRING"
      exit 1
      ;;
    * )
      break ;;
  esac
done

#Tar.gz the stuff
for filepath in `find Import/ -type f -name "*.tar.gz"`; do
  tar --keep-newer-files -xvf ${filepath}
done

back to top