-
Notifications
You must be signed in to change notification settings - Fork 64
/
Dockerfile
46 lines (36 loc) · 1.01 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Use the official ROS Melodic base image
FROM osrf/ros:noetic-desktop-full
# Set the working directory
WORKDIR /workspace
# Install additional dependencies if needed
# For example, you can uncomment the line below to install a package
# Install additional dependencies
RUN apt-get update \
&& apt-get -y --quiet --no-install-recommends install \
gcc \
git \
libxml2-dev \
libxslt-dev \
python3 \
python3-pip\
python3-scipy \
ros-noetic-tf\
ros-noetic-interactive-markers\
ros-noetic-image-geometry\
ros-noetic-xacro
RUN pip3 install setuptools
RUN pip3 install pykalman catkin-tools
# Copy your ROS packages into the workspace
COPY . /workspace/src/
WORKDIR /workspace
# Set environment variables
ENV ROS_DISTRO noetic
ENV ROS_VERSION 1
# RUN catkin build
RUN . /opt/ros/noetic/setup.sh && catkin_make
# Source the ROS setup file
RUN echo "source /workspace/devel/setup.bash" >> ~/.bashrc
# Expose ROS master port
EXPOSE 11311
# Set entry point to start ROS
CMD ["roscore"]