@@ -40,6 +40,79 @@ sudo apt install -y \
4040 git
4141```
4242
43+ #### Additional native dependencies (MID360 + SLAM builds)
44+
45+ If you are building the MID360 driver and SLAM from source (real robot setup), install the additional C++ toolchain + math/logging deps:
46+
47+ ``` bash
48+ sudo apt update
49+ sudo apt install -y \
50+ cmake \
51+ libgoogle-glog-dev \
52+ libgflags-dev \
53+ libatlas-base-dev \
54+ libeigen3-dev \
55+ libsuitesparse-dev
56+ ```
57+
58+ #### Build Livox-SDK2 (required for ` livox_ros_driver2 ` )
59+
60+ Livox-SDK2 is vendored under this repo at ` src/utilities/livox_ros_driver2/Livox-SDK2 ` :
61+
62+ ``` bash
63+ cd src/utilities/livox_ros_driver2/Livox-SDK2
64+ mkdir -p build && cd build
65+ cmake ..
66+ make -j" $( nproc) "
67+ sudo make install
68+ ```
69+
70+ Then build the ROS 2 driver package:
71+
72+ ``` bash
73+ cd ~ /autonomy_stack_mecanum_wheel_platform
74+ colcon build --symlink-install --cmake-args -DCMAKE_BUILD_TYPE=Release --packages-select livox_ros_driver2
75+ ```
76+
77+ #### Build SLAM dependencies (Sophus / Ceres / GTSAM)
78+
79+ These dependencies are vendored under ` src/slam/dependency/ ` . If you don’t already have them installed system-wide, you can install them from source:
80+
81+ ``` bash
82+ # Sophus
83+ cd src/slam/dependency/Sophus
84+ mkdir -p build && cd build
85+ cmake .. -DBUILD_TESTS=OFF
86+ make -j" $( nproc) "
87+ sudo make install
88+ ```
89+
90+ ``` bash
91+ # Ceres Solver
92+ cd src/slam/dependency/ceres-solver
93+ mkdir -p build && cd build
94+ cmake ..
95+ make -j" $( nproc) "
96+ sudo make install
97+ ```
98+
99+ ``` bash
100+ # GTSAM
101+ cd src/slam/dependency/gtsam
102+ mkdir -p build && cd build
103+ cmake .. -DGTSAM_USE_SYSTEM_EIGEN=ON -DGTSAM_BUILD_WITH_MARCH_NATIVE=OFF
104+ make -j" $( nproc) "
105+ sudo make install
106+ sudo /sbin/ldconfig
107+ ```
108+
109+ Then build the SLAM packages:
110+
111+ ``` bash
112+ cd ~ /autonomy_stack_mecanum_wheel_platform
113+ colcon build --symlink-install --cmake-args -DCMAKE_BUILD_TYPE=Release --packages-select arise_slam_mid360 arise_slam_mid360_msgs
114+ ```
115+
43116### 2) Build
44117
45118From the repository root:
0 commit comments