-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathDockerfile
More file actions
39 lines (33 loc) · 960 Bytes
/
Dockerfile
File metadata and controls
39 lines (33 loc) · 960 Bytes
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
FROM osrf/ros:noetic-desktop-full
ENV DEBIAN_FRONTEND=noninteractive
# 安装系统依赖
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
coinor-libipopt-dev \
gfortran \
liblapack-dev \
pkg-config \
swig \
python3-pip \
vim \
git \
libatlas-base-dev \
python3-scipy \
&& rm -rf /var/lib/apt/lists/*
# install CasADi
WORKDIR /tmp
RUN git clone https://github.com/casadi/casadi.git \
&& cd casadi \
&& mkdir build && cd build \
&& cmake -DWITH_PYTHON=ON -DWITH_IPOPT=ON -DWITH_OPENMP=ON -DWITH_THREAD=ON .. \
&& make -j$(nproc) \
&& make install \
&& cd ../.. \
&& rm -rf casadi \
&& ldconfig
# install Turtlebot3-related packages
RUN apt-get update && apt-get install -y --no-install-recommends \
ros-noetic-turtlebot3-msgs \
&& rm -rf /var/lib/apt/lists/*
# install POT
RUN pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pot