forked from stanfordroboticsclub/StanfordQuadruped
-
Notifications
You must be signed in to change notification settings - Fork 145
/
Dockerfile
61 lines (49 loc) · 1.51 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
FROM osrf/ros:noetic-desktop-full
RUN sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
RUN apt-get update && \
apt-get install -y --no-install-recommends \
gdb \
apt-utils \
python3-rosdep \
python3-pip \
python3-vcstool \
python3-pymodbus \
build-essential \
ros-noetic-catkin \
python3-catkin-tools \
ros-noetic-ros-controllers \
nano \
ros-noetic-soem \
libvlccore-dev \
libvlc-dev \
ros-noetic-joy \
ros-noetic-rosserial \
ros-noetic-rosserial-arduino \
git
RUN pip3 install \
#Following are from pupper code
transforms3d \
UDPComms \
serial \
pyserial \
pigpio \
regex \
matplotlib \
#Following are Nathan/Alex additions
pynput \
spidev \
#adafruit-circuitpython-pca9685 \
adafruit-circuitpython-servokit
# Make the prompt a little nicer
RUN echo "PS1='${debian_chroot:+($debian_chroot)}\u@:\w\$ '" >> /etc/bash.bashrc
WORKDIR /dingo_ws
COPY /dingo_ws/src /dingo_ws/src
RUN rosdep update
RUN rosdep install --from-paths src --ignore-src -r -y
RUN echo "source /opt/ros/$ROS_DISTRO/setup.bash" >> /etc/bash.bashrc
RUN /bin/bash -c 'source /opt/ros/$ROS_DISTRO/setup.bash &&\
catkin_make --directory /dingo_ws -DCMAKE_BUILD_TYPE=Debug'
RUN echo "source /opt/ros/$ROS_DISTRO/setup.bash" >> /etc/bash.bashrc
RUN echo "source /dingo_ws/devel/setup.bash" >> /etc/bash.bashrc
ENTRYPOINT ["./ros_entrypoint.sh"]
CMD [ "bash" ]