Initial Commit
This commit is contained in:
19
scripts/kill_simulation.sh
Executable file
19
scripts/kill_simulation.sh
Executable file
@@ -0,0 +1,19 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo "Killing all simulation processes..."
|
||||
|
||||
pkill -9 -f "gazebo" 2>/dev/null || true
|
||||
pkill -9 -f "gzserver" 2>/dev/null || true
|
||||
pkill -9 -f "gzclient" 2>/dev/null || true
|
||||
pkill -9 -f "sim_vehicle.py" 2>/dev/null || true
|
||||
pkill -9 -f "mavproxy" 2>/dev/null || true
|
||||
pkill -9 -f "mavros" 2>/dev/null || true
|
||||
pkill -9 -f "ArduCopter" 2>/dev/null || true
|
||||
pkill -9 -f "ArduRover" 2>/dev/null || true
|
||||
pkill -9 -f "ros2" 2>/dev/null || true
|
||||
|
||||
sleep 1
|
||||
|
||||
echo "All processes killed."
|
||||
echo "Remaining ROS nodes:"
|
||||
ros2 node list 2>/dev/null || echo "No ROS nodes running"
|
||||
Reference in New Issue
Block a user