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

Adds a SimpleObjectQuery implementation #17

Merged
merged 3 commits into from
May 10, 2022

Conversation

francocipollone
Copy link
Collaborator

@francocipollone francocipollone commented May 3, 2022

Summary

Addresses #18

Creates a SimpleObjectQuery implementation
This implementation uses extensively maliput's methods like ToLanePosition and FindRoadPositions

Some tests are being added at maliput/maliput_integration_tests#63

Goes on top of #7

@francocipollone francocipollone force-pushed the francocipollone/object_query_simple_impl branch from d57104d to d4444d6 Compare May 4, 2022 16:57
} else if (overlapping_type == api::OverlappingType::kContained) {
MALIPUT_THROW_MESSAGE("Not implemented yet for kContained overlapping type.");
} else {
MALIPUT_THROW_MESSAGE("Not implemented yet for kDisjointed overlapping type.");
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

For kDisjointed implementation, I will simply do the complement of the intersected lanes.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done.

if (overlapping_type == api::OverlappingType::kIntersected) {
return overlapping_lanes;
} else if (overlapping_type == api::OverlappingType::kContained) {
MALIPUT_THROW_MESSAGE("Not implemented yet for kContained overlapping type.");
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This implementation is a bit trickier. To ensure that the entire lane is within a certain region, I should kind of sample the lane and evaluate those points. Given that the geometry of the lane isn't something that can be guaranteed.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Left as technical debt: #22

Copy link
Collaborator

@agalbachicar agalbachicar left a comment

Choose a reason for hiding this comment

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

Take a look at my comments. Good first iteration!

maliput_object/src/base/simple_object_query.cc Outdated Show resolved Hide resolved
maliput_object/src/base/simple_object_query.cc Outdated Show resolved Hide resolved
Copy link
Collaborator

@agalbachicar agalbachicar left a comment

Choose a reason for hiding this comment

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

LGTM

@francocipollone francocipollone merged commit 901cec6 into main May 10, 2022
@francocipollone francocipollone deleted the francocipollone/object_query_simple_impl branch May 10, 2022 12:29
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.

2 participants