-
Notifications
You must be signed in to change notification settings - Fork 0
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
Adds a SimpleObjectQuery
implementation
#17
Conversation
d4bc441
to
d57104d
Compare
d57104d
to
d4444d6
Compare
} 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."); |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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."); |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
There was a problem hiding this 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!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Summary
Addresses #18
Creates a
SimpleObjectQuery
implementationThis implementation uses extensively maliput's methods like
ToLanePosition
andFindRoadPositions
Some tests are being added at maliput/maliput_integration_tests#63
Goes on top of #7