fix: make auto start scripts work when not in specific dir

This commit is contained in:
David
2025-10-26 06:54:05 -05:00
parent f735f7194e
commit e351e4c991
3 changed files with 5 additions and 11 deletions

View File

@@ -15,10 +15,7 @@ echo "[INFO] Starting ROS node..."
source /opt/ros/humble/setup.bash
# Source your workspace setup script
source /home/clucky/rover-ros2/install/setup.bash
# CD to directory
cd /home/clucky/rover-ros2/
source $(dirname $0)/../install/setup.bash
# Launch the ROS 2 node with the desired mode
ros2 launch anchor_pkg rover.launch.py mode:=anchor