Title: Accidentally overwrote simple_patrol.bash file in Linux Basics

Body:

Hi,

I’m working on the “Linux Basics for Robotics” rosject (Part 2 — Create Programs to Control the Robot). While trying to move two provided files (robot_interface.py and simple_patrol.bash) from ~/ros2_ws/src/ into my package folder ~/ros2_ws/src/linux_basics_project/src/, I made a mistake with the mv command and accidentally overwrote simple_patrol.bash with the contents of robot_interface.py.

I was able to recover robot_interface.py by renaming it back, but the original content of simple_patrol.bash is now lost. There is no git repository in the workspace to restore it from (git status returns “not a git repository”).

Could someone please help me restore the original simple_patrol.bash file (the sample bash script for the Simple Patrol program), or point me to where I can download it again?

Thank you!

How did you get the contents on this file to begin with? How did you create it? You can just follow the same process again to recreate it.

It makes sense.Thank you

1 Like