Repository navigation
Add always_turn_between_swaths parameter - #168
alireza-moayyedi wants to merge 1 commit into
Conversation
Insufficient dataNot enough activity yet to make a reliable assessment. This is an automated analysis by AgentScan |
Signed-off-by: Alireza Moayyedi <[email protected]>
3d3ba55 to
7e1eb14
Compare
|
Thanks for the PR. This one is on our side: Fields2Cover v2.1.1 already plans these connections properly, following the detour and rounding its corners, but this package still uses its own older connection code, and that is what produces the sharp corners. When I closed #149 I thought #162 had already switched it over, but it had not. I am preparing a PR that does, together with a few similar leftovers from #162. On your test route it gives the same turn as your flag, and on a real detour it keeps to the route instead of cutting across. I will link it here once it has been through the same scenario checks as #162. If you want to try it on your fields before that, the change is in |
|
@alireza-moayyedi is this still needed from #171? |
|
@SteveMacenski @u33549 I did some tests and here for instance you can see the different cases that I have run on Jazzy v2: before updating to fields2cover v2.1.1 and without enforcing turns using the parameter introduced in this PR: Before updating to fields2cover v2.1.1 but with enforcing turns using the parameter: Using fields2cover v2.1.1 which is now on Jazzy v2 branch: Although v2.1.1 it fixes the oiriginal problem, one thing that I find odd is that now on the lower left corner, the path is planned too close to the field boundary. |
|
I'm aware of the issue you mentioned; it's essentially an upstream bug in Fields2Cover. I worked around it using the route-fix branch from this fork, as it hasn't been upstreamed to the main package yet. |
|
@u33549 should we do this here or fix it in F2C? |
|
This should be fixed in F2C. I hope it will be included in V2.2. |
|
@alireza-moayyedi could you share your field and the parameters you used, so I can look into this properly? I'd rather check your exact case than reason about it in theory. The field polygon and the goal/server parameters (headland width, robot_width, operation_width, min_turning_radius, path mode) would be enough. |
|
@u33549 Just to be clear, I do not have one specific field. My robot is supposed to work in different shapes. And I see this happening often with trapezoidal fields in the corners. But for the sake of traceability, I vibecoded this python script which shows the exact field and settings I was using to report the abovementioned tests. You can just run it with python3. Additionally, I have also added a debug publisher for the exclusion zone polygon because that I think also should happen differently. Currently the turns are too close to the exclusion zone:
|
|
Thank you for the information; I will try to conduct some tests as soon as possible and get feedback. |





Hi,
For my specific controller, I need paths with no sharp turns. Right now, that is not guaranteed. So I thought having a simple parameter enforcing that would be useful in such situations. Default is false so should not break any existing behavior.
For the test added below this would be the difference:
