Skip to content

Commit

Permalink
Drop rosbag2_py from CE image in favor of rosbag2
Browse files Browse the repository at this point in the history
  • Loading branch information
chaoflow committed Oct 23, 2020
1 parent 3047211 commit f976130
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 20 deletions.
2 changes: 0 additions & 2 deletions .docker/env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
if [ -z "$CENV" ]; then
set -e
export CENV=1
source /opt/ros/${ROS_DISTRO}/setup.bash
source /opt/rosbag2/setup.bash
if [[ -n "$ACTIVATE_VENV" ]] && [[ -n "$MARV_VENV" ]]; then
source $MARV_VENV/bin/activate
fi
Expand Down
19 changes: 1 addition & 18 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright 2016 - 2018 Ternaris.
# SPDX-License-Identifier: AGPL-3.0-only

FROM ros:foxy-ros-base
FROM ubuntu:focal

ARG PYTHON=python3.8

Expand Down Expand Up @@ -30,7 +30,6 @@ RUN apt-get update && \
lsof \
man \
python3-pip \
python3-pybind11 \
${PYTHON} \
${PYTHON}-dev \
${PYTHON}-venv \
Expand All @@ -48,22 +47,6 @@ ENV LANG en_US.UTF-8
ENV LANGUAGE en_US.UTF-8
ENV LC_ALL en_US.UTF-8

RUN cd /opt && \
curl -sL https://github.com/ternaris/rosbag2/archive/marv-2020-08-09.zip > rosbag2.zip && \
unzip rosbag2.zip && rm rosbag2.zip && \
mkdir -p ws/src && mv rosbag2-marv-2020-08-09 ws/src/rosbag2 && \
bash -c ' \
source /opt/ros/${ROS_DISTRO}/setup.bash && \
cd ws && \
colcon build --install /opt/rosbag2 --merge-install \
--cmake-args " -DBUILD_TESTING=OFF" --packages-up-to rosbag2_py \
' && cd .. && rm -rf ws && \
bash -c ' \
source /opt/ros/${ROS_DISTRO}/setup.bash && \
source /opt/rosbag2/setup.bash && \
${PYTHON} -c "import rosbag2_py" \
'

ENV PIP_DISABLE_PIP_VERSION_CHECK=1
ENV MARV_VENV=/opt/marv
COPY requirements/* ${MARV_VENV}/requirements/
Expand Down

0 comments on commit f976130

Please sign in to comment.