Skip to main content

TrajGenPy

License Build Status Python Version

TrajGenPy is a powerful Python library designed for generating coverage trajectories using the Boustrophedon Cell Decomposition algorithm. This library facilitates the extraction of environmental features from OpenStreetMap (OSM) and converts them into geodetic coordinates, enabling efficient and effective coverage path planning. By leveraging the capabilities of TrajGenPy, users can easily generate coverage paths for various applications such as agricultural field coverage, robotic vacuum cleaning, and environmental monitoring.

area Map Features Another Image

Installation

The package is regularly updated and new releases are created when significant changes to the main branch has happened.

Requirements:

sudo apt-get update && apt-get -y install libcgal-dev pybind11-dev

Install using pip:

pip install trajgenpy

Build from source

Before building TrajGenPy, ensure you have the following requirements installed:

  • libcgal-dev - The Computational Geometry Algorithms Library
  • pybind11-dev - A lightweight header-only library for creating Python bindings

You can install these dependencies on Ubuntu using the following commands:

sudo apt-get update && apt-get -y install libcgal-dev pybind11-dev

Once you have the dependencies installed, you can install TrajGenPy using pip. Simply navigate to your project directory and run:

pip install -r requirements.txt
pip install -e .

The "-e" argument for pip is to enable the developer to edit the python source code and perform tests without having to rebuild everything.

Usage

To use TrajGenPy in your Python project, you can import it as follows:

import trajgenpy

You can then use the provided functions and classes to perform trajectory generation and task planning based on the Boustrophedon Cell Decomposition algorithm. See the examples in a relative link

Contributing & Development

Install the bindings in dev mode. The bindings have to be reinstalled if any of the trajgenpy_bindings package is changed.

pip install -e .

To contribute to trajgenpy, start by forking the repository on GitHub. Create a new branch for your changes, make the necessary code edits, commit your changes with clear messages, and push them to your fork. Create a pull request from your branch to the original repository, describing your changes and addressing any related issues. Once your pull request is approved, a project maintainer will merge it into the main branch.

OSM Feature extraction

Using this library it becomes very easy to exctract features from Openstreetmap and convert the different geometries to and from geodetic coordinates. Alt Text

Both of the examples showed above has been generated using less than 20 lines of code. More examples and extensions to the library is in the works. The specific tags of the features which can be queried can be found here.

Covereage path generation

is a Python library that provides functionality for trajectory task generation using the Boustrophedon Cell Decomposition algorithm for coverage generation. It is an extension of the C++ implementation found in the ethz-asl/polygon_coverage_planning repository, with additional features and Python bindings.

Many coverage problems use the boustrophedon (way of the ox) coverage patter and has been implemented in python using ethz-asl/polygon_coverage_planning through c++ bindings. The example below has been created using very few lines, and can be applied to all types of polygons.

Citation

If you use TrajGenPy in your work, please cite the following paper:

@inproceedings{grontved2022icar,
  title={Decentralized Multi-UAV Trajectory Task Allocation in Search and Rescue Applications},
  author={Gr{\o}ntved, Kasper Andreas R{\o}mer and Schultz, Ulrik Pagh and Christensen, Anders Lyhne},
  booktitle={21st International Conference on Advanced Robotics},
  year={2023},
  organization={IEEE}
}

License

This library is released under the MIT License. Feel free to use, modify, and distribute it in your projects.

Issues and Contributions

If you encounter any issues or have ideas for improvements, please open an issue on the GitHub repository. Contributions in the form of pull requests are also welcome.

Support

For support and inquiries, you can contact the maintainers of this library at kaspergrontved@gmail.com.

Thank you for using TrajGenPy! We hope it proves to be a valuable tool for your trajectory generation and task planning needs.

Metadata

Release files for trajgenpy 0.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for trajgenpy 0.3.1
File Size Uploaded Provenance Actions
trajgenpy-0.3.1.tar.gz 4.1 MB With provenance Details for trajgenpy-0.3.1.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for trajgenpy 0.3.1
File Actions
trajgenpy-0.3.1-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.14 CPython 3.14 Linux glibc 2.28+ x86-64, Linux glibc 2.27+ x86-64 Details for trajgenpy-0.3.1-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
trajgenpy-0.3.1-cp313-cp313-manylinux_2_28_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.28+ x86-64 Details for trajgenpy-0.3.1-cp313-cp313-manylinux_2_28_x86_64.whl
trajgenpy-0.3.1-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.28+ x86-64, Linux glibc 2.27+ x86-64 Details for trajgenpy-0.3.1-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
trajgenpy-0.3.1-cp312-cp312-manylinux_2_28_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.28+ x86-64 Details for trajgenpy-0.3.1-cp312-cp312-manylinux_2_28_x86_64.whl
trajgenpy-0.3.1-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.28+ x86-64, Linux glibc 2.27+ x86-64 Details for trajgenpy-0.3.1-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
trajgenpy-0.3.1-cp311-cp311-manylinux_2_28_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.28+ x86-64 Details for trajgenpy-0.3.1-cp311-cp311-manylinux_2_28_x86_64.whl
trajgenpy-0.3.1-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.28+ x86-64, Linux glibc 2.27+ x86-64 Details for trajgenpy-0.3.1-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
trajgenpy-0.3.1-cp310-cp310-manylinux_2_28_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.28+ x86-64 Details for trajgenpy-0.3.1-cp310-cp310-manylinux_2_28_x86_64.whl
trajgenpy-0.3.1-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.28+ x86-64, Linux glibc 2.27+ x86-64 Details for trajgenpy-0.3.1-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Total release size: 13.3 MB

