From 2e8f8e4b03717b5718149ec402f8f7eea7b4711f Mon Sep 17 00:00:00 2001 From: zcemycl Date: Sun, 2 Feb 2025 18:49:31 +0000 Subject: [PATCH] update --- src/containers/docker/ros-docker-wsl/Dockerfile.overall | 2 +- src/containers/docker/ros-docker-wsl/docker-compose.yml | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/containers/docker/ros-docker-wsl/Dockerfile.overall b/src/containers/docker/ros-docker-wsl/Dockerfile.overall index 670a1a2..027d757 100644 --- a/src/containers/docker/ros-docker-wsl/Dockerfile.overall +++ b/src/containers/docker/ros-docker-wsl/Dockerfile.overall @@ -51,4 +51,4 @@ WORKDIR /turtlebot3_ws # CMD source /root/.bashrc && echo $PATH && roslaunch gazebo_ros empty_world.launch # CMD cat /root/.bashrc -CMD source /opt/ros/noetic/setup.bash && source /turtlebot3_ws/devel/setup.bash && roslaunch turtlebot3_gazebo turtlebot3_world.launch \ No newline at end of file +# CMD source /opt/ros/noetic/setup.bash && source /turtlebot3_ws/devel/setup.bash && roslaunch turtlebot3_gazebo turtlebot3_world.launch diff --git a/src/containers/docker/ros-docker-wsl/docker-compose.yml b/src/containers/docker/ros-docker-wsl/docker-compose.yml index c2aaeff..3cc78a9 100644 --- a/src/containers/docker/ros-docker-wsl/docker-compose.yml +++ b/src/containers/docker/ros-docker-wsl/docker-compose.yml @@ -20,6 +20,11 @@ services: dockerfile: Dockerfile.overall target: tbase # command: ["roslaunch", "gazebo_ros" , "empty_world.launch"] + command: bash -c 'source /opt/ros/noetic/setup.bash && source /turtlebot3_ws/devel/setup.bash && roslaunch turtlebot3_gazebo turtlebot3_world.launch' + # command: ["source", "/opt/ros/noetic/setup.bash", "&&", "source", "/turtlebot3_ws/devel/setup.bash", "&&", "roslaunch", "turtlebot3_gazeb", "turtlebot3_world.launch"] + # - source /opt/ros/noetic/setup.bash + # - source /turtlebot3_ws/devel/setup.bash + # - roslaunch turtlebot3_gazebo turtlebot3_world.launch environment: - NVIDIA_DRIVER_CAPABILITIES=all - DISPLAY=${DISPLAY}