Commit 2d1f2aa 1 parent 5ffe4e8 commit 2d1f2aa Copy full SHA for 2d1f2aa
File tree 1 file changed +13
-5
lines changed
1 file changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -25,24 +25,32 @@ xhost local:docker
25
25
26
26
### Running docker image
27
27
28
+ Select the ROSbot:
29
+ ``` bash
30
+ export ROBOT_NAME=rosbot # or rosbot_xl
31
+ ```
32
+
33
+ Without GPU:
28
34
``` bash
29
35
docker run --rm -it \
30
36
-v /tmp/.X11-unix:/tmp/.X11-unix:rw \
31
37
-e DISPLAY -e LIBGL_ALWAYS_SOFTWARE=1 \
32
38
-e DDS_CONFIG=DEFAULT -e RMW_IMPLEMENTATION=rmw_fastrtps_cpp \
33
39
husarion/webots:humble \
34
- ros2 launch webots_ros2_husarion rosbot_launch .py
40
+ ros2 launch webots_ros2_husarion ${ROBOT_NAME} _launch .py
35
41
```
36
42
37
- If you want to use ROSbot XL change the launch file to ` rosbot_xl_launch.py `
38
-
43
+ With GPU:
39
44
``` bash
40
45
docker run --rm -it \
46
+ --runtime=nvidia \
41
47
-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 \
43
51
-e DDS_CONFIG=DEFAULT -e RMW_IMPLEMENTATION=rmw_fastrtps_cpp \
44
52
husarion/webots:humble \
45
- ros2 launch webots_ros2_husarion rosbot_xl_launch .py
53
+ ros2 launch webots_ros2_husarion ${ROBOT_NAME} _launch .py
46
54
```
47
55
48
56
![ ROSbot XL in webots simulator] ( .docs/rosbot_xl.png )
You can’t perform that action at this time.
0 commit comments