Release files / trajgenpy-0.3.1.tar.gz

Download URL trajgenpy-0.3.1.tar.gz
Size 4.1 MB
Tags Source
SHA-256 checksum
How to use checksums
d37bf4e8c4c349ed1fdf87cd05c34658b5199ba8ac5c352c32062a9c8d1f385b
BLAKE2b-256 checksum
How to use checksums
2f8e431299a5afb6a928a5bd2de86d6f0aa5874e3214ed0a62ee56dd4f9c5d8b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 10, 2026.

Transparency log

Release files / trajgenpy-0.3.1-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL trajgenpy-0.3.1-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 1.0 MB
Tags CPython 3.14 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
54790d234d87be5b0a700b78464fe25ed8f101f9338ec7d61fa4818672c8016c
BLAKE2b-256 checksum
How to use checksums
635f871854131fc8e840f7d51fdebd43dbb98f52b819ddb4aa5f73ed273ab0e3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 10, 2026.

Transparency log

Release files / trajgenpy-0.3.1-cp313-cp313-manylinux_2_28_x86_64.whl

Download URL trajgenpy-0.3.1-cp313-cp313-manylinux_2_28_x86_64.whl
Size 1.0 MB
Tags CPython 3.13 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
d6df5f66eb7d8ed52b58e71d8d984d0d9d03ea5ee4e97857e08ebfe55f0341e6
BLAKE2b-256 checksum
How to use checksums
08c49dfc6a6341a76d0d89d57795a118957d5ca57eddbd0d138f6b5783cdf3fe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 10, 2026.

Transparency log

Release files / trajgenpy-0.3.1-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL trajgenpy-0.3.1-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 1.0 MB
Tags CPython 3.13 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
6eafab98507ae7e798347c4fe82427d770681f8507df4b5954439b816754d617
BLAKE2b-256 checksum
How to use checksums
168448e16c7de37808230740d6e2cd96472788053662bf442f45c9feba0b3ef8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 10, 2026.

Transparency log

Release files / trajgenpy-0.3.1-cp312-cp312-manylinux_2_28_x86_64.whl

Download URL trajgenpy-0.3.1-cp312-cp312-manylinux_2_28_x86_64.whl
Size 1.0 MB
Tags CPython 3.12 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
85c90435cc7b73276284261ba7f9149c4c3d197f8d5afa2a87237305f3e68d61
BLAKE2b-256 checksum
How to use checksums
38e19b2225108d407fb1ba6f11871daf77e43f6e86e35352a9645262917e8019
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 10, 2026.

Transparency log

Release files / trajgenpy-0.3.1-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL trajgenpy-0.3.1-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 1.0 MB
Tags CPython 3.12 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
2647d394a8a3c34093682b3d8870393c4d1c246972d030e6bfe2ed88a8bb4758
BLAKE2b-256 checksum
How to use checksums
a5d3fbca220b5f895d2dd9092282056c2bed62212439da7dc72ca4eab3f040ce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 10, 2026.

Transparency log

Release files / trajgenpy-0.3.1-cp311-cp311-manylinux_2_28_x86_64.whl

Download URL trajgenpy-0.3.1-cp311-cp311-manylinux_2_28_x86_64.whl
Size 1.0 MB
Tags CPython 3.11 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
5d03c1b0d2164b0e9f39e01e17438b9dfeeec7eac0f7cc17dd8b6ce07bc8aa3a
BLAKE2b-256 checksum
How to use checksums
9ac87a33307295ff031e5c0060c9bb0601199727755a981bf8fac19916740cab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 10, 2026.

Transparency log

Release files / trajgenpy-0.3.1-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL trajgenpy-0.3.1-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 1.0 MB
Tags CPython 3.11 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
74e16891f0143328579054f68f3a56128fd4da1f748af70a5fcafe1df0902a31
BLAKE2b-256 checksum
How to use checksums
66a967c5d5941774e32b13e7218a9c904b9b946e3898d5418709958fab500e39
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 10, 2026.

Transparency log

Release files / trajgenpy-0.3.1-cp310-cp310-manylinux_2_28_x86_64.whl

Download URL trajgenpy-0.3.1-cp310-cp310-manylinux_2_28_x86_64.whl
Size 1.0 MB
Tags CPython 3.10 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
15526aaabe2a3a024950ccd9c096907700375edaf9b2a921000ad84264997718
BLAKE2b-256 checksum
How to use checksums
7e5c18c0accda15a56b25d9da7dc1f588928588de17f56bb888000073c7230ca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 10, 2026.

Transparency log

Release files / trajgenpy-0.3.1-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL trajgenpy-0.3.1-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 1.0 MB
Tags CPython 3.10 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
8877ceaf7f925bbc0acf521e5a6c265eed5746c02d43aba2478615f1730604fd
BLAKE2b-256 checksum
How to use checksums
44bdd027ccb0da9d0cb5f31980e2b769363b6608e9a705f727332dc4575f6473
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 10, 2026.

Transparency log

Security for trajgenpy 0.3.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 10 files in this release have been uploaded with provenance metadata.

Select from 10 files

Attestation for trajgenpy-0.3.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 10, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page