diff --git a/irobot_benchmark/comms_benchmark/scripts/run_all_benchmarks.sh b/irobot_benchmark/comms_benchmark/scripts/run_all_benchmarks.sh index 7374695e..ead4c99b 100755 --- a/irobot_benchmark/comms_benchmark/scripts/run_all_benchmarks.sh +++ b/irobot_benchmark/comms_benchmark/scripts/run_all_benchmarks.sh @@ -24,10 +24,9 @@ print_help() { echo " 3. Parsing includes: (Uses python3 & dependencies)" echo " - Comparing CPU and memory usage (compare_cpu_memory.py)." echo " - Comparing latency metrics (compare_latency.py)." - echo " - run 'pip3 install pandas numpy matplotlib' to install dependencies" echo echo "Example:" - echo " sudo env LD_LIBRARY_PATH=$LD_LIBRARY_PATH $0 10 Run benchmarks with TEST_DURATION=10 seconds." + echo " sudo env LD_LIBRARY_PATH=\$LD_LIBRARY_PATH $0 10 Run benchmarks with TEST_DURATION=10 seconds." echo echo "Needed because sudo resets LD_LIBRARY_PATH, breaking shared library access." echo @@ -42,7 +41,7 @@ fi # Check if the script is run as root if [[ $EUID -ne 0 ]]; then echo "You must run this script with sudo or as root." - echo "Usage: sudo env LD_LIBRARY_PATH=$LD_LIBRARY_PATH $0 [arguments]" + echo "Usage: sudo env LD_LIBRARY_PATH=\$LD_LIBRARY_PATH $0 [arguments]" exit 1 fi @@ -109,3 +108,4 @@ echo " python3 parse-results/compare_cpu_memory.py $results_dir --plot" echo " python3 parse-results/compare_latency.py $results_dir --plot" echo echo "Remove --plot if no plot is needed." +echo "If not already done, run 'pip3 install pandas numpy matplotlib' to install dependencies"