ROS2 on GoPiGo3 - Install Success

Continuing on the successful Ubuntu 20.04 64-bit Server setup for GoPiGo3,

ROS2 Successfully installed and basic topic publish/subscribe worked:

pi@ROSbot:~$ ros2 run demo_nodes_cpp talker
[INFO] [1623423608.752614344] [talker]: Publishing: 'Hello World: 1'
**pi@ROSbot**:**~/rosbot-on-gopigo3**$ ros2 run demo_nodes_py listener
[INFO] [1623423608.870487778] [listener]: I heard: [Hello World: 1]

ROS 2 Foxy Install For Raspberry Pi3B/B+ on Ubuntu 20.04 64-bit Server

Mostly follows Installing ROS 2 via Debian Packages — ROS 2 Documentation: Foxy documentation

=== SETUP GPG KEY
sudo apt install curl gnupg2 lsb-release
sudo curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key  -o /usr/share/keyrings/ros-archive-keyring.gpg

=== ADD ROS REPOSITORY TO SOURCES
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/ros-archive-keyring.gpg] http://packages.ros.org/ros2/ubuntu $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/ros2.list > /dev/null

=== UPDATE CACHES
sudo apt update


=== INSTALL ROS FOXY BASE
sudo apt install ros-foxy-ros-base

=== SOURCE SETUP SCRIPT
source /opt/ros/foxy/setup.bash


=== INSTALL ARGCOMPLETE
sudo apt install -y python3-argcomplete

=== INSTALL DEMO NODES (not installed by ros-foxy-ros-base )

sudo apt install ros-foxy-demo-nodes-py
sudo apt install ros-foxy-demo-nodes-cpp

=== TEST

* In first ssh session:
source /opt/ros/foxy/setup.bash
ros2 run demo_nodes_cpp talker

* Open a second ssh session

source /opt/ros/foxy/setup.bash
ros2 run demo_nodes_py listener

3 Likes

Fantastic. Hopefully the GoPiGo3 package will run.
/K

2 Likes

gopigo3 utilizing Raspberry PI, was made utilizing ROS. I wish to get the hang of utilizing ROS2. Is there an approach to affirm if gopigo3 robot will work with ROS2.

2 Likes

Welcome to the forums @sefilah533.
I think that’s still a bit of an open question. @cyclicalobsessive is attempting to run ROS2 on his GoPiGo3. You can follow some of his progress in this thread:

Also worth looking at his earlier ROS2 posts.
/K

2 Likes