sudo apt install software-properties-common
sudo add-apt-repository universe
sudo apt update && sudo apt install curl gnupg lsb-release
sudo curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -o /usr/share/keyrings/ros-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/ros-archive-keyring.gpg] http://packages.ros.org/ros2/ubuntu $(source /etc/os-release && echo $UBUNTU_CODENAME) main" | sudo tee /etc/apt/sources.list.d/ros2.list > /dev/null
sudo apt update
sudo apt upgrade
sudo apt install ros-humble-desktop-full
sudo apt install python3-colcon-common-extensions
echo "source /opt/ros/humble/setup.bash" >> ~/.bashrc
echo "source /usr/share/colcon_argcomplete/hook/colcon-argcomplete.bash" >> ~/.bashrc
echo "source /usr/share/gazebo/setup.sh" >> ~/.bashrc
source ~/.bashrc
cd <path to where you want to keep the project>
mkdir urc && cd urc
Both the rover and the drone projects will live in the /urc
directory. The install process for both projects is very similar and detailed below.
mkdir -p rover-colcon/src
cd rover-colcon
git clone https://github.com/RoboJackets/urc-software.git src --recursive
Make sure to call the rosdep install
command from the colcon workspace directory (/rover-colcon
)!
sudo apt install python3-rosdep
sudo rosdep init
rosdep update
rosdep install --from-paths src --ignore-src -r -y
Any time you call colcon build
, make sure you are in the colcon directory (/rover-colcon
)!
colcon build --symlink-install
. install/setup.bash
You should now have a file structure that looks like
urc
└── rover-colcon
├── build
├── install
├── log
└── src
└── urc-software