generated from athackst/vscode_ros2_workspace
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
38 lines (29 loc) · 991 Bytes
/
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
FROM osrf/ros:humble-desktop-full
RUN apt-get update \
&& apt-get -y install \
python3-pip \
ros-${ROS_DISTRO}-rclpy \
ros-${ROS_DISTRO}-ur \
build-essential \
python3-colcon-common-extensions \
#
# Clean up
&& apt-get autoremove -y \
&& apt-get clean -y \
&& rm -rf /var/lib/apt/lists/*
RUN pip3 install rosdep && \
rosdep update
RUN mkdir /root/ws/src -p
WORKDIR /root/ws/src
RUN git clone https://github.com/maffettone/erobs.git -b humble
WORKDIR /root/ws/
RUN /bin/bash -c "source /opt/ros/${ROS_DISTRO}/setup.bash && \
colcon build --symlink-install --packages-select ur3e_hande_robot_description"
ENV ROBOT_IP=192.168.56.101
ENV REVERSE_IP=192.168.56.102
ENV UR_TYPE="ur3e"
ENV DESCRIPTION_PKG="ur3e_hande_robot_description"
ENV DESCRIPTION_FILE="ur_with_hande.xacro"
# Copy entrypoint script
COPY entrypoint.sh /entrypoint.sh
ENTRYPOINT [ "/bin/bash", "/entrypoint.sh" ]