Skip to content

Commit

Permalink
[1_7] Add build/run instructions in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
changh95 committed Oct 19, 2023
1 parent 74063e6 commit d1de4de
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions 1_7/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,37 @@

This is a repository for introductory lessons on C++ programming for SLAM.

# How to build

Dependencies: OpenCV

Local build
```
mkdir build
cd build
cmake ..
make -j
```

Docker build
```
docker build . -t slam:1_7
```

# How to run

Local
```
./build/for_loop
./build/map
```

Docker
```
xhost +local:docker
docker run -it --rm -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix:ro slam:1_7
```

---

## CMakeLists.txt
Expand Down Expand Up @@ -42,3 +73,4 @@ Make sure you understand the followings:
- How to run docker container
- with X11 forwarding
- with volume binding

0 comments on commit d1de4de

Please sign in to comment.