mirror of
https://github.com/elephantrobotics/mycobot_ros.git
synced 2026-07-05 19:47:04 +00:00
Use rosdep
This commit is contained in:
parent
38a5125306
commit
a036806572
1 changed files with 7 additions and 7 deletions
14
Dockerfile
14
Dockerfile
|
|
@ -16,6 +16,10 @@ ENTRYPOINT ["/bin/bash", "-c"]
|
|||
ARG ROS_DISTRO
|
||||
RUN echo "source /opt/ros/${ROS_DISTRO}/setup.bash" >> $BASH_ENV
|
||||
|
||||
# Copy myCobot ROS package
|
||||
WORKDIR /catkin_ws/src
|
||||
COPY . mycobot_ros
|
||||
|
||||
# Install build dependencies
|
||||
RUN apt-get update && \
|
||||
apt-get install -y \
|
||||
|
|
@ -24,11 +28,9 @@ RUN apt-get update && \
|
|||
python-rosinstall-generator \
|
||||
python-wstool \
|
||||
build-essential \
|
||||
# Project-specific build dependencies
|
||||
python-pip \
|
||||
ros-${ROS_DISTRO}-moveit \
|
||||
ros-${ROS_DISTRO}-serial \
|
||||
ros-${ROS_DISTRO}-joint-state-publisher-gui && \
|
||||
python-pip && \
|
||||
# Project-specific build dependencies
|
||||
rosdep install -r -y -i --from-paths . && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Install python dependencies
|
||||
|
|
@ -36,8 +38,6 @@ ARG PYMYCOBOT_VERSION
|
|||
RUN pip install "pymycobot $PYMYCOBOT_VERSION" --user
|
||||
|
||||
# Build the project
|
||||
WORKDIR /catkin_ws/src
|
||||
ADD . mycobot_ros
|
||||
WORKDIR /catkin_ws
|
||||
RUN catkin_make
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue