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

Support Points for Specific Rows #200

Merged
merged 16 commits into from
Oct 22, 2024
Merged

Support Points for Specific Rows #200

merged 16 commits into from
Oct 22, 2024

Conversation

LukasBaecker
Copy link
Contributor

@LukasBaecker LukasBaecker commented Oct 16, 2024

Currently the rows of a field are calculated with the first row (the AB-line), the row-spacing and the number of rows. This PR adds the ability to set support points for a single line that does not fit the given row-spacing.

Example:
The created field has a AB-line a row spacing of 50cm and 10 rows. Though, the spacing between the fourth and fifth row is 70cm. By placing the robot on the fifth row and adding a support point for this row the calculation of all 10 rows now includes the support points. The following rows are based on the position of the fifth row but with the given row-spacing of 50cm.

  • adding support point dialog

  • store support points in field

  • calcultate rows with support points

  • calculate boundary based on these novel rows

  • reset a support point for a specific row that already has a support point

  • write tests

  • test on a real system

@LukasBaecker LukasBaecker modified the milestones: 0.4.0, 0.5.0 Oct 16, 2024
@LukasBaecker LukasBaecker added the enhancement New feature or request label Oct 16, 2024
Copy link
Contributor Author

@LukasBaecker LukasBaecker left a comment

Choose a reason for hiding this comment

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

checked and cleaned up

@LukasBaecker
Copy link
Contributor Author

This PR need to be tested on a real system but beside that everything is ready to review.

field_friend/automations/field.py Outdated Show resolved Hide resolved
field_friend/automations/field.py Outdated Show resolved Hide resolved
field_friend/automations/field.py Outdated Show resolved Hide resolved
field_friend/interface/components/support_point_dialog.py Outdated Show resolved Hide resolved
@pascalzauberzeug
Copy link
Contributor

@LukasBaecker I took the liberty to make RowSupportPoint a child of GeoPoint and rework the tests a bit. Please review my changes

Copy link
Contributor Author

@LukasBaecker LukasBaecker left a comment

Choose a reason for hiding this comment

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

reviewed

@LukasBaecker LukasBaecker dismissed pascalzauberzeug’s stale review October 22, 2024 08:33

all changes reviewed and applied

@pascalzauberzeug
Copy link
Contributor

Tested successfully on F13, will merge now

@pascalzauberzeug pascalzauberzeug marked this pull request as ready for review October 22, 2024 08:55
@pascalzauberzeug pascalzauberzeug merged commit 75337fa into main Oct 22, 2024
1 check passed
@pascalzauberzeug pascalzauberzeug deleted the row_support_points branch October 22, 2024 08:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants