Skip to content

Commit 42cf45d

Browse files
authored
Add additional Raspberry Pi setup instructions to fix iRobotEducation/create3_examples#44 (#428)
* Add additional setup that fixes iRobotEducation/create3_examples#44 * Fix and cleanup ntp documentation steps * Fix chrony.conf instructions - a server does not need to be added * Add steps for adding the raspi to the Create 3's NTP sources * Remove an extraneous line and a reference to connecting over USB to the web interface. * Add recommendation to follow NTP setup and make adding NTP sources an optional step Addresses iRobotEducation/create3_examples#44 * Add note to only add compute board IP address to Create 3 NTP sources if it is missing
1 parent 889bfb7 commit 42cf45d

File tree

3 files changed

+21
-3
lines changed

3 files changed

+21
-3
lines changed

docs/setup/compute-ntp.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ If your Create® 3 and compute board have an internet connection, this is not re
2222

2323
1. Add the following lines after the `pool #.ubuntu.pool.ntp.org iburst maxsources #` block
2424

25-
server 192.168.186.2 presend 0 minpoll 0 maxpoll 0 iburst prefer trust
2625
# Enable serving time to ntp clients on 192.168.186.0 subnet.
2726
allow 192.168.186.0/24
2827

@@ -35,6 +34,12 @@ If your Create® 3 and compute board have an internet connection, this is not re
3534

3635
sudo service chrony restart
3736

37+
1. Log into the Create® 3 web application and modify the NTP sources (as of Jul 2023 under "Beta Features") to add the following if it does not exist:
38+
39+
server 192.168.186.3 iburst
40+
41+
1. Through the Create® 3 web application, restart the NTPD server (or reboot the robot) if you made changes in the previous step.
42+
3843
1. Verify compute NTP server is talking to the Create® 3
3944

4045
sudo chronyc clients
@@ -44,12 +49,11 @@ If your Create® 3 and compute board have an internet connection, this is not re
4449
Hostname NTP Drop Int IntL Last Cmd Drop Int Last
4550
===============================================================================
4651
192.168.186.2 51 0 5 - 32 0 0 - -
47-
localhost 0 0 - - - 31 0 7 4
4852

4953
1. Note that if there is a large jump in the time, the Create® 3 may not accept it until its next reboot.
5054
This can be verified by checking the Create® 3 robot's log for a line like
5155

5256
user.notice ntpd: ntpd: reply from 192.168.186.3: delay ### is too high, ignoring
53-
If this happens, simply restart the robot (not just the application) via the webserver over the USB network connection.
57+
If this happens, simply restart the robot (not just the application) via the webserver over the network connection.
5458

5559
[^1]: ROS 2 is governed by Open Robotics

docs/setup/pi4galactic.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,13 @@ The first boot may take a few minutes. (It may help to have a monitor and keyboa
3737
sudo update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8
3838
export LANG=en_US.UTF-8
3939

40+
1. Recommended: follow the procedure to [Setup NTP on this compute board](compute-ntp.md) so the Create 3 can sync its clock.
41+
2. Optional: Run `timedatectl` and see if `System clock synchronized: ` says `yes`. If not, you may want setup NTP on your raspi so the clock stays accurate. To do so, specify some NTP servers for time syncronization. Edit `/etc/systemd/timesyncd.conf` (`sudo nano /etc/systemd/timesyncd.conf`) to have the below contents, then run `systemctl restart systemd-timesyncd.service` to load the new NTP server configuration.
42+
43+
[Time]
44+
NTP=ntp.ubuntu.com
45+
FallbackNTP=0.us.pool.ntp.org 1.us.pool.ntp.org
46+
4047
1. Then, execute the following blocks of commands to install ROS 2[^4]:
4148

4249
sudo apt update && sudo apt install -y curl gnupg2 lsb-release build-essential git cmake

docs/setup/pi4humble.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,13 @@ The first boot may take a few minutes. (It may help to have a monitor and keyboa
6060
sudo update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8
6161
export LANG=en_US.UTF-8
6262

63+
1. Recommended: follow the procedure to [Setup NTP on this compute board](compute-ntp.md) so the Create 3 can sync its clock.
64+
2. Optional: Run `timedatectl` and see if `System clock synchronized: ` says `yes`. If not, you may want setup NTP on your raspi so the clock stays accurate. To do so, specify some NTP servers for time syncronization. Edit `/etc/systemd/timesyncd.conf` (`sudo nano /etc/systemd/timesyncd.conf`) to have the below contents, then run `systemctl restart systemd-timesyncd.service` to load the new NTP server configuration.
65+
66+
[Time]
67+
NTP=ntp.ubuntu.com
68+
FallbackNTP=0.us.pool.ntp.org 1.us.pool.ntp.org
69+
6370
1. Then, execute the following blocks of commands to install ROS 2[^4]:
6471

6572
sudo apt update && sudo apt install -y curl gnupg2 lsb-release build-essential git cmake

0 commit comments

Comments
 (0)