Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
zcemycl committed Jan 29, 2025
1 parent 18d8b4c commit e502801
Show file tree
Hide file tree
Showing 3 changed files with 69 additions and 0 deletions.
24 changes: 24 additions & 0 deletions src/containers/docker/ros-docker-wsl/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
FROM osrf/ros:noetic-desktop

RUN apt-get update
RUN apt-get install -y git && apt-get install -y python3-pip
RUN apt-get install -y ros-noetic-ros-control && \
apt-get install -y ros-noetic-ros-controllers && \
apt-get install -y ros-noetic-gazebo-ros-control && \
apt-get install -y ros-noetic-joint-state-publisher-gui && \
apt-get install -y ros-noetic-rqt-robot-steering

RUN mkdir -p /root/limo_ws/src && cd /root/limo_ws/src && \
git clone https://github.com/limo-agx/limo.git && \
git clone https://github.com/limo-agx/limo_desktop.git && \
git clone https://github.com/limo-agx/limo_simulator.git && \
cd /root/limo_ws &&\
rosdep install --from-paths src --ignore-src -r -y

SHELL ["/bin/bash", "-c"]

RUN cd /root/limo_ws &&\
source /opt/ros/noetic/setup.bash && \
catkin_make && \
echo "source /opt/ros/noetic/setup.bash" >> ~/.bashrc

18 changes: 18 additions & 0 deletions src/containers/docker/ros-docker-wsl/Dockerfile.nvidia
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM nvidia/cudagl:11.1.1-base-ubuntu20.04

# Minimal setup
RUN apt-get update \
&& apt-get install -y locales lsb-release
ARG DEBIAN_FRONTEND=noninteractive
RUN dpkg-reconfigure locales

# Install ROS Noetic
RUN sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
RUN apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
RUN apt-get update \
&& apt-get install -y --no-install-recommends ros-noetic-desktop-full
RUN apt-get install -y --no-install-recommends python3-rosdep
RUN rosdep init \
&& rosdep fix-permissions \
&& rosdep update
RUN echo "source /opt/ros/noetic/setup.bash" >> ~/.bashrc
27 changes: 27 additions & 0 deletions src/containers/docker/ros-docker-wsl/Dockerfile.turtlebot3_base
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
FROM nvidia_ros:latest

# Change the default shell to Bash
SHELL [ "/bin/bash" , "-c" ]

# Install Git
RUN apt-get update && apt-get install -y git
RUN apt-get update && apt-get install -y build-essential

# Create a Catkin workspace and clone TurtleBot3 repos
RUN source /opt/ros/noetic/setup.bash \
&& mkdir -p /turtlebot3_ws/src \
&& cd /turtlebot3_ws/src \
&& catkin_init_workspace \
&& git clone -b noetic-devel https://github.com/ROBOTIS-GIT/turtlebot3.git \
&& git clone -b noetic-devel https://github.com/ROBOTIS-GIT/turtlebot3_msgs.git \
&& git clone -b noetic-devel https://github.com/ROBOTIS-GIT/turtlebot3_simulations.git
RUN echo "export TURTLEBOT3_MODEL=waffle_pi" >> ~/.bashrc

# Build the Catkin workspace and ensure it's sourced
RUN source /opt/ros/noetic/setup.bash \
&& cd turtlebot3_ws \
&& catkin_make
RUN echo "source /turtlebot3_ws/devel/setup.bash" >> ~/.bashrc

# Set the working folder at startup
WORKDIR /turtlebot3_ws

0 comments on commit e502801

Please sign in to comment.