-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
30 lines (23 loc) · 733 Bytes
/
setup.sh
File metadata and controls
30 lines (23 loc) · 733 Bytes
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
#!/usr/bin/bash
ROS_DISTRO=humble
ROS_INSTALL=/opt/ros/$ROS_DISTRO/setup.bash
source $ROS_INSTALL
# 1) Source base ROS 2
if [ -f "$ROS_INSTALL" ]; then
echo -e "\n=== Sourcing ROS 2 base ($ROS_DISTRO) ==="
set +u
source "$ROS_INSTALL"
set -u
else
echo "ERROR: cannot find ROS install at $ROS_INSTALL" >&2
exit 1
fi
echo "Configuring Simulator: Checking if binaries are installed."
if [ ! -f ./FSDS.sh ] && [ ! -f ./FSDS.exe ];
then
echo "Binaries not installed, make sure you follow the tutorial at:"
echo "https://github.com/McGillFormulaElectric/MFE-Driverless-V1/wiki/Simulation"
fi
colcon build --symlink-install
source install/setup.bash
ros2 run fsds_ros2_bridge fsds_ros2_bridge manual_node:=true