GNU bug report logs - #59798
[PATCH 0/6] Add CommonRoad

Previous Next

Package: guix-patches;

Reported by: Liliana Marie Prikler <liliana.prikler <at> gmail.com>

Date: Sat, 3 Dec 2022 09:53:01 UTC

Severity: normal

Tags: patch

Done: Liliana Marie Prikler <liliana.prikler <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 59798 in the body.
You can then email your comments to 59798 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#59798; Package guix-patches. (Sat, 03 Dec 2022 09:53:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Liliana Marie Prikler <liliana.prikler <at> gmail.com>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Sat, 03 Dec 2022 09:53:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Liliana Marie Prikler <liliana.prikler <at> gmail.com>
To: guix-patches <at> gnu.org
Subject: [PATCH 0/6] Add CommonRoad
Date: Sat, 3 Dec 2022 10:50:23 +0100
Self-driving car go vroom vroom.

Liliana Marie Prikler (6):
  gnu: Add java-antlr4-runtime-python.
  gnu: Add python-omegaconf.
  gnu: python-iso3166: Update to 2.1.1.
  gnu: Add python-commonroad-vehicle-models.
  gnu: Add python-commonroad-io.
  gnu: Add python-commonroad-route-planner.

 gnu/packages/iso-codes.scm  |   4 +-
 gnu/packages/java.scm       |  21 ++++++++
 gnu/packages/python-xyz.scm |  41 ++++++++++++++
 gnu/packages/simulation.scm | 104 ++++++++++++++++++++++++++++++++++++
 4 files changed, 168 insertions(+), 2 deletions(-)


base-commit: 9e9204958d3e0ecfe8fd024d8f06068b84f52ba1
-- 
2.38.1





Information forwarded to guix-patches <at> gnu.org:
bug#59798; Package guix-patches. (Sat, 03 Dec 2022 10:01:02 GMT) Full text and rfc822 format available.

Message #8 received at 59798 <at> debbugs.gnu.org (full text, mbox):

From: Liliana Marie Prikler <liliana.prikler <at> gmail.com>
To: 59798 <at> debbugs.gnu.org
Subject: [PATCH 2/6] gnu: Add python-omegaconf.
Date: Sat, 3 Dec 2022 10:31:42 +0100
* gnu/packages/python-xyz.scm (python-omegaconf): New variable.
---
 gnu/packages/python-xyz.scm | 41 +++++++++++++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 40c3f9c99c..49f551e35a 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -193,6 +193,7 @@ (define-module (gnu packages python-xyz)
   #:use-module (gnu packages image)
   #:use-module (gnu packages image-processing)
   #:use-module (gnu packages imagemagick)
+  #:use-module (gnu packages java)
   #:use-module (gnu packages jupyter)
   #:use-module (gnu packages kerberos)
   #:use-module (gnu packages libevent)
@@ -14353,6 +14354,46 @@ (define-public python-configobj
     (home-page "https://github.com/DiffSK/configobj")
     (license license:bsd-3)))
 
