Below you will find my code for task2.sh
#!/bin/bash instruction=$1 if [ $instruction=="small_square" ]; then rosrun linux_exam small_square.py elif [ $instruction=="medium_square" ]; then rosrun linux_exam medium_square.py elif [ $instruction=="big_square" ]; then rosrun linux_exam big_square.py fi
It passes the small_square test but fails the medium_square and big_square tests. I doubt there is any issue with my code since when I tested it myself it indeed was crossing distances correctly (0.5 for small, 1 for medium and 2 for big). Thanks for the great courses!