This repository was archived by the owner on Sep 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 44
Typical workflows
gcielniak edited this page Nov 22, 2022
·
12 revisions
- decide where you want your workspace, e.g. in
~/CMP9767M_ws - create the workspace and the
src/directory within in one go:mkdir -p ~/CMP9767M_ws/src - go to the source directory:
cd ~/CMP9767M_ws/src - update system
sudo apt-get update && sudo apt-get upgrade - install all dependencies:
rosdep install --from-paths . -i -y - clone any repository you want to use:
git clone https://github.com/YOURNAME/CMP9767M.git - go to your local cloned repository (
cd ~/CMP9767M_ws/src/CMP9767M) and configure git:-
git config credential.helper cache(avoids retyping password again and again) git config user.name "YOUR NAME"-
git config user.email "12345678@students.lincoln.ac.uk"(replace with your ID)
-
- go to the top-level dir of the workspace:
cd ~/CMP9767M_wsand invokecatkin_make - source the workspace:
source devel/setup.bash
- go to the checked out source dir:
cd ~/CMP9767M_ws/src/CMP9767M - add the upstream remote
git remote add upstream https://github.com/LCAS/CMP9767M.git - update from upstream:
git pull upstream master
- make sure you are on
master:git checkout master - create a new feature branch:
git checkout -b NEW_FEATURE(replaceNEW_FEATUREwith a meaningful name) - do some work and make commits...
- push the new branch to your GitHub repository:
git push -u origin NEW_FEATURE
- Make sure the outdated gazebo is removed:
sudo apt-get purge ros-noetic-gazebo-*