I'm working on Ubuntu OS, I want to make a single bash file which runs this code correctly as it shows in the screenshots.
Please notice that :
I want to launch two terminals in a single terminal window and the second set of codes in the second terminal should be launched after 5 seconds of the first set of codes in the first terminal.
I need the first set of codes to keep running (do not stop when starting the second terminal).*
Code:
cd catkin_ws
roscore
sleep 5
source devel/setup.bash
roslaunch hector _slam_launch tutorial.launch
Screenshots: