At the end of Linux for Robotics course, just before moving to the real robot ./simple_patrol_sim.bash don’t run or rather doesn’t output anything
I am running simulation in one terminal, teleop in second terminal, 3rd terminal is interface.py and the 4th terminal where I should run ./simple_patrol_sim.bash, nothing happens.
Simulation:
-
In a new Terminal window, launch the Gazebo simulation using the commands specified in the Launching the Simulation section above.
-
In a second new Terminal window, launch the Robot Interface program.
- After starting the program, wait for 5 seconds for the program to initialize and print
READY !!!.
Execute in Terminal
cd ~/ros2_ws/src/linux_basics_project/linux_basics_project/
./robot_interface.py
- In a third new Terminal window, launch the Simple Patrol (Sim) program. This program will make the robot start moving around the arena.
- Note: Make sure that the Robot Interface program is ready, otherwise the robot will not start moving!
Execute in Terminal
cd ~/ros2_ws/src/linux_basics_project/linux_basics_project/
./simple_patrol_sim.bash
Here is a sample output animation of the Simple Patrol program in the Simulation environment. Note that the algorithm works with a lot of uncertainty (randomness). So the your output can be different from what is shown in the below animation. You will not get the exact same results.