Skip to content

brain-ros (Setup & Overview)

Required setup: smabo-app + smabo-esp32 + smabo-brain-ros

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.

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.

No parts are needed.

No new parts are added this time.

There is no assembly this time.

There is no wiring this time.

The finished robot does not change this time.

The steps to set up the smabo-brain-ros environment are shown below.

smabo-brain-ros runs in Docker, so install Docker on your PC/SBC.


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 directory
cd ~
# Clone the smabo-brain-ros repository
git clone https://github.com/smabo-smartphone-robot/smabo-brain-ros

Check that both repositories are in the same directory, like this.

~/
├── smabo-brain
└── smabo-brain-ros

Build the Docker image with the commands below.
Note: the first build takes a while (tens of minutes).

cd ~/smabo-brain-ros
docker compose build

You're done once it finishes without errors.


Check that everything works with the steps below.

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: