Skip to content

Commit 893c3e8

Browse files
committed
short update on docs
1 parent 792a94d commit 893c3e8

File tree

6 files changed

+84
-44
lines changed

6 files changed

+84
-44
lines changed

BlueROV2/overview.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,8 @@ Here is a general overview of the BlueROV2 robot that was modified at Constructo
1515

1616

1717

18-
18+
# Software Infos:
19+
20+
21+
22+

Sensors/DVLA50.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ nav_order: 1
1010
ROS2 Driver: `[email protected]:constructor-robotics/waterlinked_a50.git`
1111

1212

13-
13+
Ip address on BlueROV: 192.168.10.12
1414

Sensors/overview.md

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,28 @@ plugged in.
1818

1919
In order to do this we have to follow the next steps:
2020

21-
- List attributes for device:
22-
`udevadm info --name=/dev/ttyUSBx --attribute-walk` - where x is a number matching your device port.
23-
- In the attributes list look out for the attributes that is unique for each device (e.g. `idVendor`, `idProduct`)
21+
- List attributes for device with lsusb:
22+
lsusb output looks like this:
23+
`Bus 001 Device 005: ID **1234**:**5678** Some Device Name`
24+
VENDOR_ID is the first four-digit hex number (1234 in this example). PRODUCT_ID is the second (5678). Use those values (without "0x") in your udev rule.
2425
- If you found those attributes open (or create and open if it does not exist) the following file: `/etc/udev/rules.d/99-usb-serial.rules`
25-
- If the unique attributes were found, write a similar rule in the file we just opened: `SUBSYSTEM=="tty", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6015", SYMLINK+="ping360"
26+
- If the unique attributes were found, write a similar rule in the file we just opened: `SUBSYSTEM=="tty", ATTRS{idVendor}=="1234", ATTRS{idProduct}=="5678", SYMLINK+="ping360"
2627
`. In this case, the command we used is specifically made for the Ping360 sonar from Blue Robotics)
2728
- Apply the rules: `sudo udevadm control --reload-rules && sudo udevadm trigger`
2829
- To check if rules were applied correctly execute: `ls /dev/ping360 -l`. In general cases, replace ping360 with the name
2930
inserted in the SYMLINK attribute of the created rule.
3031
- You should see a similar result:
3132

32-
`lrwxrwxrwx 1 root root 7 Nov 2 12:49 /dev/ping360 -> ttyUSB0`
33+
`lrwxrwxrwx 1 root root 7 Nov 2 12:49 /dev/ping360 -> ttyUSB0`
34+
35+
36+
# Start bottom tube without ROS:
37+
```
38+
sudo pigpiod
39+
python3
40+
import pigpio
41+
resetPin = 18
42+
gpioPinSonar = pigpio.pi()
43+
gpioPinSonar.set_mode(resetPin, pigpio.OUTPUT)
44+
gpioPinSonar.write(resetPin, 1)
45+
```

_bashScripts/copyROSSoftwareToRPI4.sh

Lines changed: 30 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,45 @@
11
#!/bin/bash
22

3+
# this script has to run from inside "bluerovws" by: source bashScripts/copyROSPackagesToBlueROV.sh
4+
# it copies the desired packages from your local setup to the pis. Ensure that ~/ros_ws/src exists on the pis
5+
36
copyFolder1_ws () {
4-
ssh sensor_tube@$1 mkdir -p ros2_ws/src/$2
7+
# ssh maintube@$1 mkdir -p ~/ros_ws/src/$2
58

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
9+
rsync -avh src/$2/ maintube@$1:~/ros_ws/src/$2 --exclude=cmake-build-debug --exclude=build --exclude=.git --exclude=.idea --exclude=cmake-build-release --delete
710
}
8-
copyFolder1_underlay () {
9-
ssh sensor_tube@$1 mkdir -p ros2_underlay/src/$2
1011

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-
}
1312

1413

1514
copyFolder2_ws () {
16-
ssh toptube@$1 mkdir -p ros2_ws/src/$2
15+
# ssh sensortube@$1 mkdir -p ~/ros_ws/src/$2
1716

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
17+
rsync -avh src/$2/ sensortube@$1:~/ros_ws/src/$2 --exclude=cmake-build-debug --exclude=build --exclude=.git --exclude=.idea --exclude=cmake-build-release --delete
1918
}
20-
copyFolder2_underlay () {
21-
ssh toptube@$1 mkdir -p ros2_underlay/src/$2
2219

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-
}
2520

2621

22+
#Main Tube
23+
IP_ADDRESS="192.168.10.2"
24+
25+
copyFolder1_ws "$IP_ADDRESS" "bluerov2common"
26+
copyFolder1_ws "$IP_ADDRESS" "bluerov2commonmsgs"
27+
copyFolder1_ws "$IP_ADDRESS" "ping360_sonar_msgs"
28+
copyFolder1_ws "$IP_ADDRESS" "micron_driver_ros"
29+
copyFolder1_ws "$IP_ADDRESS" "px4_msgs"
30+
copyFolder1_ws "$IP_ADDRESS" "px4-ros2-interface-lib"
31+
copyFolder1_ws "$IP_ADDRESS" "waterlinked_a50"
32+
33+
34+
#Sensor Tube
35+
IP_ADDRESS="192.168.10.3"
2736

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"
37+
copyFolder2_ws "$IP_ADDRESS" "bluerov2common"
38+
copyFolder2_ws "$IP_ADDRESS" "bluerov2commonmsgs"
39+
copyFolder2_ws "$IP_ADDRESS" "ping360_sonar_msgs"
40+
copyFolder2_ws "$IP_ADDRESS" "micron_driver_ros"
41+
copyFolder2_ws "$IP_ADDRESS" "px4_msgs"
42+
copyFolder2_ws "$IP_ADDRESS" "px4-ros2-interface-lib"
43+
copyFolder2_ws "$IP_ADDRESS" "waterlinked_a50"
44+
copyFolder2_ws "$IP_ADDRESS" "ping360_sonar"
45+
copyFolder2_ws "$IP_ADDRESS" "bluespace_ai_xsens_mti_driver"
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#!/bin/bash
2+
3+
set -e
4+
echo "This script was written by AI"
5+
echo "Step 1: Deinitializing all submodules..."
6+
git submodule deinit -f --all
7+
8+
echo "Step 2: Removing submodule paths from index..."
9+
SUBMODULE_PATHS=$(git config --file .gitmodules --get-regexp path | awk '{ print $2 }')
10+
11+
for path in $SUBMODULE_PATHS; do
12+
echo "Removing $path"
13+
git rm -f "$path"
14+
rm -rf "$path"
15+
done
16+
17+
echo "Step 3: Cleaning up .git/modules/..."
18+
rm -rf .git/modules/*
19+
20+
echo "Step 4: Resetting to current branch..."
21+
CURRENT_BRANCH=$(git symbolic-ref --short HEAD)
22+
git checkout "$CURRENT_BRANCH" -- .gitmodules
23+
git reset --hard
24+
25+
echo "Step 5: Reinitializing and updating submodules..."
26+
git submodule update --init --recursive --force
27+
28+
echo "✅ Done. All submodules are reset to match the branch '$CURRENT_BRANCH'"

px4/software.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ This has to be fully tested in a docker container
1515
The modification of the PX4 software is located in bluerov2common ROS2 package (`[email protected]:constructor-robotics/bluerov2common.git`)
1616

1717

18-
18+
Ip address on BlueROV: 192.168.10.11
1919

2020
# PX4 Commands
2121

@@ -51,6 +51,7 @@ echo DNS=1.1.1.1 >> /fs/microsd/net.cfg
5151
```
5252

5353
# Micro-XRCE-DDS-Agent Install
54+
In CMakeLists.txt change the 2.12.x to 2.12.1
5455
```
5556
git clone -b v2.4.2 https://github.com/eProsima/Micro-XRCE-DDS-Agent.git
5657
cd Micro-XRCE-DDS-Agent

0 commit comments

Comments
 (0)