-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
70 lines (52 loc) · 1.92 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
FROM osrf/ros:noetic-desktop-full
# Set noninteractive to avoid prompts during the build
ARG DEBIAN_FRONTEND=noninteractive
# Update apt package list and install general packages
RUN apt-get update && \
apt-get install -y --fix-missing \
curl wget \
nano \
build-essential \
cmake \
libeigen3-dev\
python3-catkin-tools \
ros-noetic-libfranka ros-noetic-franka-ros \
ros-noetic-urdfdom-py \
ros-noetic-kdl-parser-py \
ros-noetic-kdl-conversions\
ros-noetic-spacenav-node\
usbutils
# Add python alias to python3
RUN ln -s /usr/bin/python3 /usr/bin/python
# Setup spacenavd (can't use apt-get bc that version is too old)
WORKDIR /workspace/
COPY . .
WORKDIR /workspace/spacenavd
RUN ./configure
RUN make install
WORKDIR /workspace/
# # Install Julia for RelaxedIK
# WORKDIR /
# RUN wget https://julialang-s3.julialang.org/bin/linux/x64/1.8/julia-1.8.1-linux-x86_64.tar.gz \
# && tar zxvf julia-1.8.1-linux-x86_64.tar.gz
# ENV PATH="/julia-1.8.1/bin:${PATH}"
# # TODO: Perhaps move julia into another location besides root
# # Install Julia dependencies
# RUN julia -e 'import Pkg; Pkg.add(Pkg.PackageSpec(name="Rotations", version="0.13.0"))'
# RUN julia -e 'import Pkg; Pkg.add(["YAML", "BenchmarkTools", "ForwardDiff", "Calculus", "ReverseDiff", "StaticArrays", "Flux", "BSON", "NLopt", "Knet", "Random", "RobotOS", "Distributions", "PyCall", "Dates", "LinearAlgebra", "Zygote", "Distances"]) '
# ENV PYTHON=/usr/bin/python2.7
# RUN julia -e 'import Pkg; Pkg.add("PyCall"); Pkg.build("PyCall")'
# # Install Python dependencies
# RUN wget https://bootstrap.pypa.io/pip/2.7/get-pip.py
# RUN python2.7 get-pip.py
# RUN python2.7 -m pip install --upgrade pip
# RUN python2.7 -m pip install \
# readchar \
# python-fcl \
# scikit-learn \
# scipy \
# PyYaml \
# rospkg
# RUN python2.7 -m pip install --upgrade numpy
# Set the default command to execute
CMD ["bash"]