-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
62 lines (46 loc) · 1.59 KB
/
Dockerfile
File metadata and controls
62 lines (46 loc) · 1.59 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
57
58
59
60
61
FROM osrf/ros:noetic-desktop-full
# Install system dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
vim \
wget \
libpcl-dev \
libusb-1.0-0-dev \
swig \
&& rm -rf /var/lib/apt/lists/*
RUN echo "alias python=python3.7" >> ~/.bashrc
RUN export PATH=${PATH}:/usr/bin/python3.7
RUN /bin/bash -c "source ~/.bashrc"
RUN apt-get update && apt-get install -y --no-install-recommends \
libboost-dev \
libpcl-dev \
libboost-program-options-dev \
libusb-1.0-0-dev \
libxcb-cursor0 \
python3-pip \
git \
&& rm -rf /var/lib/apt/lists/*
RUN apt-get install -y \
swig libpython3-dev \
&& rm -rf /var/lib/apt/lists/*
# Install ROS dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
ros-${ROS_DISTRO}-tf \
ros-${ROS_DISTRO}-tf-conversions \
ros-${ROS_DISTRO}-joy \
&& rm -rf /var/lib/apt/lists/*
RUN pip install --upgrade pip
# Install Python packages
RUN apt-get update && apt-get install -y --no-install-recommends \
python3-tk \
&& rm -rf /var/lib/apt/lists/*
RUN pip install --ignore-installed PyYAML
RUN pip install pytest scipy matplotlib numpy cfclient
RUN python3 -m pip install -U jax jaxlib
RUN python3 -m pip install cvxpy
RUN pip install "cvxpy[CVXOPT,GLOP,GLPK,GUROBI,MOSEK,PDLP,SCIP,XPRESS]"
# Source ROS environment and workspace setup
RUN echo "source /opt/ros/${ROS_DISTRO}/setup.bash" >> /root/.bashrc
RUN echo "source /root/crazyswarm/ros_ws/devel/setup.bash" >> /root/.bashrc
# Set environment variable for Python version
ENV CSW_PYTHON=python3
WORKDIR /root/crazyswarm