-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Initial migration to Jazzy. Not all packages exist as binaries yet * Add a note about firmware compatibility to the readme * Add exception handling to the file i/o so the node doesn't just crash if we're missing a file * Add proper escape characters to title backslashes * Add improved exception handling to the wifi settings parser * Update CI * Properly escape all `\` characters in stylized titles, add translation & link to generator page in comments * Add copyright & contribution notices, fix up code formatting, import ordering. Disable linting for some specific lines where appropriate * Add XML namespaces & version to cyclone DDS config * Omit XML linting (for now); it's consistently timing out and failing * Class newline * Add exception handling to the file preview * Apply formatting to exception text * Add an option to force the Create3 settings to be reapplied, even if we haven't changed anything else. Always apply the _do_not_use namespace, as we're universally using the republisher now * Remove superfluous concatenation * Fix trailing newlines * Enable testing packages for CI * Write the value of the enum to the bash file, use a regex to match existing items in the file * Disable checks on two lines with long format strings * Add exception handling for install & uninstall * Add an error prompt to show errors during installation * Handle KeyErrors separately * Add newline to end of file * Fix indentation * `''.format` -> `f''` * Update the default system file, print the keys instead of the enums * Remove uses of `.value` when printing enums, just add a `__str__` function to the relevant classes
- Loading branch information
1 parent
8055a59
commit 0105584
Showing
20 changed files
with
574 additions
and
299 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,11 +3,20 @@ name: turtlebot4_setup_ci | |
on: [push, pull_request] | ||
|
||
jobs: | ||
turtlebot4_humble_ci: | ||
name: Humble | ||
runs-on: ubuntu-22.04 | ||
turtlebot4_jazzy_ci: | ||
name: Jazzy | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: ros-tooling/setup-ros@v0.3 | ||
- uses: ros-tooling/setup-ros@v0.7 | ||
with: | ||
required-ros-distributions: humble | ||
required-ros-distributions: jazzy | ||
use-ros2-testing: true | ||
- uses: ros-tooling/[email protected] | ||
id: action_ros_ci_step | ||
with: | ||
target-ros2-distro: jazzy | ||
import-token: ${{ secrets.GITHUB_TOKEN }} | ||
skip-tests: false | ||
package-name: | ||
turtlebot4_setup |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Contributing to TurtleBot4 Setup | ||
|
||
Any contribution that you make to this repository will | ||
be under the Apache 2 License, as dictated by that | ||
[license](http://www.apache.org/licenses/LICENSE-2.0.html): | ||
|
||
~~~ | ||
5. Submission of Contributions. Unless You explicitly state otherwise, | ||
any Contribution intentionally submitted for inclusion in the Work | ||
by You to the Licensor shall be under the terms and conditions of | ||
this License, without any additional terms or conditions. | ||
Notwithstanding the above, nothing herein shall supersede or modify | ||
the terms of any separate license agreement you may have executed | ||
with Licensor regarding such Contributions. | ||
~~~ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,8 @@ Setup scripts and tools for the TurtleBot 4 Raspberry Pi. | |
|
||
Visit the [TurtleBot 4 User Manual](https://turtlebot.github.io/turtlebot4-user-manual/software/turtlebot4_setup.html) for more details. | ||
|
||
Make sure your Create® 3 is updated to the `I.*.*` firmware; older versions of the firmware are not compatible with ROS 2 Jazzy. | ||
|
||
# Create an image manually | ||
|
||
Follow these instructions if you wish to create a Turtlebot4 image manually. | ||
|
@@ -12,14 +14,14 @@ Follow these instructions if you wish to create a Turtlebot4 image manually. | |
|
||
First install the [Raspberry Pi Imager](https://www.raspberrypi.com/software/). | ||
|
||
- Insert your SD card into your PC and run the Raspberry Pi Imager. Follow the instructions and install Ubuntu 22.04 Server (64-bit) onto the SD card. | ||
- Ensure your Raspberry Pi 4 is not powered before inserting the flashed SD card. | ||
- Insert your SD card into your PC and run the Raspberry Pi Imager. Follow the instructions and install Ubuntu 24.04 Server (64-bit) onto the SD card. | ||
- Ensure your Raspberry Pi 4 is not powered before inserting the flashed SD card. | ||
- You can set up the Raspberry Pi by either connecting it to your network via Ethernet or by using a keyboard and HDMI monitor via a micro HDMI cable. | ||
|
||
### Ethernet Setup | ||
|
||
- Connect the Raspberry Pi to your Network with an Ethernet cable. | ||
- Boot the Raspberry Pi. | ||
- Boot the Raspberry Pi. | ||
- Find the Raspberry Pi's IP using your router's portal. | ||
- SSH into the Raspberry Pi using the IP address. | ||
```bash | ||
|
@@ -62,7 +64,7 @@ ssh [email protected] | |
## Download and run the setup script | ||
|
||
``` | ||
wget -qO - https://raw.githubusercontent.com/turtlebot/turtlebot4_setup/humble/scripts/turtlebot4_setup.sh | bash | ||
wget -qO - https://raw.githubusercontent.com/turtlebot/turtlebot4_setup/jazzy/scripts/turtlebot4_setup.sh | bash | ||
``` | ||
|
||
The script will automatically install ROS 2 Humble, TurtleBot 4 packages, and other important apt packages. It will also configure the RPi4 to work in a TurtleBot 4. Once complete, the RPi4 should be rebooted with `sudo reboot`. Then, run `turtlebot4-setup` to configure the robot with the setup tool. | ||
The script will automatically install ROS 2 Jazzy, TurtleBot 4 packages, and other important apt packages. It will also configure the RPi4 to work in a TurtleBot 4. Once complete, the RPi4 should be rebooted with `sudo reboot`. Then, run `turtlebot4-setup` to configure the robot with the setup tool. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/bash | ||
|
||
# Give ourselves some swap to deal with RAM issues | ||
if [ -f /swapfile ]; then | ||
swapon /swapfile | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
#!/bin/bash | ||
source /opt/ros/humble/setup.bash | ||
source /opt/ros/jazzy/setup.bash | ||
fastdds discovery -i 0 -p 11811 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
MODEL:standard | ||
VERSION:1.0.0 | ||
ROS:Humble | ||
MODEL:lite | ||
VERSION:2.0.0 | ||
ROS:Jazzy | ||
HOSTNAME:ubuntu |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,19 @@ | ||
#!/usr/bin/env bash | ||
sudo apt update && sudo apt install curl gnupg lsb-release -y | ||
|
||
# Add ROS sources | ||
sudo curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -o /usr/share/keyrings/ros-archive-keyring.gpg | ||
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/ros-archive-keyring.gpg] http://packages.ros.org/ros2/ubuntu $(source /etc/os-release && echo $UBUNTU_CODENAME) main" | sudo tee /etc/apt/sources.list.d/ros2.list > /dev/null | ||
|
||
# Install the packages | ||
sudo apt update | ||
sudo apt install -y \ | ||
ros-humble-ros-base \ | ||
ros-jazzy-ros-base \ | ||
build-essential \ | ||
cmake \ | ||
git \ | ||
wget \ | ||
ros-dev-tools \ | ||
socat \ | ||
network-manager \ | ||
chrony | ||
chrony |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.