Skip to content

Commit

Permalink
change ws name
Browse files Browse the repository at this point in the history
  • Loading branch information
harleylara committed Dec 10, 2024
1 parent 34dd61b commit 88249d3
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/instructors/environment.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Install all the required tooling:

```
sudo apt update && sudo apt install -y git ansible
mkdir -p ~/lsc_ws/src && cd ~/lsc_ws/src/
mkdir -p ~/lss_ws/src && cd ~/lss_ws/src/
git clone https://github.com/EOLab-HSRW/lacoro-2024-ros-workshop.git && cd lacoro-2024-ros-workshop
ansible-playbook local.yml --ask-become
```
2 changes: 1 addition & 1 deletion local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
ros2_repository_url: http://packages.ros.org/ros2/ubuntu
ros2_distro: humble
robot_name: skratch
ws_name: lsc_ws
ws_name: lss_ws
pre_tasks:
- name: Apt update
become: true
Expand Down
11 changes: 11 additions & 0 deletions tasks/env.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,17 @@
- 'export ROBOT_NAME="{{ robot_name }}"'
notify:
- Reload ~/.bashrc
- name: Set aliases
lineinfile:
path: "{{ lookup('env', 'HOME') }}/.bashrc"
create: yes
line: "{{ item }}"
state: present
with_items:
- alias lss_dir="cd ~/{{ ws_name }}/src/lacoro-2024-ros-workshop"
- alias lss_update="cd ~/{{ ws_name }}/src/lacoro-2024-ros-workshop && git pull && ansible-playbook local.yml --ask-become -t developer"
notify:
- Reload ~/.bashrc
- name: Add header information
lineinfile:
path: "{{ lookup('env', 'HOME') }}/.bashrc"
Expand Down

0 comments on commit 88249d3

Please sign in to comment.