-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.sh
More file actions
138 lines (127 loc) · 4.36 KB
/
setup.sh
File metadata and controls
138 lines (127 loc) · 4.36 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
#!/bin/bash
git clone https://github.com/armando-genis/navpilot-framework.git
cd navpilot-framework/workspace/navpilot_ws/src
# Clone sensors stack
cd sensor_stack
if [ ! -d "velodyne" ]; then
git clone https://github.com/ros-drivers/velodyne.git
fi
if [ ! -d "vectornav" ]; then
git clone https://github.com/dawonn/vectornav.git -b ros2
fi
cd ..
# Clone mapping modules
cd mapping_modules
if [ ! -d "LIO-SAM" ]; then
git clone https://github.com/TixiaoShan/LIO-SAM.git -b ros2
fi
cd ..
# Clone localization modules
cd localization_modules
if [ ! -d "ndt_omp_ros2" ]; then
git clone https://github.com/rsasaki0109/ndt_omp_ros2
fi
if [ ! -d "lidar_localization_ros2" ]; then
git clone https://github.com/rsasaki0109/lidar_localization_ros2.git
fi
cd ..
if [ ! -d "mrt_cmake_modules" ]; then
git clone https://github.com/KIT-MRT/mrt_cmake_modules.git
fi
cd ../../../../
# Copy all to workspace/src
if [ ! -d "workspace/src/mrt_cmake_modules" ]; then
cp -r navpilot-framework/workspace/navpilot_ws/src/* workspace/src/
fi
# Install TinySpline
if [ ! -d "tinyspline" ]; then
git clone https://github.com/msteinbeck/tinyspline.git
cd tinyspline
mkdir build
cd build
cmake ..
cmake --build .
sudo cmake --install .
cd ../..
fi
#Fundamental libraries
sudo apt update
sudo apt install tmux
sudo apt-get install libeigen3-dev
sudo apt install libpcl-dev
sudo apt-get install libpcap-dev
sudo apt install can-utils
sudo apt-get install libqt5serialport5-dev
sudo apt-get install libpugixml-dev
sudo apt-get install libgeographic-dev geographiclib-tools
sudo apt-get install libeigen3-dev
sudo apt install libpcl-dev
sudo apt-get install libpcap-dev
sudo apt install libopencv-dev
# Install ROS2 packages
source /opt/ros/humble/setup.bash
sudo apt-get update
sudo apt-get install \
ros-${ROS_DISTRO}-color-util \
ros-${ROS_DISTRO}-diagnostic-updater \
ros-${ROS_DISTRO}-foxglove-bridge \
ros-${ROS_DISTRO}-image-common \
ros-${ROS_DISTRO}-image-transport-plugins \
ros-${ROS_DISTRO}-joint-state-publisher \
ros-${ROS_DISTRO}-joint-state-publisher-gui \
ros-${ROS_DISTRO}-pcl-msgs \
ros-${ROS_DISTRO}-pcl-ros \
ros-${ROS_DISTRO}-perception-pcl \
ros-${ROS_DISTRO}-rmw-cyclonedds-cpp \
ros-${ROS_DISTRO}-rviz2 \
ros-${ROS_DISTRO}-tracetools-launch \
ros-${ROS_DISTRO}-velodyne-msgs \
ros-${ROS_DISTRO}-vision-msgs \
ros-${ROS_DISTRO}-vision-opencv \
ros-${ROS_DISTRO}-xacro \
ros-${ROS_DISTRO}-cv-bridge \
ros-${ROS_DISTRO}-grid-map-ros\
ros-${ROS_DISTRO}-cv-bridge
# Colcon build packages
cd workspace
colcon build --packages-select pointcloud_rotation
colcon build --packages-select lidar_imu_sync
colcon build --packages-select robot_description
colcon build --packages-select vectornav_msgs
colcon build --packages-select vectornav
colcon build --packages-select velodyne_msgs
colcon build --packages-select velodyne_driver
colcon build --packages-select velodyne_laserscan
colcon build --packages-select velodyne_pointcloud
colcon build --packages-select velodyne
colcon build --packages-select lio_sam
colcon build --packages-select ndt_omp_ros2
colcon build --packages-select lidar_localization_ros2
colcon build --packages-select sensors_launch
colcon build --packages-select sdv_msgs
source install/setup.bash
colcon build --packages-select sdv_control
colcon build --packages-select sdv_can
colcon build --packages-select sdv_velocity
colcon build --packages-select mrt_cmake_modules
colcon build --packages-select polygon_msgs
colcon build --packages-select polygon_rviz_plugins
colcon build --packages-select polygon_utils
colcon build --packages-select obstacles_information_msgs
colcon build --packages-select traffic_information_msgs
source install/setup.bash
colcon build --packages-select pointcloud_clustering
colcon build --packages-select lanelet2_core
source install/setup.bash
colcon build --packages-select lanelet2_maps
colcon build --packages-select lanelet2_projection
colcon build --packages-select lanelet2_traffic_rules
source install/setup.bash
colcon build --packages-select lanelet2_routing
colcon build --packages-select lanelet2_io
colcon build --packages-select lanelet2_projection
colcon build --packages-select lanelet2_validation
source install/setup.bash
colcon build --packages-select waypoints_routing
colcon build --packages-select path_planning_dynamic
source install/setup.bash