Skip to content
James Heselden edited this page Apr 11, 2024 · 9 revisions

There are multiple manners in which the environment_template system can be utilised.

1. Run as ROS2 Pkg 📦

Download

If used within a ROS2 workspace, the repository can be either cloned into the workspace or it can be installed with apt.

GIT Clone

mkdir -p ~/ros2_ws/src
cd ~/ros2_ws/src/
git clone -b {environment_name} https://github.com/LCAS/environment_template.git
colcon build --merge-install --packages-select environment_template

APT install

sudo sh -c 'echo "deb http://lcas.lincoln.ac.uk/ubuntu/main $(lsb_release -sc) main" > /etc/apt/sources.list.d/lcas-latest.list'
sudo apt-get install lcas_environments_{environment_name}

Access

The It is recommended to add a direct source to the environment.sh into your ~/.bashrc file.

The files can then be accessed either through sourcing the environment.sh file, or

1.b.i.

source environment.sh

1.b.ii.

ros2 pkg --prefix share reference

2. Reference through Folder 📂

Download

via Git

  1. Navigate to your desired folder
git clone -b {environment_name} https://github.com/LCAS/environment_template.git

via ZIP

  1. Go to: https://github.com/LCAS/environment_template/tree/{environment_name}
  2. Click on the green <> Code button.
  3. Click on Download ZIP and save to your desired folder.
  4. Navigate to the folder and extract the zipped contents.

Access

via environment.sh

source environment.sh

via filepath

filepath

3. WGet Direct Files 🌐

WGet