Skip to content

Commit 2b3037c

Browse files
authored
Merge pull request #15 from UWARG/oak-d-dev
Finally merge oak-d pipeline dev to main
2 parents 4621860 + ae90f83 commit 2b3037c

File tree

23 files changed

+405
-829
lines changed

23 files changed

+405
-829
lines changed

.github/workflows/run-tests.yml

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This workflow will run tests and linters with PyTest using Python 3.11
1+
# This workflow will run tests and linters using Python 3.11
22
# For more information see: https://docs.github.com/en/actions/about-github-actions
33

44
name: Run linter and docker tests
@@ -30,23 +30,9 @@ jobs:
3030
- name: Install tools
3131
run: |
3232
python -m pip install --upgrade pip
33-
pip install black flake8 pylint pytest pytest-cov
33+
pip install black
3434
3535
# Run linters and formatters
3636
- name: Linters and formatters
3737
run: |
3838
black --check .
39-
flake8 . --max-line-length=140
40-
pylint ros2_ws/src/slam/slam --disable=import-error,missing-module-docstring,missing-function-docstring,missing-class-docstring,broad-exception-caught,too-few-public-methods
41-
42-
# Tests if Docker builds
43-
- name: Docker build
44-
run: docker build -f docker/Dockerfile -t temp-ci:latest docker/
45-
46-
- name: Colcon build (for the ros2 nodes)
47-
run: |
48-
docker run --rm \
49-
-v "$GITHUB_WORKSPACE/ros2_ws:/ros2_ws" \
50-
-w /ros2_ws \
51-
temp-ci:latest \
52-
bash -lc 'source /opt/ros/jazzy/setup.bash && colcon build --event-handlers console_cohesion+'

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,7 @@ Icon?
6767
.com.apple.timemachine.donotpresent
6868
.com.apple.*
6969

70-
.venv/
70+
venv/
71+
72+
.depthai_cached_models/
73+
.venv/

README.md

Lines changed: 1 addition & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1 @@
1-
# Airside SLAM System (Docker)
2-
3-
> [!NOTE]
4-
> Please make sure to create a new branch instead of forking the repo when working on new tasks.
5-
6-
The Docker setup provides:
7-
8-
- ROS 2 Jazzy
9-
- MAVROS
10-
- Cartographer
11-
- sf45b drivers
12-
13-
## Build the image
14-
15-
```sh
16-
./docker/build.sh
17-
```
18-
19-
## Run the container with GUI support
20-
21-
```sh
22-
# Run first terminal
23-
sudo ./docker/run.sh
24-
25-
26-
# Run more terminals
27-
sudo ./docker/attach.sh
28-
```
29-
30-
## Run SLAM commands
31-
32-
```sh
33-
cd /workspace/ros2_ws
34-
35-
rm -rf build install log
36-
37-
colcon build
38-
39-
source install/setup.bash
40-
41-
ros2 launch slam slam_launch.py
42-
43-
# OR
44-
45-
./sf45b
46-
47-
ros2 run tf2_ros static_transform_publisher 0 0 0 0 0 0 laser laser_frame
48-
49-
ros2 run cartographer_ros cartographer_node -configuration_directory /workspace/ros2_ws/src/slam/config -configuration_basename sf45b_2d.lua --ros-args -p provide_odom_frame:=true -p expected_sensor_ids:="[scan]" -r scan:=/scan
50-
51-
ros2 run cartographer_ros cartographer_occupancy_grid_node -resolution 0.05 -publish_period_sec 1.0
52-
53-
rviz2
54-
```
1+
# Airside SLAM System using OAK-D

docker/Dockerfile

Lines changed: 0 additions & 116 deletions
This file was deleted.

docker/attach.sh

Lines changed: 0 additions & 6 deletions
This file was deleted.

docker/build.sh

Lines changed: 0 additions & 11 deletions
This file was deleted.

docker/run.sh

Lines changed: 0 additions & 62 deletions
This file was deleted.

0 commit comments

Comments
 (0)