forked from DJacquemont/BlockBuster
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
61 lines (54 loc) · 1.73 KB
/
Copy pathDockerfile
File metadata and controls
61 lines (54 loc) · 1.73 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 ros:humble-ros-base
ENV DEBIAN_FRONTEND=noninteractive
# Install required packages
RUN apt-get update && apt-get install -y --no-install-recommends \
python3-pip \
cmake \
build-essential \
nano \
git \
iproute2 \
usbutils \
wget \
curl \
libserial-dev \
ros-humble-ros2-control \
ros-humble-ros2-controllers \
ros-humble-xacro \
ros-humble-robot-state-publisher \
ros-humble-navigation2 \
ros-humble-nav2-bringup \
ros-humble-nav2-rviz-plugins \
ros-humble-teleop-twist-keyboard \
ros-humble-twist-mux \
ros-humble-rqt \
ros-humble-turtlebot3* \
ros-humble-ament-cmake \
ros-humble-depthai-ros \
ros-humble-imu-filter-madgwick \
&& rm -rf /var/lib/apt/lists/*
# Create colcon workspace
WORKDIR /root/colcon_ws/src
RUN git clone --recurse-submodules https://github.com/DJacquemont/BlockBuster.git .
WORKDIR /root/colcon_ws
RUN /bin/bash -c "cp src/blockbuster_core/config/bt.xml /opt/ros/humble/share/nav2_bt_navigator/behavior_trees/; \
source /opt/ros/humble/setup.bash; \
colcon build --symlink-install"
# Build the serial library
WORKDIR /root
RUN git clone https://github.com/joshnewans/serial.git
WORKDIR /root/serial
RUN git checkout 2121a37eaa1aff8ca62badc0ac8f43b87169d706 && \
/bin/bash -c "source /opt/ros/humble/setup.bash; make" && \
make install
# .bashrc entries
RUN echo "source /opt/ros/humble/setup.bash" >> /root/.bashrc && \
echo 'cd() { builtin cd "$@" && ls; }' >> /root/.bashrc && \
echo "export ROS_LOCALHOST_ONLY=1" >> /root/.bashrc
WORKDIR /root
COPY robot_start.sh /root
RUN chmod +x /root/robot_start.sh
# Set up the entrypoint
COPY entrypoint.sh /
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]