script to sync a robot from a pre-compiled ROS 2 workspace
Make sure you have the prerequisites installed:
sudo apt update
sudo apt install wget rsyncDownload the script from this repository and make it executable, using:
wget https://raw.githubusercontent.com/ijnek/sync/main/sync.sh && chmod +x sync.shThe script can be downloaded to any directory on your computer.
Make sure you are in the workspace that you intend to sync to the robot. Then run,
/path/to/sync.sh user hostname
# OR
/path/to/sync.sh user ip-addressreplace /path/to/sync.sh with the actual path on your computer to the downloaded sync.sh file. This file will exist where you invoked the download from.
where:
useris the username on the remote host you are syncing tohostnameorip-addressis the hostname or ip address of the remote host you are syncing to
To use the script to sync a workspace to a NAO robot with user name nao and IP address 10.0.0.18:
/path/to/sync.sh nao 10.0.0.18