Coverage Control Library
|
The library is available on PyPI and can be installed using pip
. It is recommended to install the library inside a virtual environment.
We need the following optional packages for visualization and video generation:
gnuplot
or gnuplot-nox
(for visualizing environment)ffmpeg
(for generating videos)On Ubuntu, these can be installed using the following command:
Docker images are available for the library with different configurations and versions.
We will organize files in a workspace directory: ${CoverageControl_ws}
(e.g., ~/CoverageControl_ws). The workspace directory is mounted to the docker container.
Add the following lines to your ${HOME}/.bashrc
file for convenience.
Clone the repository:
Container can be created using the script in setup_utils/create_container.sh
.
/workspace
. If the workspace directory was specified, it will be mounted to the container at the same location.
One can exit the container by typing exit
or pressing Ctrl+D
.
The container can be started again using the following command:
Flags:
-d <dir>
: The workspace directory-n <name>
: Name of the container (default: coverage-control-$USER
)--with-cuda
: With CUDA support--with-ros
: With ROS supportThe base image is ghcr.io/kumarrobotics/coveragecontrol
with different tags for different versions and configurations.
Tags Suffix | Flags |
---|---|
python2.2.2-cuda12.2.2-ros2humble | --with-ros --with-cuda |
python2.2.2-cuda12.2.2 | --with-cuda |
python2.2.2-ros2humble | --with-ros |
python2.2.2 | None |
The library is already built and installed in the container. However, if you want to build it again, you can do so following the Installation from Source instructions (except for the prerequisites).
The following packages are required to build the library:
gnuplot-nox
and ffmpeg
are optional (but recommended) and only required for generating environment visualizations.Additional dependencies (generally already installed):
(Optional but recommended for GPU acceleration)
The package also supports GPU acceleration using CUDA. To enable this feature, the following additional packages are required:
cmake
(version 3.24 or higher)cuda
(version 11.8 or higher, 12.1 recommended)cmake
version can be installed from the official Kitware APT Repository.
Download the file pytest_data.tar.gz
from the repository's release page and extract it to python/tests/
. This will create a directory python/tests/data
.
Then run the following commands:
We will organize files in a workspace directory: ${CoverageControl_ws}
(e.g., ~/CoverageControl_ws).
Add the following lines to your ~/.bashrc
file.
setup.sh
located in the root of the repository.
Option | Description |
---|---|
-d <dir> | The workspace directory |
--with-cuda | Build with CUDA support |
CGAL 5.6
, which is automatically installed from the official CGAL repository through CMake
.