|
| 1 | +#!/bin/bash |
| 2 | + |
| 3 | +copyFolder1_ws () { |
| 4 | + ssh sensor_tube@$1 mkdir -p ros2_ws/src/$2 |
| 5 | + |
| 6 | + rsync -avh ~/ros2_ws/src/$2/ sensor_tube@$1:~/ros2_ws/src/$2 --exclude=cmake-build-debug --exclude=build --exclude=.git --exclude=.idea --exclude=cmake-build-release --delete |
| 7 | +} |
| 8 | +copyFolder1_underlay () { |
| 9 | + ssh sensor_tube@$1 mkdir -p ros2_underlay/src/$2 |
| 10 | + |
| 11 | + rsync -avh ~/ros2_underlay/src/$2/ sensor_tube@$1:~/ros2_underlay/src/$2 --exclude=cmake-build-debug --exclude=build --exclude=.git --exclude=.idea --exclude=cmake-build-release --delete |
| 12 | +} |
| 13 | + |
| 14 | + |
| 15 | +copyFolder2_ws () { |
| 16 | + ssh toptube@$1 mkdir -p ros2_ws/src/$2 |
| 17 | + |
| 18 | + rsync -avh ~/ros2_ws/src/$2/ toptube@$1:~/ros2_ws/src/$2 --exclude=cmake-build-debug --exclude=build --exclude=.git --exclude=.idea --exclude=cmake-build-release --delete |
| 19 | +} |
| 20 | +copyFolder2_underlay () { |
| 21 | + ssh toptube@$1 mkdir -p ros2_underlay/src/$2 |
| 22 | + |
| 23 | + rsync -avh ~/ros2_underlay/src/$2/ toptube@$1:~/ros2_underlay/src/$2 --exclude=cmake-build-debug --exclude=build --exclude=.git --exclude=.idea --exclude=cmake-build-release --delete |
| 24 | +} |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | +IP_ADDRESS="10.42.0.12" |
| 29 | +##IP_ADDRESS="192.168.0.193" |
| 30 | +##IP_ADDRESS="10.70.15.149" |
| 31 | +copyFolder1_ws "$IP_ADDRESS" "BlueROV2Common" |
| 32 | +#copyFolder1_underlay "$IP_ADDRESS" "bluespace_ai_xsens_ros_mti_driver" |
| 33 | +copyFolder1_underlay "$IP_ADDRESS" "commonBlueROVMSG" |
| 34 | +copyFolder1_underlay "$IP_ADDRESS" "ping360_sonar" |
| 35 | +copyFolder1_underlay "$IP_ADDRESS" "ping360_sonar_msgs" |
| 36 | +copyFolder1_underlay "$IP_ADDRESS" "px4_msgs" |
| 37 | +copyFolder1_underlay "$IP_ADDRESS" "waterlinked_a50_dvl_ros2" |
| 38 | +copyFolder1_ws "$IP_ADDRESS" "hippo_core" |
| 39 | +copyFolder1_underlay "$IP_ADDRESS" "Tritech-Micron-Driver" |
| 40 | + |
| 41 | +IP_ADDRESS="10.42.0.222" |
| 42 | + |
| 43 | +copyFolder2_ws "$IP_ADDRESS" "BlueROV2Common" |
| 44 | +#copyFolder2_underlay "$IP_ADDRESS" "bluespace_ai_xsens_ros_mti_driver" |
| 45 | +copyFolder2_underlay "$IP_ADDRESS" "commonBlueROVMSG" |
| 46 | +copyFolder2_ws "$IP_ADDRESS" "ros2_usb_camera" |
| 47 | +#copyFolder2_underlay "$IP_ADDRESS" "ping360_sonar" |
| 48 | +copyFolder2_underlay "$IP_ADDRESS" "ping360_sonar_msgs" |
| 49 | +copyFolder2_underlay "$IP_ADDRESS" "px4_msgs" |
| 50 | +#copyFolder2_underlay "$IP_ADDRESS" "waterlinked_a50_dvl_ros2" |
| 51 | +#copyFolder2_ws "$IP_ADDRESS" "hippo_core" |
0 commit comments