Skip to content

Commit 2d1f2aa

Browse files
committed
simplify README
Signed-off-by: Jakub Delicat <jakub.delicat@husarion.com>
1 parent 5ffe4e8 commit 2d1f2aa

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

README.md

+13-5
Original file line numberDiff line numberDiff line change
@@ -25,24 +25,32 @@ xhost local:docker
2525

2626
### Running docker image
2727

28+
Select the ROSbot:
29+
```bash
30+
export ROBOT_NAME=rosbot # or rosbot_xl
31+
```
32+
33+
Without GPU:
2834
```bash
2935
docker run --rm -it \
3036
-v /tmp/.X11-unix:/tmp/.X11-unix:rw \
3137
-e DISPLAY -e LIBGL_ALWAYS_SOFTWARE=1 \
3238
-e DDS_CONFIG=DEFAULT -e RMW_IMPLEMENTATION=rmw_fastrtps_cpp \
3339
husarion/webots:humble \
34-
ros2 launch webots_ros2_husarion rosbot_launch.py
40+
ros2 launch webots_ros2_husarion ${ROBOT_NAME}_launch.py
3541
```
3642

37-
If you want to use ROSbot XL change the launch file to `rosbot_xl_launch.py`
38-
43+
With GPU:
3944
```bash
4045
docker run --rm -it \
46+
--runtime=nvidia \
4147
-v /tmp/.X11-unix:/tmp/.X11-unix:rw \
42-
-e DISPLAY -e LIBGL_ALWAYS_SOFTWARE=1 \
48+
-e NVIDIA_VISIBLE_DEVICES=all \
49+
-e NVIDIA_DRIVER_CAPABILITIES=all \
50+
-e DISPLAY \
4351
-e DDS_CONFIG=DEFAULT -e RMW_IMPLEMENTATION=rmw_fastrtps_cpp \
4452
husarion/webots:humble \
45-
ros2 launch webots_ros2_husarion rosbot_xl_launch.py
53+
ros2 launch webots_ros2_husarion ${ROBOT_NAME}_launch.py
4654
```
4755

4856
![ROSbot XL in webots simulator](.docs/rosbot_xl.png)

0 commit comments

Comments
 (0)