brain-ros (Setup & Overview)
Required setup: smabo-app + smabo-esp32 + smabo-brain-ros
Roadmap
Section titled “Roadmap”This page is the guide for the 'smabo-brain-ros' node on the roadmap below.
This guide assumes you have completed the smabo-brain guide.
Overview
Section titled “Overview”This page explains how to set up smabo-brain-ros.
In smabo, smabo-brain-ros is responsible for:
- Handling smabo's sensor values and control values as ROS 2 messages
Using ROS 2 lets you use the libraries (such as Nav2 and MoveIt2) needed for "Navigation" and "Motion Planning" in the later guides.
Comparing smabo-brain and smabo-brain-ros gives the diagram below.
Required Parts
Section titled “Required Parts”No parts are needed.
3D Printing Parts
Section titled “3D Printing Parts”No new parts are added this time.
Assembly
Section titled “Assembly”There is no assembly this time.
Wiring
Section titled “Wiring”There is no wiring this time.
Finished Result
Section titled “Finished Result”The finished robot does not change this time.
Setting Up the Environment
Section titled “Setting Up the Environment”The steps to set up the smabo-brain-ros environment are shown below.
Installing Docker
Section titled “Installing Docker”smabo-brain-ros runs in Docker, so install Docker on your PC/SBC.
- Windows
- Install Docker Engine (ubuntu) in WSL.
- Once installed, make Docker usable without sudo.
- Mac
- Install Docker Desktop.
- Linux (Ubuntu, Raspberry Pi, etc.)
- Install Docker Engine.
- The installation steps differ depending on your Linux distribution.
- Once installed, make Docker usable without sudo.
- Install Docker Engine.
Cloning smabo-brain-ros
Section titled “Cloning smabo-brain-ros”Clone the smabo-brain-ros repository with the commands below.
smabo-brain-ros loads the smabo-brain programs when it runs, so clone it into "the same directory as smabo-brain (your home directory in the example below)".
# Move to your home directorycd ~# Clone the smabo-brain-ros repositorygit clone https://github.com/smabo-smartphone-robot/smabo-brain-rosCheck that both repositories are in the same directory, like this.
~/├── smabo-brain└── smabo-brain-rosBuilding the Docker Image
Section titled “Building the Docker Image”Build the Docker image with the commands below.
Note: the first build takes a while (tens of minutes).
cd ~/smabo-brain-rosdocker compose buildYou're done once it finishes without errors.
Operation
Section titled “Operation”Check that everything works with the steps below.
Startup Procedure
Section titled “Startup Procedure”Follow the startup procedure here.
Setup is complete once all programs start and communication is confirmed.
Next, the following nodes on the roadmap are explained: