-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
69 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
27
src/containers/docker/ros-docker-wsl/Dockerfile.turtlebot3_base
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |