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 support for rendering LaneMarkType.SOLID_DASH_WHITE in EgoViewMapRenderer #9

Merged
merged 1 commit into from
Mar 21, 2022

Conversation

senselessdev1
Copy link
Contributor

PR Summary

Add support for rendering LaneMarkType.SOLID_DASH_WHITE in EgoViewMapRenderer. This is a very rare marking type, but does appear in the AV2 Sensor Dataset.

Testing

In order to ensure this PR works as intended, it is:

  • unit tested.
  • other or not applicable (additional detail/rationale required)

Compliance with Standards

As the author, I certify that this PR conforms to the following standards:

  • Code changes conform to PEP8 and docstrings conform to the Google Python style guide.
  • A well-written summary explains what was done and why it was done.
  • The PR is adequately tested and the testing details and links to external results are included.

@@ -125,15 +125,15 @@ def render_lane_boundary_egoview(
dash_interval_m=DASH_INTERVAL_M,
)

elif (mark_type == LaneMarkType.SOLID_DASH_YELLOW and side == "right") or (
elif (mark_type in [LaneMarkType.SOLID_DASH_WHITE, LaneMarkType.SOLID_DASH_YELLOW] and side == "right") or (
Copy link
Collaborator

Choose a reason for hiding this comment

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

Thanks for the PR, @johnlambert-argo. What are your thoughts on defining the valid line types as:

VALID_MARK_TYPES = set([LaneMarkType.SOLID_DASH_WHITE, LaneMarkType.SOLID_DASH_YELLOW]) (or whichever variable name is suitable)

and then reusing this set on line 128 and 136?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for taking a look Ben. Technically, all the lane types are valid types, but only one will be used for any boundary. We could use an alias like SOLID_DASH_TYPES here, but I think it might be more readable to just list out directly.

@benjaminrwilson benjaminrwilson merged commit 65ba508 into main Mar 21, 2022
@benjaminrwilson benjaminrwilson deleted the rendering-support-solid-dash-white branch March 21, 2022 14:08
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