Skip to content

Commit 4a6e13a

Browse files
authored
Isolate dataset (#4)
* Add missing dependencies * remove bop from tester image and instead mount it * add necessary BOP_PATH env * fixup env path for example
1 parent c76a05b commit 4a6e13a

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Dockerfile.tester

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ ENV RMW_IMPLEMENTATION=rmw_zenoh_cpp
1010
# underlay stage: base + dependencies built
1111
FROM base AS underlay
1212

13-
ARG BOP_PATH
14-
1513
ADD ibpc_interfaces /opt/ros/underlay/src/ibpc_interfaces
1614

1715
RUN . /opt/ros/jazzy/setup.sh \
@@ -22,8 +20,6 @@ RUN . /opt/ros/jazzy/setup.sh \
2220
--event-handlers=console_direct+ \
2321
--merge-install
2422

25-
ADD ${BOP_PATH} /opt/ros/underlay/install/datasets
26-
2723
FROM underlay AS overlay
2824

2925
# TODO(Yadunund): Remove this step after next Jazzy sync.
@@ -61,9 +57,12 @@ RUN apt update \
6157
&& echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/ros-archive-keyring.gpg] http://packages.ros.org/ros2-testing/ubuntu $(. /etc/os-release && echo $UBUNTU_CODENAME) main" | sudo tee /etc/apt/sources.list.d/ros2.list > /dev/null
6258

6359
RUN apt-get update \
64-
&& apt install -y ros-jazzy-rmw-zenoh-cpp \
60+
&& apt install -y ros-jazzy-rmw-zenoh-cpp python3-imageio python3-png python3-pip python3-scipy \
6561
&& rm -rf /var/lib/apt/lists/*
6662

63+
# TODO remove deprecated pytz usage
64+
RUN python3 -m pip install pytz --break-system-packages
65+
6766
COPY --from=overlay /opt/ros/underlay/install /opt/ros/underlay/install
6867
COPY --from=overlay /opt/ros/overlay/install /opt/ros/overlay/install
6968

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,8 @@ ros2 run ibpc_tester ibpc_tester --ros-args -p datset_name:=<DATASET_NAME>
9898

9999
#### With Docker
100100
```bash
101-
docker run --network=host ibpc:tester
101+
docker run --network=host -e BOP_PATH=/opt/ros/underlay/install/datasets -v/home/tullyfoote/ws/ibpc/lm:/opt/ros/underlay/install/datasets/lm -it ibpc:tester
102+
102103
```
103104

104105
#### Query the pose estimator directly

0 commit comments

Comments
 (0)