upload
This commit is contained in:
36
src/third_party/.rosinstall
vendored
Normal file
36
src/third_party/.rosinstall
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
# vcstool / wstool manifest cho ma nguon ben ngoai.
|
||||
#
|
||||
# sudo apt install python3-vcstool
|
||||
# cd ~/projects/vSLAM_ws/src/third_party && vcs import < .rosinstall
|
||||
#
|
||||
# LUON pin version cu the (version:) - khong dung nhanh mac dinh.
|
||||
# Mot lan `git pull` cua thu vien ngoai lam hong build la du de mat mot ngay.
|
||||
|
||||
# ============================================================
|
||||
# realsense2_camera - build tu source de khop librealsense 2.58.3 dang cai
|
||||
# Xem README.md muc "Xung dot librealsense".
|
||||
# ============================================================
|
||||
# - git:
|
||||
# local-name: realsense-ros
|
||||
# uri: https://github.com/IntelRealSense/realsense-ros.git
|
||||
# version: ros1-legacy
|
||||
|
||||
# ============================================================
|
||||
# allan_variance_ros - hieu chuan nhieu IMU (chay >= 3 gio)
|
||||
# Ket qua nap vao slam_core/config/slam_core.yaml
|
||||
# ============================================================
|
||||
# - git:
|
||||
# local-name: allan_variance_ros
|
||||
# uri: https://github.com/ori-drs/allan_variance_ros.git
|
||||
# version: master
|
||||
|
||||
# ============================================================
|
||||
# Driver LiDAR RICHBEAM - lay tu hang.
|
||||
# Dong LakiBeam co repo lakibeam1_scan.
|
||||
# ⚠️ Xem robot_drivers/launch/richbeam.launch: co 4 dieu phai xac minh
|
||||
# (interface, nguon timestamp, FOV, scan rate) truoc khi tin vao du lieu.
|
||||
# ============================================================
|
||||
# - git:
|
||||
# local-name: richbeam_driver
|
||||
# uri: <URL tu hang RICHBEAM>
|
||||
# version: <tag>
|
||||
0
src/third_party/CATKIN_IGNORE
vendored
Normal file
0
src/third_party/CATKIN_IGNORE
vendored
Normal file
59
src/third_party/README.md
vendored
Normal file
59
src/third_party/README.md
vendored
Normal file
@@ -0,0 +1,59 @@
|
||||
# third_party/ — Mã nguồn bên ngoài
|
||||
|
||||
**Thư mục này có `CATKIN_IGNORE`** cho tới khi bạn thực sự clone gì vào đây
|
||||
(xoá file đó đi khi đã có package thật).
|
||||
|
||||
Quản lý bằng `.rosinstall` + `vcstool`, **không commit source trực tiếp** —
|
||||
để pin đúng version và không làm phình repo.
|
||||
|
||||
```bash
|
||||
sudo apt install python3-vcstool
|
||||
cd ~/projects/vSLAM_ws/src/third_party
|
||||
vcs import < .rosinstall
|
||||
```
|
||||
|
||||
## Cần lấy về
|
||||
|
||||
| Package | Vì sao | Khi nào |
|
||||
|---|---|---|
|
||||
| `realsense2_camera` | ⚠️ **Bắt buộc build từ source** — xem bên dưới | Khi chuyển sang phần cứng thật |
|
||||
| Driver RICHBEAM | Không có trên apt, phải lấy từ hãng | Khi có LiDAR |
|
||||
| `allan_variance_ros` | Hiệu chuẩn nhiễu IMU | Khi có IMU |
|
||||
|
||||
## ⚠️ Xung đột librealsense — chặn việc chạy phần cứng thật
|
||||
|
||||
Máy hiện có **hai bản librealsense cùng lúc**:
|
||||
|
||||
```
|
||||
librealsense2 2.58.3 (Intel repo)
|
||||
ros-noetic-librealsense2 2.50.0 (ROS repo)
|
||||
ros-noetic-realsense2-camera 2.3.2 <- build theo 2.50.0
|
||||
```
|
||||
|
||||
Wrapper 2.3.2 được build theo 2.50.0 nhưng runtime có thể nạp 2.58.3 → **lỗi ABI**.
|
||||
|
||||
**Hướng chính:** gỡ `ros-noetic-realsense2-camera` và `ros-noetic-librealsense2`,
|
||||
giữ Intel `2.58.3`, build `realsense2_camera` từ source ở đây.
|
||||
|
||||
**Dự phòng** (nếu wrapper 2.3.2 không compile với LRS 2.58 do API đổi): pin về
|
||||
cặp đã được kiểm thử — Intel LRS `2.50.x` + apt wrapper `2.3.2`.
|
||||
|
||||
Việc này **không cản mô phỏng** — chỉ cần xử lý trước khi cắm camera thật.
|
||||
|
||||
## Không thuộc thư mục này
|
||||
|
||||
**GTSAM** là thư viện CMake thuần, **không phải catkin package**. Đặt vào `src/`
|
||||
sẽ khiến catkin cố build nó như package ROS và báo lỗi khó hiểu.
|
||||
|
||||
Build ngoài workspace:
|
||||
|
||||
```bash
|
||||
git clone https://github.com/borglab/gtsam.git ~/libs/gtsam
|
||||
cd ~/libs/gtsam && mkdir build && cd build
|
||||
cmake -DGTSAM_USE_SYSTEM_EIGEN=ON -DGTSAM_BUILD_TESTS=OFF \
|
||||
-DGTSAM_BUILD_EXAMPLES_ALWAYS=OFF ..
|
||||
make -j$(nproc) && sudo make install && sudo ldconfig
|
||||
```
|
||||
|
||||
`slam_core/CMakeLists.txt` dùng `find_package(GTSAM QUIET)` nên workspace vẫn
|
||||
build xanh khi chưa cài.
|
||||
Reference in New Issue
Block a user