FROM osrf/ros:jazzy-desktop-full # SETUP ENVS ENV LANG=C.UTF-8 ENV LC_ALL=C.UTF-8 ENV DEBIAN_FRONTEND noninteractive ENV NVIDIA_VISIBLE_DEVICES ${NVIDIA_VISIBLE_DEVICES:-all} ENV NVIDIA_DRIVER_CAPABILITIES ${NVIDIA_DRIVER_CAPABILITIES:+$NVIDIA_DRIVER_CAPABILITIES,}graphics # INSTALL SOME ESSENTIAL PROGRAMS RUN apt update && \ apt install -y \ git wget bash-completion ros-jazzy-gazebo-* ros-jazzy-cartographer ros-jazzy-cartographer-ros ros-jazzy-navigation2 ros-jazzy-nav2-bringup ros-jazzy-nav2-route ros-jazzy-opennav-docking # CLONE TURTLEBOT3 GIT REPOS RUN mkdir -p /arm_ws/src WORKDIR /arm_ws RUN /bin/bash -c '. /opt/ros/jazzy/setup.bash; colcon build --symlink-install' WORKDIR /arm_ws/src RUN git clone -b jazzy https://github.com/ROBOTIS-GIT/DynamixelSDK.git RUN git clone -b jazzy https://github.com/ROBOTIS-GIT/turtlebot3_msgs.git RUN git clone -b jazzy https://github.com/ROBOTIS-GIT/turtlebot3.git WORKDIR /arm_ws RUN /bin/bash -c '. /opt/ros/jazzy/setup.bash; colcon build --symlink-install' WORKDIR /arm_ws/src RUN git clone -b jazzy https://github.com/ROBOTIS-GIT/turtlebot3_simulations.git WORKDIR /arm_ws RUN /bin/bash -c '. /opt/ros/jazzy/setup.bash; colcon build --symlink-install' WORKDIR /arm_ws/src RUN git clone -b jazzy https://github.com/kamilmlodzikowski/arm05_sim.git # WORKDIR /arm_ws/src/arm05_sim/launch # RUN chmod +x world.launch.py WORKDIR /arm_ws/src/arm05_sim/scripts_arm05 RUN chmod +x spawn_aruco.py WORKDIR /arm_ws RUN /bin/bash -c '. /opt/ros/jazzy/setup.bash; colcon build --symlink-install' # FILL BASHRC RUN echo "source /opt/ros/${ROS_DISTRO}/setup.bash" >> ~/.bashrc RUN echo "source /arm_ws/install/setup.bash" >> ~/.bashrc RUN echo 'export TURTLEBOT3=waffle' >> ~/.bashrc