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

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

Merged
merged 3 commits into from
Jul 2, 2024

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>
@agalbachicar agalbachicar force-pushed the agalbachicar/#543_routing_part_four branch from 24b3d7c to 63f9df2 Compare December 19, 2023 19:11
@agalbachicar agalbachicar marked this pull request as ready for review June 24, 2024 09:40
@agalbachicar
Copy link
Collaborator Author

It's ready for review @francocipollone

Copy link
Collaborator

@francocipollone francocipollone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@agalbachicar agalbachicar merged commit b7f7aa0 into main Jul 2, 2024
3 checks passed
@agalbachicar agalbachicar deleted the agalbachicar/#543_routing_part_four branch July 2, 2024 06:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants