forked from UTS-RI/IDMP
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
56 lines (45 loc) · 1.45 KB
/
Copy pathDockerfile
File metadata and controls
56 lines (45 loc) · 1.45 KB
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
47
48
49
50
51
52
53
54
55
56
# Use an official ROS Noetic base image
FROM ros:noetic-ros-core-focal
# Set environment variables for ROS
ENV ROS_DISTRO=noetic
ENV DEBIAN_FRONTEND=noninteractive
# Update and install dependencies
RUN apt-get update && apt-get install -y \
python3 \
python3-pip \
build-essential \
cmake \
g++ \
libeigen3-dev \
ros-noetic-sensor-filters \
ros-noetic-point-cloud2-filters \
ros-noetic-robot-body-filter \
ros-noetic-rviz \
ros-noetic-tf2-geometry-msgs \
ros-noetic-tf2-eigen \
ros-noetic-image-transport \
ros-noetic-camera-info-manager \
ros-noetic-image-geometry \
ros-noetic-depth-image-proc \
git \
x11-apps \
libopencv-dev
# Optional: Install OpenMP for multithreading
RUN apt-get install -y libomp-dev
# Install Python dependencies
RUN python3 -m pip install --upgrade pip && \
python3 -m pip install --ignore-installed numpy opencv-python open3d rosnumpy
# Create the catkin workspace
WORKDIR /root/catkin_ws/src
# Clone the IDMP package
RUN git clone https://github.com/eld4niz/IDMP.git
# clone cpu monitor
RUN git clone https://github.com/alspitz/cpu_monitor.git
# Navigate to the workspace root and build the workspace
WORKDIR /root/catkin_ws
RUN /bin/bash -c "source /opt/ros/noetic/setup.bash && catkin_make"
# Source the workspace in the container's environment
RUN echo "source /root/catkin_ws/devel/setup.bash" >> ~/.bashrc
# Default command
CMD ["/bin/bash"]
ENV DISPLAY=:0