-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathbuild.sh
executable file
·40 lines (31 loc) · 862 Bytes
/
build.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
#!/bin/bash
# SOPHUS
cd ThirdParty/Sophus
echo "Configuring and building Thirdparty/Sophus ..."
mkdir -p build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS=-std=c++14
make -j2
sudo make install
source /opt/ros/$ROS_DISTRO/setup.bash
#sudo apt-get install -y ros-$ROS_DISTRO-grid-map-ros
#sudo apt-get install -y ros-$ROS_DISTRO-grid-map-rviz-plugin
cd ../../..
# Common
mkdir -p traversability_mapping_common/build
cd traversability_mapping_common/build
cmake ..
make
sudo make install
source /opt/ros/$ROS_DISTRO/setup.bash
#sudo apt-get install -y ros-$ROS_DISTRO-sensor-msgs
#sudo apt-get install -y ros-$ROS_DISTRO-grid-map
#sudo apt-get install -y ros-$ROS_DISTRO-nav-msgs
source /opt/ros/$ROS_DISTRO/setup.bash
cd ../..
# Core
mkdir -p traversability_mapping/build
cd traversability_mapping/build
cmake ..
make
sudo make install