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

Robot distance #14

Merged
merged 4 commits into from
Mar 18, 2024
Merged

Robot distance #14

merged 4 commits into from
Mar 18, 2024

Conversation

JWillegers
Copy link

If the distance from the robot to another points needs to be measured it should be from the edge of the robot and not the center. Fixed this in this pull request

@JWillegers JWillegers self-assigned this Dec 11, 2023
/**
* Maximum radius of the robot in meters
*/
private final double radius = 0.09;
Copy link
Member

Choose a reason for hiding this comment

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

Is there are reason that this variable is hard-coded? Some robots are wider than others (this information should be known by SSL-vision).

In the case that you're okay with the error I recommend making it a proper constant:

Suggested change
private final double radius = 0.09;
public static final double radius = 0.09;

This makes sure that you do not have to pass each robot object to all of the funtions

Copy link
Member

@supertom01 supertom01 left a comment

Choose a reason for hiding this comment

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

LGTM

@JWillegers JWillegers merged commit b8d5e4d into main Mar 18, 2024
1 check passed
@JWillegers JWillegers deleted the robot-distance branch July 10, 2024 14:51
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