Files

45 lines
1.4 KiB
Bash

#!/usr/bin/env bash
# ==============================================================================
# Vision-Guided Robotic Pick-and-Place Simulation Launcher
# NVIDIA Isaac Sim 6.2 / Python
# ==============================================================================
set -e
PROJECT_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
ISAAC_PYTHON="/home/dmhai/isaacsim/python.sh"
if [ ! -f "$ISAAC_PYTHON" ]; then
echo "ERROR: Isaac Sim Python executable not found at: $ISAAC_PYTHON"
exit 1
fi
echo "=============================================================================="
echo " VISION-GUIDED ROBOTIC PICK-AND-PLACE SIMULATION"
echo " Project Root: $PROJECT_ROOT"
echo " Isaac Python: $ISAAC_PYTHON"
echo "=============================================================================="
cd "$PROJECT_ROOT"
# Default to multi-movement if no task or execution flags are provided
ARGS=("$@")
HAS_TASK_OR_MODE=false
for arg in "$@"; do
if [[ "$arg" == "--multi-movement" || "$arg" == "--auto-start" || "$arg" == "--task-id"* ]]; then
HAS_TASK_OR_MODE=true
break
fi
done
if [ "$HAS_TASK_OR_MODE" = false ]; then
ARGS+=("--multi-movement")
fi
echo "Executing: $ISAAC_PYTHON scripts/run_application.py ${ARGS[*]}"
echo "=============================================================================="
exec "$ISAAC_PYTHON" scripts/run_application.py "${ARGS[@]}"