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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provides a way to execute the DistanceRouter via maliput_query and inspect Routes. #136

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

agalbachicar
Copy link
Collaborator

@agalbachicar agalbachicar commented Dec 15, 2023

馃帀 New feature

Goes hand in hand with: maliput/maliput#619

Summary

Extends maliput_query so it can execute the DistanceRouter and evaluate Route results.

Test it

Try the following in your console once the workspace has been properly built and sourced:

$ maliput_query --maliput_backend=malidrive --xodr_file_path=TShapeRoad.xodr \
> FindRoutes 1_0_1 1 4_0_1 10 true 1000 1000
[INFO] Loading road network using malidrive backend implementation...

[INFO] RoadNetwork loaded successfully.

The Routes from (lane: 1_0_1, lane_pos: (s = 1, r = 0, h = 0)) to (lane: 4_0_1, lane_pos: (s = 1, r = 0, h = 0)) are: 
        - Route(phases: [Phase(index: 0, lane_s_range_tolerance: 0.05, start_positions: [(lane: 1_0_1, lane_pos: (s = 1, r = 0, h = 0)), ], end_positions: [(lane: 1_0_1, lane_pos: (s = 0, r = 0, h = 0)), ], lane_s_ranges: [Range(lane_id: 1_0_1, s_range:[1, 0]), ]), Phase(index: 1, lane_s_range_tolerance: 0.05, start_positions: [(lane: 4_0_1, lane_pos: (s = 8, r = 0, h = 0)), ], end_positions: [(lane: 4_0_1, lane_pos: (s = 1, r = 0, h = 0)), ], lane_s_ranges: [Range(lane_id: 4_0_1, s_range:[8, 1]), ]), ])

Checklist

  • Signed all commits for DCO
  • Added tests
  • Added example and/or tutorial
  • Updated documentation (as needed)
  • Updated migration guide (as needed)
  • Consider updating Python bindings (if it affects the public API)

Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining Signed-off-by messages.

@agalbachicar
Copy link
Collaborator Author

FYI @francocipollone , no need to review yet.

Signed-off-by: Agustin Alba Chicar <ag.albachicar@gmail.com>
Signed-off-by: Agustin Alba Chicar <ag.albachicar@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 馃啎 Inbox
Development

Successfully merging this pull request may close these issues.

None yet

1 participant