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

Change comparison oparator in isInLanelet #38

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gmajrobotec
Copy link
Collaborator

@gmajrobotec gmajrobotec commented Sep 17, 2024

Description

In traffic_simulator::pose::isInLanelet comparison between distances and tolerance should be done with "<=" operator.

Abstract

In traffic_simulator::pose::isInLanelet to compare distance_to_start_lanelet_pose and distance_to_end_lanelet_pose with tolerance operator "<" is used. This can possibly lead to wrong result when tolerance is 0 and one of the measured distances is also 0, which means pose is in lanelet (start or end of it). If this is not expected behaviour operator "<=" should be used.

Details

I've changed operator "<" to "<=" in traffic_simulator::pose::isInLanelet function.

Destructive Changes

--

Known Limitations

--

@gmajrobotec gmajrobotec self-assigned this Sep 17, 2024
Copy link

@robomic robomic left a comment

Choose a reason for hiding this comment

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

All good. Have you searched for similar issues in the repository? If so, you could include a notice in the PR description

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