Skip to content

Commit

Permalink
add missing lines
Browse files Browse the repository at this point in the history
Signed-off-by: urasakikeisuke <[email protected]>
  • Loading branch information
urasakikeisuke committed Jul 26, 2024
1 parent f8936ad commit 89a5c6d
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 27 deletions.
12 changes: 6 additions & 6 deletions amd64.env
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
rosdistro=humble
rmw_implementation=rmw_cyclonedds_cpp
base_image=ubuntu:22.04
cuda_base_image=ubuntu:22.04
prebuilt_base_image=ubuntu:22.04
cuda_version=11.6
cudnn_version=8.4.1.50-1+cuda11.6
tensorrt_version=8.4.2-1+cuda11.6
base_image=ros:humble-ros-base-jammy
cuda_base_image=ros:humble-ros-base-jammy
prebuilt_base_image=ros:humble-ros-base-jammy
cuda_version=12.3
cudnn_version=8.9.5.29-1+cuda12.2
tensorrt_version=8.6.1.6-1+cuda12.0
20 changes: 0 additions & 20 deletions ansible/roles/artifacts/tasks/main.yaml
Original file line number Diff line number Diff line change
@@ -1,23 +1,3 @@
# yabloc_pose_initializer
- name: Create yabloc_pose_initializer directory inside {{ data_dir }}
ansible.builtin.file:
path: "{{ data_dir }}/yabloc_pose_initializer"
mode: "755"
state: directory

- name: Download yabloc_pose_initializer/resources.tar.gz
become: true
ansible.builtin.get_url:
url: https://s3.ap-northeast-2.wasabisys.com/pinto-model-zoo/136_road-segmentation-adas-0001/resources.tar.gz
dest: "{{ data_dir }}/yabloc_pose_initializer/resources.tar.gz"
mode: "644"
checksum: sha256:1f660e15f95074bade32b1f80dbf618e9cee1f0b9f76d3f4671cb9be7f56eb3a

- name: Extract yabloc_pose_initializer/resources.tar.gz
ansible.builtin.unarchive:
src: "{{ data_dir }}/yabloc_pose_initializer/resources.tar.gz"
dest: "{{ data_dir }}/yabloc_pose_initializer/"

# image_projection_based_fusion
- name: Create image_projection_based_fusion directory inside {{ data_dir }}
ansible.builtin.file:
Expand Down
1 change: 1 addition & 0 deletions ansible/roles/cuda/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
ansible.builtin.apt:
deb: https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/{{ cuda_architecture.stdout }}/cuda-keyring_1.1-1_all.deb
update_cache: true
force: true

- name: Get dash-case name of cuda_version
ansible.builtin.shell: bash -c 'sed -e "s/\./-/g" <<< $(echo {{ cuda_version }})'
Expand Down
2 changes: 1 addition & 1 deletion ansible/roles/ros2/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
- name: Display warning if ROS 2 package is held
ansible.builtin.debug:
msg: ROS package 'ros-{{ rosdistro + '-' + ros2_installation_type }}' is apt-mark hold. Skipping installation.
when: not install_result.changed
when: "'ros-' + rosdistro + '-' + ros2_installation_type in held_ros_packages.stdout"

- name: Add PATH to .bashrc
ansible.builtin.lineinfile:
Expand Down
11 changes: 11 additions & 0 deletions setup-dev-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ SCRIPT_DIR=$(readlink -f "$(dirname "$0")")

# Parse arguments
args=()
option_data_dir="$HOME/autoware_data"
while [ "$1" != "" ]; do
case "$1" in
-y)
Expand All @@ -31,6 +32,11 @@ while [ "$1" != "" ]; do
# Disable installation dev package of role 'cuda' and 'tensorrt'.
option_runtime=true
;;
--data-dir)
# Set data directory
option_data_dir="$2"
shift
;;
*)
args+=("$1")
;;
Expand Down Expand Up @@ -90,6 +96,8 @@ else
ansible_args+=("--extra-vars" "install_devel=true")
fi

ansible_args+=("--extra-vars" "data_dir=$option_data_dir")

# Load env
source "$SCRIPT_DIR/amd64.env"
if [ "$(uname -m)" = "aarch64" ]; then
Expand Down Expand Up @@ -126,6 +134,9 @@ if ! (python3 -m pipx --version >/dev/null 2>&1); then
python3 -m pip install --user pipx
fi

# Upgrade apt packages
sudo apt-get upgrade -y

# Install ansible
python3 -m pipx ensurepath
export PATH="${PIPX_BIN_DIR:=$HOME/.local/bin}:$PATH"
Expand Down

0 comments on commit 89a5c6d

Please sign in to comment.