+(define-public python-omegaconf
+  (package
+    (name "python-omegaconf")
+    (version "2.2.3")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/omry/omegaconf")
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (modules '((guix build utils)))
+              (snippet #~(begin
+                           (delete-file-recursively "build_helpers/bin")
+                           (substitute* "build_helpers/build_helpers.py"
+                             (("java") "antlr4")
+                             (("\"-jar\",") "")
+                             (("str\\(build_dir / \"bin\" / \"antlr.*\"\\),") ""))))
+              (sha256
+               (base32
+                "00rw1rkjycn0jdg3jmar6jdxb1pcb21jclm5g1921s9z8f5ii5dh"))))
+    (build-system pyproject-build-system)
+    (arguments
+     (list #:phases
+           #~(modify-phases %standard-phases
+               (add-after 'unpack 'loosen-requirements
+                 (lambda _
+                   (substitute* "requirements/base.txt"
+                     (("antlr4-python3-runtime==")
+                      "antlr4-python3-runtime>=")))))))
+    (propagated-inputs (list java-antlr4-runtime-python
+                             python-pydevd
+                             python-pyyaml))
+    (native-inputs (list icedtea antlr4 python-pytest python-pytest-mock))
+    (home-page "https://github.com/omry/omegaconf")
+    (synopsis "Flexible configuration system")
+    (description "OmegaConf is a hierarchical configuration system and
+supports merging configurations from multiple sources.  It provides a
+consistent API regardless of how the configuration was created.")
+    (license license:bsd-3)))
+
 (define-public python-configargparse
   (package
     (name "python-configargparse")
-- 
2.38.1





Information forwarded to guix-patches <at> gnu.org:
bug#59798; Package guix-patches. (Sat, 03 Dec 2022 10:01:02 GMT) Full text and rfc822 format available.

Message #11 received at 59798 <at> debbugs.gnu.org (full text, mbox):

From: Liliana Marie Prikler <liliana.prikler <at> gmail.com>
To: 59798 <at> debbugs.gnu.org
Subject: [PATCH 1/6] gnu: Add java-antlr4-runtime-python.
Date: Sat, 3 Dec 2022 10:29:50 +0100
* gnu/packages/java.scm (java-antlr4-runtime-python): New variable.
---
 gnu/packages/java.scm | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index f80406cab9..bc6e7057cb 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -49,6 +49,7 @@ (define-module (gnu packages java)
   #:use-module (guix build-system cmake)
   #:use-module (guix build-system gnu)
   #:use-module (guix build-system maven)
+  #:use-module (guix build-system python)
   #:use-module (guix build-system trivial)
   #:use-module (gnu packages)
   #:use-module (gnu packages attr)
@@ -8694,6 +8695,26 @@ (define-public java-antlr4-runtime-cpp
     (description "This package contains the C++ runtime library used with C++
 generated sources by ANTLR.")))
 
+(define-public java-antlr4-runtime-python
+  (package
+    (inherit java-antlr4-runtime)
+    (name "java-antlr4-runtime-python")
+    (outputs '("out"))
+    (build-system python-build-system)
+    (arguments
+     (list
+      #:tests? #f                       ; tests require antlr
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-after 'unpack 'chdir
+            (lambda _
+              (chdir "runtime/Python3"))))))
+    (native-inputs (list pkg-config))
+    (inputs (list `(,util-linux "lib"))) ; libuuid
+    (synopsis "ANTLR Python runtime library")
+    (description "This package contains the Python runtime library used with
+Python generated sources by ANTLR.")))
+
 (define-public antlr4
   (package
     (inherit java-antlr4-runtime)
-- 
2.38.1





Information forwarded to guix-patches <at> gnu.org:
bug#59798; Package guix-patches. (Sat, 03 Dec 2022 10:01:02 GMT) Full text and rfc822 format available.

Message #14 received at 59798 <at> debbugs.gnu.org (full text, mbox):

From: Liliana Marie Prikler <liliana.prikler <at> gmail.com>
To: 59798 <at> debbugs.gnu.org
Subject: [PATCH 4/6] gnu: Add python-commonroad-vehicle-models.
Date: Sat, 3 Dec 2022 10:40:08 +0100
* gnu/packages/simulation.scm (%commonroad-dont-install-license-at-root)
(python-commonroad-vehicle-models): New variables.
---
 gnu/packages/simulation.scm | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/gnu/packages/simulation.scm b/gnu/packages/simulation.scm
index 256e404970..07f1f879f9 100644
--- a/gnu/packages/simulation.scm
+++ b/gnu/packages/simulation.scm
@@ -936,6 +936,36 @@ (define-public python-dolfin-adjoint
 @url{https://firedrakeproject.org,firedrake}.")
     (license license:lgpl3)))
 
+(define %commonroad-dont-install-license-at-root
+  #~(substitute* "setup.py"
+      (("data_files=\\[\\('.', \\['LICENSE.txt'\\]\\)\\],")
+       "")))
+
+(define-public python-commonroad-vehicle-models
+  (package
+    (name "python-commonroad-vehicle-models")
+    (version "3.0.2")
+    (source (origin
+              (method url-fetch)
+              (uri (pypi-uri "commonroad-vehicle-models" version))
+              (sha256
+               (base32
+                "13jg0cys7y4n7rg548w6mxk9g10gd5qxmj4ynrlriczpffqy6kc7"))))
+    (build-system python-build-system)
+    (arguments
+     (list #:phases
+           #~(modify-phases %standard-phases
+               (add-after 'unpack 'fix-setup.py
+                 (lambda _
+                   #$%commonroad-dont-install-license-at-root)))))
+    (propagated-inputs (list python-numpy python-omegaconf))
+    (home-page "https://commonroad.in.tum.de/")
+    (synopsis "CommonRoad vehicle models")
+    (description "This package provides vehicle models used in CommonRoad
+benchmarks.  Varying abstraction levels are used ranging from kinematic single
+track models to multi-body models.")
+    (license license:bsd-3)))
+
 (define-public sumo
   (package
     (name "sumo")
-- 
2.38.1





Information forwarded to guix-patches <at> gnu.org:
bug#59798; Package guix-patches. (Sat, 03 Dec 2022 10:01:03 GMT) Full text and rfc822 format available.

Message #17 received at 59798 <at> debbugs.gnu.org (full text, mbox):

From: Liliana Marie Prikler <liliana.prikler <at> gmail.com>
To: 59798 <at> debbugs.gnu.org
Subject: [PATCH 3/6] gnu: python-iso3166: Update to 2.1.1.
Date: Sat, 3 Dec 2022 10:36:25 +0100
* gnu/packages/iso-codes.scm (python-iso3166): Update to 2.1.1.
---
 gnu/packages/iso-codes.scm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/iso-codes.scm b/gnu/packages/iso-codes.scm
index 95ab9ca44f..d2bace6a3c 100644
--- a/gnu/packages/iso-codes.scm
+++ b/gnu/packages/iso-codes.scm
@@ -109,14 +109,14 @@ (define-public python-iso639
 (define-public python-iso3166
   (package
     (name "python-iso3166")
-    (version "0.9")
+    (version "2.1.1")
     (source
      (origin
        (method url-fetch)
        (uri (pypi-uri "iso3166" version))
        (sha256
         (base32
-         "0hm0xm30sprk1jssmn4cqks0x3nx5fp8r5ypvahcysmmayzrsnjl"))))
+         "068p94gavc8gbmp5a2kw8hi5l551wfzbpmp6z7ll8sx6vnw53mgw"))))
     (build-system python-build-system)
     (home-page "https://github.com/deactivated/python-iso3166")
     (synopsis "Self-contained ISO 3166-1 country definitions")
-- 
2.38.1





Information forwarded to guix-patches <at> gnu.org:
bug#59798; Package guix-patches. (Sat, 03 Dec 2022 10:01:03 GMT) Full text and rfc822 format available.

Message #20 received at 59798 <at> debbugs.gnu.org (full text, mbox):

From: Liliana Marie Prikler <liliana.prikler <at> gmail.com>
To: 59798 <at> debbugs.gnu.org
Subject: [PATCH 6/6] gnu: Add python-commonroad-route-planner.
Date: Sat, 3 Dec 2022 10:43:08 +0100
* gnu/packages/simulation.scm (python-commonroad-route-planner): New variable.
---
 gnu/packages/simulation.scm | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

diff --git a/gnu/packages/simulation.scm b/gnu/packages/simulation.scm
index 7659cf224a..762cfc2b84 100644
--- a/gnu/packages/simulation.scm
+++ b/gnu/packages/simulation.scm
@@ -1007,6 +1007,39 @@ (define-public python-commonroad-io
 and is the basis for other tools of the CommonRoad Framework")
     (license license:bsd-3)))
 
+(define-public python-commonroad-route-planner
+  (package
+    (name "python-commonroad-route-planner")
+    (version "2022.3")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://gitlab.lrz.de/tum-cps/commonroad-route-planner")
+                    (commit version)))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "0xn0l7bzmj56d4mlqacvbl8mdvsffkg2fn2lzfmis5jl4vp99ipf"))))
+    (arguments
+     (list #:phases
+           #~(modify-phases %standard-phases
+               (add-after 'unpack 'fix-setup.py
+                 (lambda _
+                   #$%commonroad-dont-install-license-at-root)))))
+    (build-system python-build-system)
+    (propagated-inputs (list python-commonroad-io
+                             python-matplotlib
+                             python-networkx
+                             python-numpy
+                             python-setuptools
+                             python-shapely))
+    (home-page "https://gitlab.lrz.de/tum-cps/commonroad-route-planner")
+    (synopsis "Route planner for CommonRoad scenarios")
+    (description "This package provides functions for route planning, that is
+finding sequences that lead from a given start lanelet to some goal
+lanelet(s).")
+    (license license:bsd-3)))
+
 (define-public sumo
   (package
     (name "sumo")
-- 
2.38.1





Information forwarded to guix-patches <at> gnu.org:
bug#59798; Package guix-patches. (Sat, 03 Dec 2022 10:01:04 GMT) Full text and rfc822 format available.

Message #23 received at 59798 <at> debbugs.gnu.org (full text, mbox):

From: Liliana Marie Prikler <liliana.prikler <at> gmail.com>
To: 59798 <at> debbugs.gnu.org
Subject: [PATCH 5/6] gnu: Add python-commonroad-io.
Date: Sat, 3 Dec 2022 10:43:01 +0100
* gnu/packages/simulation.scm (python-commonroad-io): New variable.
---
 gnu/packages/simulation.scm | 41 +++++++++++++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)

diff --git a/gnu/packages/simulation.scm b/gnu/packages/simulation.scm
index 07f1f879f9..7659cf224a 100644
--- a/gnu/packages/simulation.scm
+++ b/gnu/packages/simulation.scm
@@ -40,6 +40,7 @@ (define-module (gnu packages simulation)
   #:use-module (gnu packages graphics)
   #:use-module (gnu packages gtk)
   #:use-module (gnu packages image)
+  #:use-module (gnu packages iso-codes)
   #:use-module (gnu packages linux)
   #:use-module (gnu packages m4)
   #:use-module (gnu packages maths)
@@ -47,6 +48,7 @@ (define-module (gnu packages simulation)
   #:use-module (gnu packages multiprecision)
   #:use-module (gnu packages ncurses)
   #:use-module (gnu packages pkg-config)
+  #:use-module (gnu packages protobuf)
   #:use-module (gnu packages python)
   #:use-module (gnu packages python-build)
   #:use-module (gnu packages python-science)
@@ -966,6 +968,45 @@ (define-public python-commonroad-vehicle-models
 track models to multi-body models.")
     (license license:bsd-3)))
 
+(define-public python-commonroad-io
+  (package
+    (name "python-commonroad-io")
+    (version "2022.3")
+    (source (origin
+              (method url-fetch)
+              (uri (pypi-uri "commonroad-io" version))
+              (sha256
+               (base32
+                "1cj9zj567mca8xb8sx9h3nnl2cccv6vh8h73imgpq61cimk9mvas"))))
+    (build-system python-build-system)
+    (arguments
+     (list #:phases
+           #~(modify-phases %standard-phases
+               (add-after 'unpack 'fix-setup.py
+                 (lambda _
+                   #$%commonroad-dont-install-license-at-root)))))
+    (propagated-inputs (list python-commonroad-vehicle-models
+                             python-iso3166
+                             python-lxml
+                             python-matplotlib
+                             python-networkx
+                             python-numpy
+                             python-omegaconf
+                             python-pillow
+                             python-protobuf
+                             python-rtree
+                             python-scipy
+                             python-shapely
+                             python-tqdm))
+    (native-inputs (list python-lxml python-pytest))
+    (home-page "https://commonroad.in.tum.de/")
+    (synopsis "Read, write, and visualize CommonRoad scenarios.")
+    (description "This package provides methods to read, write, and visualize
+CommonRoad scenarios and planning problems.  It can be used as a framework for
+implementing motion planning algorithms to solve CommonRoad Benchmarks
+and is the basis for other tools of the CommonRoad Framework")
+    (license license:bsd-3)))
+
 (define-public sumo
   (package
     (name "sumo")
-- 
2.38.1





Information forwarded to guix-patches <at> gnu.org:
bug#59798; Package guix-patches. (Sun, 08 Jan 2023 14:32:01 GMT) Full text and rfc822 format available.

Message #26 received at 59798 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Liliana Marie Prikler <liliana.prikler <at> gmail.com>
Cc: 59798 <at> debbugs.gnu.org
Subject: Re: bug#59798: [PATCH 0/6] Add CommonRoad
Date: Sun, 08 Jan 2023 15:31:37 +0100
Hi Liliana,

Liliana Marie Prikler <liliana.prikler <at> gmail.com> skribis:

>   gnu: Add java-antlr4-runtime-python.
>   gnu: Add python-omegaconf.
>   gnu: python-iso3166: Update to 2.1.1.
>   gnu: Add python-commonroad-vehicle-models.
>   gnu: Add python-commonroad-io.
>   gnu: Add python-commonroad-route-planner.

Qa.guix is happy and it LGTM as well.  Go for it!

Ludo’.




Information forwarded to guix-patches <at> gnu.org:
bug#59798; Package guix-patches. (Sun, 08 Jan 2023 14:33:01 GMT) Full text and rfc822 format available.

Message #29 received at 59798 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Liliana Marie Prikler <liliana.prikler <at> gmail.com>
Cc: 59798 <at> debbugs.gnu.org
Subject: Re: bug#59798: [PATCH 0/6] Add CommonRoad
Date: Sun, 08 Jan 2023 15:32:05 +0100
Liliana Marie Prikler <liliana.prikler <at> gmail.com> skribis:

> +    (home-page "https://commonroad.in.tum.de/")
> +    (synopsis "Read, write, and visualize CommonRoad scenarios.")
> +    (description "This package provides methods to read, write, and visualize
> +CommonRoad scenarios and planning problems.  It can be used as a framework for
> +implementing motion planning algorithms to solve CommonRoad Benchmarks
> +and is the basis for other tools of the CommonRoad Framework")
                                                               ^
Missing period here.  :-)




Reply sent to Liliana Marie Prikler <liliana.prikler <at> gmail.com>:
You have taken responsibility. (Sun, 08 Jan 2023 16:10:02 GMT) Full text and rfc822 format available.

Notification sent to Liliana Marie Prikler <liliana.prikler <at> gmail.com>:
bug acknowledged by developer. (Sun, 08 Jan 2023 16:10:02 GMT) Full text and rfc822 format available.

Message #34 received at 59798-done <at> debbugs.gnu.org (full text, mbox):

From: Liliana Marie Prikler <liliana.prikler <at> gmail.com>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 59798-done <at> debbugs.gnu.org
Subject: Re: bug#59798: [PATCH 0/6] Add CommonRoad
Date: Sun, 08 Jan 2023 17:09:46 +0100
Am Sonntag, dem 08.01.2023 um 15:32 +0100 schrieb Ludovic Courtès:
> Liliana Marie Prikler <liliana.prikler <at> gmail.com> skribis:
> 
> > +    (home-page "https://commonroad.in.tum.de/")
> > +    (synopsis "Read, write, and visualize CommonRoad scenarios.")
> > +    (description "This package provides methods to read, write,
> > and visualize
> > +CommonRoad scenarios and planning problems.  It can be used as a
> > framework for
> > +implementing motion planning algorithms to solve CommonRoad
> > Benchmarks
> > +and is the basis for other tools of the CommonRoad Framework")
>                                                                ^
> Missing period here.  :-)
Pushed with the missing period inserted.

Thanks

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 06 Feb 2023 12:24:16 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 92 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.