26
26
vcs import --input " ${SMB_RAW_REPO_FILE_URL} " --recursive --skip-existing " ${ROOT} /src"
27
27
28
28
# Setup catkin workspace
29
- catkin init --workspace " ${ROOT} "
29
+ catkin init --workspace " ${ROOT} " & > /dev/null
30
30
31
- # Generate skiplist for catkin config
32
- # TODO: Add the packages to build in the list below
31
+ # Generate buildlist for catkin config
33
32
# NOTE: catkin build will only build the packages themselve listed in the buildlist but not their dependencies
34
- # so we need to generate a skiplist to skip the packages that are not recursively dependent on the packages we want to build
35
- # NOTE: The input to the script is a list of packages to build and the output is the list of packages to skip
33
+ # so we need to generate a buildlist of packages that are recursively dependent on the packages we want to build
34
+ # NOTE: The input to the script is a list of top-level packages to build and the output is the complete list of packages to build
36
35
# NOTE: You can use the `scripts/list_top_level_packages.sh` script to list the top level packages in the workspace
37
- # CAUTION: This script should be run after the workspace is created and the repositories are cloned as it uses the workspace to generate the skiplist
38
- SKIP_PKG_LIST =$( python3 " ${ROOT} /.devcontainer/generate_catkin_skiplist .py" --workspace " ${ROOT} " \
36
+ # CAUTION: This script should be run after the workspace is created and the repositories are cloned as it uses the workspace to generate the buildlist
37
+ BUILD_PKG_LIST =$( python3 " ${ROOT} /.devcontainer/generate_catkin_buildlist .py" --workspace " ${ROOT} " \
39
38
catkin_simple \
40
39
smb_exploration \
41
40
smb_gazebo \
@@ -44,14 +43,15 @@ SKIP_PKG_LIST=$(python3 "${ROOT}/.devcontainer/generate_catkin_skiplist.py" --wo
44
43
smb_msf \
45
44
smb_msf_graph \
46
45
smb_path_planner \
46
+ object_detection \
47
47
)
48
48
49
49
# Split the string into an array of package names to pass to catkin config as positional arguments
50
- IFS=' ' read -r -a SKIP_PKGS_ARRAY <<< " ${SKIP_PKG_LIST }"
50
+ IFS=' ' read -r -a BUILD_PKGS_ARRAY <<< " ${BUILD_PKG_LIST }"
51
51
52
52
# Configure the workspace
53
53
catkin config --workspace " ${ROOT} " \
54
54
--extend /opt/ros/noetic \
55
55
--cmake-args -DCMAKE_BUILD_TYPE=Release -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -- \
56
- --skiplist " ${SKIP_PKGS_ARRAY [@]} "
56
+ --buildlist " ${BUILD_PKGS_ARRAY [@]} "
57
57
0 commit comments