This is a small tutorial on how to debug a ROS2 C++ node usign VSCode.
This implementation was done using:
| #!/bin/bash | |
| # Usage ./gpumeter.sh my-gpu-hungry-script.sh | |
| # Check if the command argument is provided | |
| if [ "$#" -ne 1 ]; then | |
| echo "Usage: $0 <script_to_run>" | |
| exit 1 | |
| fi | 
| #!/usr/bin/env bash | |
| while :; do | |
| bash loop | |
| sleep 5 | |
| done | 
| #!/usr/bin/env bash | |
| set -e | |
| # This is a simple mirroring script. To save bandwidth it first checks a | |
| # timestamp via HTTP and only runs rsync when the timestamp differs from the | |
| # local copy. As of 2016, a single rsync run without changes transfers roughly | |
| # 6MiB of data which adds up to roughly 250GiB of traffic per month when rsync | |
| # is run every minute. Performing a simple check via HTTP first can thus save a | |
| # lot of traffic. |