Skip to content

Commit e6dbc5e

Browse files
author
Saurav Agarwal
committed
update docker structure
1 parent 8f18d10 commit e6dbc5e

File tree

13 files changed

+36
-27
lines changed

13 files changed

+36
-27
lines changed

cppsrc/core/src/coverage_system.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ CoverageSystem::CoverageSystem(Parameters const &params,
129129
}
130130
robots_.reserve(robot_positions.size());
131131
num_robots_ = robot_positions.size();
132-
if(params_.pNumRobots != num_robots_) {
132+
if(params_.pNumRobots != static_cast<int>(num_robots_)) {
133133
std::cerr << "Number of robots in the file does not match the number of robots in the parameters\n";
134134
std::cerr << "Number of robots in the file: " << num_robots_ << " Number of robots in the parameters: " << params_.pNumRobots << std::endl;
135135
exit(1);

doc/manual/installation.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,19 +77,26 @@ docker start -i coverage-control-$USER # Replace with the name of the container
7777
- `--with-ros` : With ROS support
7878
- `--noble` : Ubuntu 24.04 Noble
7979

80-
The base image is `ghcr.io/\repo_owner_lower/coveragecontrol` with different tags for different versions and configurations.
80+
The base image is `ghcr.io/\repo_owner_lower/pytorch_base` with different tags for different versions and configurations.
8181

8282
|Tags Suffix | Flags|
8383
|--- | ---|
8484
|`jammy-torch2.5.1-cuda12.4.1-humble` | `--with-ros --with-cuda`|
8585
|`jammy-torch2.5.1-cuda12.4.1` | `--with-cuda`|
8686
|`jammy-torch2.5.1-humble` | `--with-ros`|
8787
|`jammy-torch2.5.1` | None|
88+
|`noble-torch2.5.1-cuda12.6.2-jazzy` | `--with-ros --with-cuda --noble`|
89+
|`noble-torch2.5.1-cuda12.6.2` | `--with-cuda --noble`|
8890
|`noble-torch2.5.1-jazzy` | `--with-ros --noble`|
8991
|`noble-torch2.5.1` | --noble|
9092

91-
The library is already built and installed in the container.
92-
However, if you want to build it again, you can do so following the [Installation from Source](#installation-from-source) instructions (except for the prerequisites).
93+
94+
Install the library available on PyPI:
95+
```bash
96+
pip install coverage_control
97+
```
98+
99+
Alternatively, follow the [Installation from Source](#installation-from-source) instructions (except for the prerequisites).
93100

94101
--------
95102

utils/docker/base_images/build_all_images.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,4 @@ TAG_NAME=latest
5252
build_image $1 $TAG_NAME ubuntu24.04/Dockerfile
5353

5454
docker buildx build --platform linux/arm64 -t ${1}:arm64-jammy-torch2.5.1-humble -f ubuntu22.04/arm64-ros2.Dockerfile --push .
55+
docker buildx build --platform linux/arm64 -t ${1}:arm64-noble-torch2.5.1-jazzy -f ubuntu24.04/arm64-ros2.Dockerfile --push .

utils/docker/base_images/ubuntu22.04/arm64-ros2.Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,11 @@ RUN apt-get -y install \
4949
libgeos-dev \
5050
libyaml-cpp-dev \
5151
vim \
52+
neovim \
5253
tmux \
5354
ffmpeg \
55+
unzip \
5456
gnuplot-nox \
55-
unzip \
5657
ninja-build libpng-dev libjpeg-dev libopencv-dev python3-opencv
5758

5859
RUN add-apt-repository universe
@@ -69,6 +70,7 @@ RUN rm -rf /var/lib/apt/lists/*; \
6970
rm -f /var/cache/apt/archives/parital/*.deb; \
7071
rm -f /var/cache/apt/*.bin
7172

73+
RUN mkdir -p /opt
7274
RUN mkdir download; \
7375
wget https://github.com/AgarwalSaurav/libtorch_arm64/releases/download/v${PYTORCH_VERSION}/libtorch-cxx11-abi-shared-with-deps-${PYTORCH_VERSION}.zip -O download/libtorch.zip; \
7476
unzip download/libtorch.zip -d /opt/; \

utils/docker/base_images/ubuntu22.04/cuda-ros2.Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ RUN mkdir download; \
7575
unzip download/libtorch.zip -d /opt/; \
7676
rm -r download
7777

78-
RUN echo "LD_LIBRARY_PATH=/usr/local/lib:/opt/libtorch/lib:${LD_LIBRARY_PATH}" >> /etc/environment
7978
ENV Torch_DIR=/opt/libtorch/share/cmake/
8079

8180
COPY requirements.txt /opt/requirements.txt
@@ -86,4 +85,4 @@ RUN /opt/venv/bin/pip install --no-cache-dir catkin_pkg empy==3.3.4 lark
8685
ENV VENV_PATH=/opt/venv
8786

8887
COPY .ros.humble.bashrc /root/.bashrc
89-
RUN echo "source /opt/venv/bin/activate" >> /root/.bashrc
88+
RUN echo 'LD_LIBRARY_PATH=/usr/local/lib:/opt/libtorch/lib:${LD_LIBRARY_PATH}' >> /root/.bashrc

utils/docker/base_images/ubuntu22.04/cuda.Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ RUN mkdir download; \
6969
unzip download/libtorch.zip -d /opt/; \
7070
rm -r download
7171

72-
RUN echo "LD_LIBRARY_PATH=/usr/local/lib:/opt/libtorch/lib:${LD_LIBRARY_PATH}" >> /etc/environment
7372
ENV Torch_DIR=/opt/libtorch/share/cmake/
7473

7574
COPY requirements.txt /opt/requirements.txt
@@ -79,4 +78,4 @@ RUN /opt/venv/bin/pip install --no-cache-dir -r /opt/requirements.txt
7978
ENV VENV_PATH=/opt/venv
8079

8180
COPY .bashrc /root/.bashrc
82-
RUN echo "source /opt/venv/bin/activate" >> /root/.bashrc
81+
RUN echo 'LD_LIBRARY_PATH=/usr/local/lib:/opt/libtorch/lib:${LD_LIBRARY_PATH}' >> /root/.bashrc

utils/docker/base_images/ubuntu22.04/ros2.Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ RUN apt-get -y install \
4949
libgeos-dev \
5050
libyaml-cpp-dev \
5151
vim \
52+
neovim \
5253
tmux \
5354
ffmpeg \
5455
unzip \
@@ -75,7 +76,6 @@ RUN mkdir download; \
7576
unzip download/libtorch.zip -d /opt/; \
7677
rm -r download
7778

78-
RUN echo "LD_LIBRARY_PATH=/usr/local/lib:/opt/libtorch/lib:${LD_LIBRARY_PATH}" >> /etc/environment
7979
ENV Torch_DIR=/opt/libtorch/share/cmake/
8080

8181
COPY requirements_cpu.txt /opt/requirements.txt
@@ -86,4 +86,4 @@ RUN /opt/venv/bin/pip install --no-cache-dir catkin_pkg empy==3.3.4 lark
8686
ENV VENV_PATH=/opt/venv
8787

8888
COPY .ros.humble.bashrc /root/.bashrc
89-
RUN echo "source /opt/venv/bin/activate" >> /root/.bashrc
89+
RUN echo 'LD_LIBRARY_PATH=/usr/local/lib:/opt/libtorch/lib:${LD_LIBRARY_PATH}' >> /root/.bashrc

utils/docker/base_images/ubuntu24.04/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ RUN apt-get -y update; \
2323
gpg \
2424
curl \
2525
gdb \
26+
libbz2-dev \
2627
software-properties-common \
2728
ca-certificates \
2829
lsb-release \
@@ -71,4 +72,4 @@ RUN /opt/venv/bin/pip install --no-cache-dir -r /opt/requirements.txt
7172
ENV VENV_PATH=/opt/venv
7273

7374
COPY .bashrc /root/.bashrc
74-
RUN echo "source /opt/venv/bin/activate" >> /root/.bashrc
75+
RUN echo 'LD_LIBRARY_PATH=/usr/local/lib:/opt/libtorch/lib:${LD_LIBRARY_PATH}' >> /root/.bashrc

utils/docker/base_images/ubuntu24.04/arm64-ros2.Dockerfile

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
FROM arm64v8/ubuntu:22.04
1+
FROM arm64v8/ubuntu:24.04
22

33
SHELL ["/bin/bash", "-c"]
44

55
ENV DEBIAN_FRONTEND=noninteractive
66

7-
ARG PYTHON_VERSION="3.10"
7+
ARG PYTHON_VERSION="3.12"
88
ARG PYTORCH_VERSION="2.5.1"
99

1010
ENV PYTHON_VERSION=${PYTHON_VERSION}
@@ -23,6 +23,7 @@ RUN apt-get -y update; \
2323
gpg \
2424
curl \
2525
gdb \
26+
libbz2-dev \
2627
software-properties-common \
2728
ca-certificates \
2829
lsb-release \
@@ -33,13 +34,6 @@ RUN apt-get -y update; \
3334
python${PYTHON_VERSION}-venv \
3435
python-is-python3
3536

36-
# Add repo for installing latest version of cmake
37-
RUN wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | gpg --dearmor - | tee /usr/share/keyrings/kitware-archive-keyring.gpg >/dev/null; \
38-
echo 'deb [signed-by=/usr/share/keyrings/kitware-archive-keyring.gpg] https://apt.kitware.com/ubuntu/ jammy main' | tee /etc/apt/sources.list.d/kitware.list >/dev/null; \
39-
apt-get update; \
40-
rm /usr/share/keyrings/kitware-archive-keyring.gpg
41-
RUN apt install -y kitware-archive-keyring
42-
4337
RUN apt-get -y install \
4438
cmake \
4539
libgmp-dev \
@@ -49,10 +43,11 @@ RUN apt-get -y install \
4943
libgeos-dev \
5044
libyaml-cpp-dev \
5145
vim \
46+
neovim \
5247
tmux \
5348
ffmpeg \
49+
unzip \
5450
gnuplot-nox \
55-
unzip \
5651
ninja-build libpng-dev libjpeg-dev libopencv-dev python3-opencv
5752

5853
RUN add-apt-repository universe
@@ -61,14 +56,15 @@ RUN curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -o
6156
RUN echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/ros-archive-keyring.gpg] http://packages.ros.org/ros2/ubuntu $(. /etc/os-release && echo $UBUNTU_CODENAME) main" | tee /etc/apt/sources.list.d/ros2.list > /dev/null
6257

6358
RUN apt-get -y update && apt-get -y upgrade
64-
RUN apt -y install ros-humble-desktop ros-dev-tools python3-colcon-common-extensions python3-vcstool python3-pip python3-argcomplete python3-rosdep python3-rosinstall-generator python3-rosinstall build-essential ros-humble-rmw-cyclonedds-cpp ros-humble-eigen3-cmake-module
59+
RUN apt-get -y install ros-jazzy-desktop ros-dev-tools python3-colcon-common-extensions python3-vcstool python3-pip python3-argcomplete python3-rosdep python3-rosinstall-generator build-essential
6560

6661
# Remove cache to reduce image size
6762
RUN rm -rf /var/lib/apt/lists/*; \
6863
rm -f /var/cache/apt/archives/*.deb; \
6964
rm -f /var/cache/apt/archives/parital/*.deb; \
7065
rm -f /var/cache/apt/*.bin
7166

67+
RUN mkdir -p /opt
7268
RUN mkdir download; \
7369
wget https://github.com/AgarwalSaurav/libtorch_arm64/releases/download/v${PYTORCH_VERSION}/libtorch-cxx11-abi-shared-with-deps-${PYTORCH_VERSION}.zip -O download/libtorch.zip; \
7470
unzip download/libtorch.zip -d /opt/; \
@@ -79,10 +75,10 @@ ENV Torch_DIR=/opt/libtorch/share/cmake/
7975

8076
COPY requirements_cpu.txt /opt/requirements.txt
8177
RUN python${PYTHON_VERSION} -m venv /opt/venv
82-
RUN /opt/venv/bin/pip install --no-cache-dir wheel
78+
RUN /opt/venv/bin/pip install --no-cache-dir wheel setuptools==68.1.2
8379
RUN /opt/venv/bin/pip install --no-cache-dir -r /opt/requirements.txt
84-
RUN /opt/venv/bin/pip install --no-cache-dir catkin_pkg empy==3.3.4 lark
80+
RUN /opt/venv/bin/pip install --no-cache-dir catkin_pkg lark
8581
ENV VENV_PATH=/opt/venv
8682

87-
COPY .ros.humble.bashrc /root/.bashrc
83+
COPY .ros.jazzy.bashrc /root/.bashrc
8884
RUN echo 'LD_LIBRARY_PATH=/usr/local/lib:/opt/libtorch/lib:${LD_LIBRARY_PATH}' >> /root/.bashrc

utils/docker/base_images/ubuntu24.04/cuda-ros2.Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ RUN apt-get -y update; \
2323
gpg \
2424
curl \
2525
gdb \
26+
libbz2-dev \
2627
software-properties-common \
2728
ca-certificates \
2829
lsb-release \

0 commit comments

Comments
 (0)