Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing argument in RoutingGraph.routingRelation python interface #349

Conversation

johannes-fischer
Copy link
Contributor

This MR includes a missing optional argument in the python interface.

This code currently fails, which is fixed by this MR:

#!/usr/bin/env python
import os
import lanelet2
from lanelet2.projection import UtmProjector

example_file = os.path.join(os.path.dirname(os.path.abspath(
    __file__)), "../../lanelet2_maps/res/mapping_example.osm")

projector = UtmProjector(lanelet2.io.Origin(49, 8.4))
map = lanelet2.io.load(example_file, projector)
traffic_rules = lanelet2.traffic_rules.create(lanelet2.traffic_rules.Locations.Germany,  lanelet2.traffic_rules.Participants.Vehicle)
graph = lanelet2.routing.RoutingGraph(map, traffic_rules)
lanelet = map.laneletLayer[4984315]
toLanelet = graph.following(lanelet)[0]
print(graph.routingRelation(lanelet, toLanelet))

@immel-f
Copy link
Contributor

immel-f commented Jul 25, 2024

Please merge the CI fix from master into these PR branches so the CI pipeline can run successfully (which is needed for merging) 😄

@poggenhans poggenhans merged commit 507033b into fzi-forschungszentrum-informatik:master Jul 27, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants