-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
75 lines (58 loc) · 1.45 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
ROS_SOURCE = /opt/ros/humble/setup
VRX_SOURCE = install/setup
BASH_ROS_SOURCE = $(ROS_SOURCE).bash
BASH_VRX_SOURCE = $(VRX_SOURCE).bash
ZSH_VRX_SOURCE = $(VRX_SOURCE).zsh
ZSH_ROS_SOURCE = $(ROS_SOURCE).zsh
.PHONY: run
run:
ros2 launch aquabot_gz competition.launch.py world:=aquabot_task_hard competition_mode:=false > /dev/null &
.PHONY: build
build:
colcon build --base-paths src/ --merge-install
@echo "\e[31mPlease run \". $(ZSH_VRX_SOURCE)\" before running simulation"
.PHONY: fclean
fclean:
$(RM) -r install/ log/ build/
.PHONY: re
re: fclean
$(MAKE) build
$(MAKE) run
.PHONY: launch
launch:
ros2 launch launcher launch.py
.PHONY: launch_headless
launch_headless:
ros2 launch launcher launch.py headless:=true
.PHONY: perception
perception:
ros2 run perception perception
.PHONY: navigation
navigation:
ros2 run navigation navigation
.PHONY: pathfinding
pathfinding:
ros2 run pathfinding pathfinding
.PHONY: headless
headless:
ros2 launch aquabot_gz competition.launch.py world:=aquabot_task_hard headless:=true
.PHONY: teleop
teleop:
ros2 run aquabot_python teleop_keyboard.py
.PHONY: rqt
rqt:
rqt &
.PHONY: rviz
rviz:
ros2 launch aquabot_gz rviz.launch.py > /dev/null &
.PHONY: debug
debug:
$(MAKE) run
$(MAKE) rviz
$(MAKE) rqt
.PHONY: add_shell_source
add_shell_source:
echo "# Source ROS Humble" >> ~/.bashrc
echo "source $(BASH_ROS_SOURCE)" >> ~/.bashrc
echo "# Source ROS Humble" >> ~/.zshrc
echo "source $(ZSH_ROS_SOURCE)" >> ~/.zshrc