Fix code blocks in readme

This commit is contained in:
2026-01-12 09:15:32 +01:00
parent d6acc28f72
commit 66ad45f974

View File

@@ -1,7 +1,7 @@
# Build the docker image # Build the docker image
'''bash ```bash
docker build -t exwayz_test:v1.0 -f exwayz_test.dockerfile . docker build -t exwayz_test:v1.0 -f exwayz_test.dockerfile .
''' ```
## TODO Building with docker secrets ## TODO Building with docker secrets
We need to improve our handling of secrets and figure out a safer way to include them in the docker file/image We need to improve our handling of secrets and figure out a safer way to include them in the docker file/image
@@ -12,24 +12,23 @@ We need to improve our handling of secrets and figure out a safer way to include
2. Share the volume with our current code so we can access it in the container 2. Share the volume with our current code so we can access it in the container
3. start a shell 3. start a shell
'''bash ```bash
docker run -it \ docker run -it \
--env="DISPLAY=$DISPLAY" \ --env="DISPLAY=$DISPLAY" \
--env="QT_X11_NO_MITSHM=1" \ --env="QT_X11_NO_MITSHM=1" \
--volume="/tmp/.X11-unix:/tmp/.X11-unix:rw" \ --volume="/tmp/.X11-unix:/tmp/.X11-unix:rw" \
-v "$(pwd):/app" \ -v "$(pwd):/app" \
exwayz_test exwayz_test
''' ```
Then, run the exways slam on a bag to test everything is workign correctly. Then, run the exways slam on a bag to test everything is workign correctly.
'''bash
```bash
exwayz_slam --bag data/exwayz_sample_data_slam_01.bag --bag-hesai /hesai/pandar_packets --hesai-model PandarXT-32 --d-write 0.1 -o ./slam_session_tutorial --no-date exwayz_slam --bag data/exwayz_sample_data_slam_01.bag --bag-hesai /hesai/pandar_packets --hesai-model PandarXT-32 --d-write 0.1 -o ./slam_session_tutorial --no-date
''' ```
Naturally, change the path to the bagfile for the parameter '--bag' Naturally, change the path to the bagfile for the parameter '--bag'
Hopefully, you will see something like this: Hopefully, you will see something like this:
![Working Exwayz Demo¨¨](media/Exwayz_slam_demo_working.gif) ![Working Exwayz Demo¨¨](media/Exwayz_slam_demo_working.gif)
# may have to:
source /opt/ros/$ROS_DISTRO/setup.bash