Files
SLAM_Docker_Env/README.md
2025-11-03 11:53:48 -08:00

43 lines
1.0 KiB
Markdown

## Docker Environment for [SLAM in Autonomous Driving Book (SAD Book)](https://github.com/gaoxiang12/slam_in_autonomous_driving)
### Ubuntu 20.04 Docker Environment
```bash
# Clone the repository
git clone ssh://git@gitea.cuihang1201.synology.me:2222/hangpersonal/SLAM_Docker_Env.git
cd SLAM_Docker_Env
# Pull the Docker image
docker pull gitea.cuihang1201.synology.me/hangpersonal/sad-workspace:latest
# Start the Docker container
docker compose up -d
# Shutdown the Docker container
docker compose down
```
### Access the Ubuntu 20.04 GUI Environment
```bash
# Open http://localhost:46080/vnc.html in your web browser to connect to
# the Ubuntu 20.04 desktop running inside the Docker container.
cd ~/workspace/slam_in_autonomous_driving
# Compile g2o
cd ~/workspace/slam_in_autonomous_driving/thirdparty/g2o/
mkdir build && cd build
cmake ..
make -j8
make install
ldconfig
# Compile the source code
cd ~/workspace/slam_in_autonomous_driving
mkdir build && cd build
cmake ..
make -j8
```
<a href="url"><img src="./images/ubuntu.png" width="700"></a>