Difference between revisions of "Setting up ROS on a Raspberry Pi (intended to be the Rover -- OpenMower)"
Jump to navigation
Jump to search
Tinker0436 (talk | contribs) |
Tinker0436 (talk | contribs) |
||
Line 3: | Line 3: | ||
* Use this as guide https://x-tech.online/2022/01/installing-ros-noetic-on-a-headless-raspberry-pi-4-with-ubuntu-20-04/ | * Use this as guide https://x-tech.online/2022/01/installing-ros-noetic-on-a-headless-raspberry-pi-4-with-ubuntu-20-04/ | ||
** Use the Raspberry Pi official imager | ** Use the Raspberry Pi official imager | ||
** Use '''Ubuntu Server 20.04.03 LTS (RPI 3/4/400)''' | ** Use '''Ubuntu Server 20.04.03 LTS (RPI 3/4/400)''', '''64 bit''' for the RPi4 | ||
** Follow the guide, doing upgrades before ROS install, sudo apt update, sudo apt upgrade | **Follow the guide, doing upgrades before ROS install, sudo apt update, sudo apt upgrade | ||
* To get the ROS environment right in all your bash terminals: <code>echo "source /opt/ros/noetic/setup.bash" >> ~/.bashrc</code> | *To get the ROS environment right in all your bash terminals: <code>echo "source /opt/ros/noetic/setup.bash" >> ~/.bashrc</code> | ||
* Log out and in again to have ROS sourced in bash | *Log out and in again to have ROS sourced in bash | ||
* Follow instructions in <code>https://github.com/ClemensElflein/OpenMower/tree/main/ROS</code> | *Follow instructions in <code>https://github.com/ClemensElflein/OpenMower/tree/main/ROS</code> | ||
** Clone main repo, recursively <code>git clone --recursive https://github.com/ClemensElflein/OpenMower</code> | **Clone main repo, recursively <code>git clone --recursive https://github.com/ClemensElflein/OpenMower</code> | ||
** <code>sudo apt install python3-rosdep</code> | **<code>sudo apt install python3-rosdep</code> | ||
** <code>sudo rosdep init</code> | **<code>sudo rosdep init</code> | ||
** <code>rosdep install --from-paths src --ignore-src</code> | **<code>rosdep install --from-paths src --ignore-src</code> | ||
** <code>cd OpenMower/ROS/<code> | **<code>cd OpenMower/ROS/<code> | ||
** <code>rosdep install --from-paths src --ignore-src -y</code> | **<code>rosdep install --from-paths src --ignore-src -y</code> | ||
* <code>catkin_make</code> to build OpenMower. '''Note:''' Due to a missing <code>dependency</code>, you may need to do it 3-4 times before getting success | * <code>catkin_make</code> to build OpenMower. '''Note:''' Due to a missing <code>dependency</code>, you may need to do it 3-4 times before getting success |
Revision as of 13:48, 9 May 2022
Steps to install Raspberry Pi 4 with Ubuntu 20, ROS 1 and OpenMower
- Use this as guide https://x-tech.online/2022/01/installing-ros-noetic-on-a-headless-raspberry-pi-4-with-ubuntu-20-04/
- Use the Raspberry Pi official imager
- Use Ubuntu Server 20.04.03 LTS (RPI 3/4/400), 64 bit for the RPi4
- Follow the guide, doing upgrades before ROS install, sudo apt update, sudo apt upgrade
- To get the ROS environment right in all your bash terminals:
echo "source /opt/ros/noetic/setup.bash" >> ~/.bashrc
- Log out and in again to have ROS sourced in bash
- Follow instructions in
https://github.com/ClemensElflein/OpenMower/tree/main/ROS
- Clone main repo, recursively
git clone --recursive https://github.com/ClemensElflein/OpenMower
sudo apt install python3-rosdep
sudo rosdep init
rosdep install --from-paths src --ignore-src
cd OpenMower/ROS/
rosdep install --from-paths src --ignore-src -y
- Clone main repo, recursively
catkin_make
to build OpenMower. Note: Due to a missingdependency
, you may need to do it 3-4 times before getting success