-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
29 lines (22 loc) · 875 Bytes
/
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
.PHONY: build sync build-system-image build-system-dev-image run-system run-system-dev
build: install-deps
colcon build --symlink-install --cmake-args -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
install-deps:
rosdep install -y --from-paths src --ignore-src -r -y
sync:
rsync -av --filter "merge .rsyncignore" ./ racecar:~/Projects/cps_racecar
build-system-image:
docker build -t cps_racecar/system:latest -f docker/racecar/racecar.Dockerfile .
build-system-dev-image:
docker build -t cps_racecar/system:dev -f docker/racecar/racecar.dev.Dockerfile .
run-system:
docker run --rm -it --gpus all --network host cps_racecar/system:latest
run-system-dev:
docker run -it \
--name racecar_dev \
-v $(CURDIR):/workspace \
-w /workspace \
--device /dev/sensors/vesc:/dev/sensors/vesc \
--device /dev/input/js0:/dev/input/js0 \
--network host \
cps_racecar/system:dev bash