Skip to content

Latest commit

 

History

History
64 lines (43 loc) · 1.33 KB

README.md

File metadata and controls

64 lines (43 loc) · 1.33 KB

Maliput CC Examples

This is an exemplar bzlmod package that depends on the bzlmodded maliput family.

Setup

  1. Install VSCode
  2. Fetch the code
$ git clone git@github.com:stonier/maliput_examples.git
  1. Launch the project in the python devcontainer:
$ cd maliput_examples
$ code .

# Reopen in Container or CTRL-SHIFT-P
#   Select the python devcontainer from the subsequent drop-down

# Open up a terminal (if it hasn't already)
(docker) zen@bazel-zen:/workspaces/maliput_examples$

# Switch to the project
$ cd maliput_cc_examples
  1. Build
$ bazel build //...

Usage

Examples

# Extract z-values from the road surface
bazel run :superelevation

Tools

Use https://odrviewer.io/ to view xodr files.

$ bazel run @maliput_malidrive//:xodr_query ${PWD}/resources/onramp.xodr FindLargestGap

Largest Gap between Geometries in the XODR: 0.000500386
Located at RoadHaderId: 91, Geometry Indexes: [5,6]

$ bazel run @maliput_malidrive//:xodr_query -- ${PWD}/resources/GapInElevationNonDrivableRoad.xodr FindLargestElevationGap

Largest Gap between elevation functions in the XODR: 2
Located at RoadHaderId: 1, elevation indexes: [0,1]