-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
62 lines (48 loc) · 1.59 KB
/
justfile
File metadata and controls
62 lines (48 loc) · 1.59 KB
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
60
61
62
set shell := ["bash", "-c"]
ros_distro := env_var('ROS_DISTRO')
default:
@just --list
alias dep := rosdep-install
alias b := build
alias c := clean
alias bu := bringup
alias t := teleop-foxglove
alias teleop := teleop-foxglove
alias tf := teleop-foxglove
_cd:
@cd {{justfile_directory()}}
vcs-import: _cd
vcs import --input depends.yaml --recursive src
rosdep-update:
rosdep update --rosdistro {{ros_distro}}
rosdep-install: _cd rosdep-update vcs-import
@sudo apt update
rosdep install --from-paths src --ignore-src --rosdistro {{ros_distro}} -y
@sudo apt upgrade -y
# 依存関係と開発環境のセットアップ. target: robot or teleop
setup target='teleop' : _cd
scripts/setup.sh {{target}}
just dep
# colcon build
build parallel='1' : _cd
source /opt/ros/{{ros_distro}}/setup.bash && \
colcon build --parallel-workers {{parallel}} --symlink-install --mixin ccache clang release compile-commands
# launch teleop with foxglove
teleop-foxglove args='use_wrs:=true use_audio:=true exp:=false vsting:=false': _cd
source install/setup.bash
ros2 launch r5sr_teleop teleop.foxglove.launch.py {{args}}
# launch bringup (robot)
bringup args='use_camera:=true use_audio:=true use_slam:=true use_rplidar:=false': _cd
source install/setup.bash
ros2 launch r5sr_bringup bringup.launch.py {{args}}
# launch hazmat (teleop)
hazmat:
source install/setup.bash
ros2 launch r5sr_teleop hazmat_yolov3.launch.py
# launch motion (teleop)
motion:
source install/setup.bash
ros2 launch r5sr_teleop image_motion.launch.py
# clean build, install, log
clean: _cd
-rm -rf build install log