-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathMakefile
59 lines (50 loc) · 1.69 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
.PHONY: prepare_bridge \
prepare_autoware \
build_bridge \
build_autoware \
clean_bridge \
clean_autoware \
clean \
docker_clean
prepare_bridge:
# Get code
git submodule update --init --recursive
# Install dependencies
./script/dependency_install.sh rust
./script/dependency_install.sh python
prepare_autoware:
# Get code
git submodule update --init --recursive
# Install dependencies
./script/dependency_install.sh rust
# Install necessary ROS package
./script/download_map.sh
./script/download_models.sh
sudo apt update
rosdep update --rosdistro=${ROS_DISTRO}
rosdep install -y --from-paths src --ignore-src --rosdistro ${ROS_DISTRO}
# Prebuild models
./script/build_models.sh
build_bridge:
cd external/zenoh_carla_bridge && cargo build --release
poetry config virtualenvs.in-project true # Make sure poetry install .venv under carla_agent
cd external/zenoh_carla_bridge/carla_agent && poetry install --no-root
lint_bridge:
# Run lint (TODO: to be fixed later)
cd external/zenoh_carla_bridge && cargo clippy --all -- -W clippy::all -W clippy::pedantic -W clippy::restriction -W clippy::nursery -D warnings
build_autoware:
colcon build --symlink-install --base-paths src --cmake-args -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
cd external/zenoh-plugin-ros2dds && cargo build --release -p zenoh-bridge-ros2dds
clean_bridge:
cd external/zenoh_carla_bridge && cargo clean
rm -rf bridge_log
clean_autoware:
cd external/zenoh-plugin-ros2dds && cargo clean
rm -rf install log build
rm -rf autoware_log
clean: clean_bridge clean_autoware
docker_clean: clean
# Remove venv in Python
rm -rf external/zenoh_carla_bridge/carla_agent/.venv
# Remove other toolchains
rm -rf rust poetry pyenv