NAO ROS2 Setup
The easiest way use ROS 2 on the NAO is to flash an Ubuntu 22.04-based image on the NAO, and use apt to install ROS 2.
Flash RoboCup OPN file
Note
If you have a NAO robot with the robocup-opn image already flashed, skip this step and continue to the Install Ubuntu22.04 on NAO step.
Tip
This step is necessary to prevent motorboard firmware issues, where the robot cannot read/write the joint positions, that may arise if the robot is not flashed with the robocup-opn image before flashing the Ubuntu based image.
Flash the NAO with the robocup-opn file if it is:
brand-new
returned from manufacturer (that has been reflashed with the default image)
not flashed with the robocup-opn file
To flash a NAO with the robocup-opn file, you must:
Create NAOqi USB
Follow the instructions on Manufacturer’s Documentation
Note
The 2.1 flasher also works with the 2.8 opn. You can also just use dd on linux and mac.
Flash the NAO
To flash the robot, run
Turn off the NAO
Insert the USB stick into the back of the robots head
Press and hold down the chest button on the NAO until it lights up blue
Wait until it says
Ognak gnuk!
and starts looking around
Install Ubuntu22.04 on NAO
Follow instructions provided by NaoDevils’ NaoImage to set up Ubuntu 22.04-based on the NAO.
Install ROS2 on NAO
Follow Installing ROS 2 via Debian Packages, to install ROS2 from debian packages. Do a ROS-Base Install, to prevent downloading unnecessary GUI packages.
Note
In the Install ROS 2 package step, do a ROS-Base Install, rather than a Desktop Install.