๐ Reset & Recovery Guide
When working with the LIMO Pro + MyCobot + YOLO system, unexpected errors, crashes, or misconfigurations can happen.
This guide gives you step-by-step reset and recovery procedures to get your robot back online without corrupting its core setup.
๐ Emergency Shutdownโ
If your robot behaves unexpectedly (e.g., spinning uncontrollably, arm collision risk):
- Press the Robot's E-Stop Button โ instantly cuts motor power.
- Kill All ROS2 Nodes:
pkill -9 -f ros2 - Turn Off the Main Power Switch on the LIMO Pro.
- Disconnect Arm Power (if MyCobot is active and unsafe).
Never try to "catch" the robot arm by hand while motors are active โ it can cause injury or damage.
โป๏ธ Full System Resetโ
Sometimes, you need to reset software state without reflashing SD cards.
- Quick Reset
- Full Reset
For minor glitches (e.g., wrong pose, map drift):
# Kill all running nodes
pkill -9 -f ros2
# Restart full system
ros2 launch full_system full_system.launch.py
โ
This reloads pose_setter, Nav2, YOLO, and Mission Manager in the correct sequence.
For major issues (navigation failing, robot unresponsive):
-
Shutdown ROS2:
pkill -9 -f ros2 -
Power cycle the robot (turn off, wait 5s, turn on).
-
Reconnect MyCobot over Wi-Fi:
- SSID:
MyCobotWiFi2.4G - Pass:
mycobot123
- SSID:
-
Re-run the main launch file:
ros2 launch full_system full_system.launch.py
๐งน Workspace & Config Recoveryโ
If ROS2 packages break or configs get corrupted:
Never build inside the source workspace of the robot. Always use an external colcon workspace for your code.
-
Backup your current workspace:
tar -czvf backup_ws_$(date +%F).tar.gz ~/krish_ws -
If broken:
rm -rf ~/krish_ws
mkdir -p ~/krish_ws/src -
Re-clone your project from GitHub.
-
colcon build only inside your workspace.
๐พ Data Recovery (Maps, Logs, Params)โ
To restore custom maps, YOLO weights, or parameter configs after a reset:
| Data Type | Default Path | Backup Method |
|---|---|---|
| RTAB-Map / Cartographer Maps | ~/maps/*.yaml, .pgm | Copy to USB / Git repo |
| YOLO Model Weights | ~/krish_ws/runs/detect/.../best.pt | Cloud or Git LFS |
| Nav2 Params | ~/krish_ws/src/nav2_params.yaml | Git commit |
๐ Worst-Case Recovery (SD Card Reflash)โ
If nothing works:
- Contact vendor or use your pre-flashed SD card backup.
- Flash using balenaEtcher or Raspberry Pi Imager.
- Boot robot and set up your workspace again.
โ Post-Recovery Checklistโ
- โ All ROS2 nodes launch without errors.
- โ MyCobot connects automatically over Wi-Fi.
- โ Navigation goals work.
- โ YOLO detects objects in RViz / image topic.
- โ Mission Manager resumes full workflow.
Keep two microSD cards โ one in use, one as a ready-to-go backup.
Next: Usage Guide โ Full Workflow