-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtmp.sh
executable file
·53 lines (45 loc) · 1.74 KB
/
tmp.sh
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
#!/bin/bash
# git submodule update --init --recursive
# pip install -r requirements.txt
ut_jackal_path=$(realpath third_party/ut_jackal)
echo $ut_jackal_path
graph_nav_path=$(realpath third_party/ut_jackal/graph_navigation)
echo $graph_nav_path
# cd third_party/GroundingDINO
# pip install -q -e .
# mkdir weights/
# cd weights/
# if test -f groundingdino_swint_ogc.pth; then
# echo "model weights already exists, skipping installation"
# else
# echo "downloading model weights"
# wget -q https://github.com/IDEA-Research/GroundingDINO/releases/download/v0.1.0-alpha/groundingdino_swint_ogc.pth
# fi
# cd ../
# cd third_party
if [[ $ROS_PACKAGE_PATH == *"ut_jackal"* ]]; then
echo "Removing ut_jackal from ROS_PACKAGE_PATH..."
export ROS_PACKAGE_PATH=$(echo $ROS_PACKAGE_PATH | tr ':' '\n' | grep -v "ut_jackal" | paste -sd: -)
fi
# Add the new path to ROS_PACKAGE_PATH
if [[ $ROS_PACKAGE_PATH != *"$ut_jackal_path"* ]]; then
echo "Adding $ut_jackal_path to ROS_PACKAGE_PATH..."
export ROS_PACKAGE_PATH=$ut_jackal_path:$ROS_PACKAGE_PATH
fi
if [[ $ROS_PACKAGE_PATH == *"graph_navigation"* ]]; then
echo "Removing graph_navigation from ROS_PACKAGE_PATH..."
export ROS_PACKAGE_PATH=$(echo $ROS_PACKAGE_PATH | tr ':' '\n' | grep -v "graph_navigation" | paste -sd: -)
fi
# Add the new path to ROS_PACKAGE_PATH
if [[ $ROS_PACKAGE_PATH != *"$graph_nav_path"* ]]; then
echo "Adding $graph_nav_path to ROS_PACKAGE_PATH..."
export ROS_PACKAGE_PATH=$graph_nav_path:$ROS_PACKAGE_PATH
fi
cd third_party/ut_jackal
make -j$(nproc)
cd ../../
# Give execute permissions to all scripts
find . -maxdepth 1 \( -name "*.py" -o -name "*.sh" \) -exec chmod +x {} \;
cd src/
find . -maxdepth 1 \( -name "*.py" -o -name "*.sh" \) -exec chmod +x {} \;
cd ../