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

CovPlan #170

Open
12 of 32 tasks
sanjeevrs2000 opened this issue Mar 25, 2024 · 10 comments
Open
12 of 32 tasks

CovPlan #170

sanjeevrs2000 opened this issue Mar 25, 2024 · 10 comments

Comments

@sanjeevrs2000
Copy link

sanjeevrs2000 commented Mar 25, 2024

Submitting Author: Name (@sanjeevrs2000)
All current maintainers: (@sanjeevrs2000)
Package Name: CovPlan
One-Line Description of Package: A Python package that generates guidance trajectories for field coverage using a single robot.
Repository Link: https://github.com/sanjeevrs2000/covplan
Version submitted: 0.1.0
Editor: TBD
Reviewer 1: TBD
Reviewer 2: TBD
Archive: TBD
JOSS DOI: TBD
Version accepted: TBD
Date accepted (month/day/year): TBD


Code of Conduct & Commitment to Maintain Package

Description

  • Include a brief paragraph describing what your package does:
    This Python package generates a guidance trajectory for complete coverage in 2 dimensions. It can be used for operations where complete coverage of an Area of Interest (AoI) is required for applications in field robotics. If the area of interest is large or if it has any forbidden regions or obstacles, it could be divided into smaller sections and covered sequentially where the sequence is optimized using a travelling salesman problem (TSP) solver to minimize the overall distance. It also uses Dubins curves to generate continuous and feasible trajectories.

Scope

  • Please indicate which category or categories.
    Check out our package scope page to learn more about our
    scope. (If you are unsure of which category you fit, we suggest you make a pre-submission inquiry):

    • Data retrieval
    • Data extraction
    • Data processing/munging
    • Data deposition
    • Data validation and testing
    • Data visualization1
    • Workflow automation
    • Citation management and bibliometrics
    • Scientific software wrappers
    • Database interoperability

Domain Specific

  • Geospatial
  • Education

Community Partnerships

If your package is associated with an
existing community please check below:

  • For all submissions, explain how the and why the package falls under the categories you indicated above. In your explanation, please address the following points (briefly, 1-2 sentences for each):

It can be classified under applications in AI and robotics. Unsure which of the above categories it comes under but were encouraged to make a submission in the presubmission enquiry. Researchers in coverage path planning might find it useful for developing new algorithms or comparing it against their own methods. It has potential applications in field robotics where coverage of an area is required for monitoring, information gathering tasks.

  • Are there other Python packages that accomplish the same thing? If so, how does yours differ?
    Fields2Cover is a similar implementation although it is in C++. Our work also considers more complex areas for coverage such as ones with forbidden regions and solves it by using a divide and conquer approach. It is also not limited to agriculture related applications and can be adapted for other uses by modifying the parameters

  • If you made a pre-submission enquiry, please paste the link to the corresponding issue, forum post, or other discussion, or @tag the editor you contacted:
    The presubmission enquiry can be found here.

Technical checks

For details about the pyOpenSci packaging requirements, see our packaging guide. Confirm each of the following by checking the box. This package:

  • does not violate the Terms of Service of any service it interacts with.
  • uses an OSI approved license.
  • contains a README with instructions for installing the development version.
  • includes documentation with examples for all functions.
  • contains a tutorial with examples of its essential functions and uses.
  • has a test suite.
  • has continuous integration setup, such as GitHub Actions CircleCI, and/or others.

Publication Options

JOSS Checks
  • The package has an obvious research application according to JOSS's definition in their submission requirements. Be aware that completing the pyOpenSci review process does not guarantee acceptance to JOSS. Be sure to read their submission requirements (linked above) if you are interested in submitting to JOSS.
    • The package is not a "minor utility" as defined by JOSS's submission requirements: "Minor ‘utility’ packages, including ‘thin’ API clients, are not acceptable." pyOpenSci welcomes these packages under "Data Retrieval", but JOSS has slightly different criteria.
  • The package contains a paper.md matching JOSS's requirements with a high-level description in the package root or in inst/.
  • The package is deposited in a long-term repository with the DOI:

Note: JOSS accepts our review as theirs. You will NOT need to go through another full review. JOSS will only review your paper.md file. Be sure to link to this pyOpenSci issue when a JOSS issue is opened for your package. Also be sure to tell the JOSS editor that this is a pyOpenSci reviewed package once you reach this step.

Are you OK with Reviewers Submitting Issues and/or pull requests to your Repo Directly?

This option will allow reviewers to open smaller issues that can then be linked to PR's rather than submitting a more dense text based review. It will also allow you to demonstrate addressing the issue via PR links.

  • Yes I am OK with reviewers submitting requested changes as issues to my repo. Reviewers will then link to the issues in their submitted review.

Confirm each of the following by checking the box.

  • I have read the author guide.
  • I expect to maintain this package for at least 2 years and can help find a replacement for the maintainer (team) if needed.

Please fill out our survey

P.S. Have feedback/comments about our review process? Leave a comment here

Editor and Review Templates

The editor template can be found here.

The review template can be found here.

Footnotes

  1. Please fill out a pre-submission inquiry before submitting a data visualization package.

@isabelizimm
Copy link
Contributor

Welcome to pyOpenSci--we are so glad you are here! Thank you for this submission, just letting you know we have seen this issue and will get back to you with pre-review checks shortly. 🌻

@Gonzalo-Mier
Copy link

Gonzalo-Mier commented Apr 5, 2024

Hi @sanjeevrs2000, the CovPlan seems a cool repo.

I've found the mention to the Fields2Cover project and I would add some info to your claim:

Fields2Cover is a similar implementation although it is in C++.

Fields2Cover provides is implemented in C++, and provides a Python interface using swig

Our work also considers more complex areas for coverage such as ones with forbidden regions and solves it by using a divide and conquer approach.

This has been included in fields2cover v2 (released this week).

It is also not limited to agriculture related applications and can be adapted for other uses by modifying the parameters

Same as Fields2Cover. The focus is agriculture, but it is not limited.

Other Python package that implement coverage path planners: https://github.com/RuslanAgishev/motion_planning

Btw, congrats for the @pyOpenSci project to their authors!

@sanjeevrs2000
Copy link
Author

Hi @Gonzalo-Mier, thanks a lot for the info. We were not aware of these recent developments with Fields2Cover. Keep up the great work with your repo!

@Batalex
Copy link
Contributor

Batalex commented Apr 9, 2024

Hello @sanjeevrs2000,
Thank you for your patience. You may not know, but we now implement a 3-month rotation for the editor-in-chief role. I'll get started with the EiC checks right now.

@Batalex
Copy link
Contributor

Batalex commented Apr 9, 2024

Hi @Gonzalo-Mier, welcome to pyOpenSci!

Thanks for the info. As @NickleDave reminded me, Fields2Cover was mentioned in the presubmission inquiry a few months ago.
As we already decided that CovPlan was in scope, we most likely will proceed with the review.

Now for the shameless part 😁
Though we do try to avoid duplication of efforts (hence our question on similar packages), we do not position ourselves as an authority on which package should be the reference. If anything, I would love for this GH issue to be the starting point of a collaborative effort that would benefit everyone.
If you are interested and available, please let me know!

@Batalex
Copy link
Contributor

Batalex commented Apr 9, 2024

Editor in Chief checks

Hi there! Thank you for submitting your package for pyOpenSci review. Below are the basic checks that your package needs to pass to begin our review. If some of these are missing, we will ask you to work on them before the review process begins.

Please check our Python packaging guide for more information on the elements
below.

  • Installation The package can be installed from a community repository such as PyPI (preferred), and/or a community channel on conda (e.g. conda-forge, bioconda).
    • The package imports properly into a standard Python environment import package.
  • Fit The package meets criteria for fit and overlap.
  • Documentation The package has sufficient online documentation to allow us to evaluate package function and scope without installing the package. This includes:
    • User-facing documentation that overviews how to install and start using the package.
    • Short tutorials that help a user understand how to use the package and what it can do for them.
    • API documentation (documentation for your code's functions, classes, methods and attributes): this includes clearly written docstrings with variables defined using a standard docstring format.
      Please add some docstrings to document user-facing functions.
  • Core GitHub repository Files
    • README The package has a README.md file with clear explanation of what the package does, instructions on how to install it, and a link to development instructions.
      I think we could use some more structure in the readme. "Getting started" should be like a 30 sec tutorial, not the description and even less the reference paper. See below for a suggestion
    • Contributing File The package has a CONTRIBUTING.md file that details how to install and contribute to the package.
    • Code of Conduct The package has a CODE_OF_CONDUCT.md file.
    • License The package has an OSI approved license.
      NOTE: We prefer that you have development instructions in your documentation too.
  • Issue Submission Documentation All of the information is filled out in the YAML header of the issue (located at the top of the issue template).
  • Automated tests Package has a testing suite and is tested via a Continuous Integration service.
    No tests at the moment
  • Repository The repository link resolves correctly.
  • Package overlap The package doesn't entirely overlap with the functionality of other packages that have already been submitted to pyOpenSci.
  • Archive (JOSS only, may be post-review): The repository DOI resolves correctly.
  • Version (JOSS only, may be post-review): Does the release version given match the GitHub release (v1.0.0)?

  • Initial onboarding survey was filled out
    We appreciate each maintainer of the package filling out this survey individually. 🙌
    Thank you in advance for setting aside five to ten minutes to do this. It truly helps our organization. 🙌


Editor comments

As of now, there are too many missing things to get started with the review. Some are really trivial (like adding a CONTRIBUTING.md or restructuring the readme using the suggestion below), others require additional work.

I encourage you to go through our Python Package Guide to get familiar with:

  • Python docstrings, and why you should use them to document your code
  • Unit testing to avoid regressions in your code
  • How to structure your package files

README.md suggested structure

Expand
# CovPlan

A Python package for coverage path planning.


[![MIT License](https://img.shields.io/badge/License-MIT-green.svg)](https://choosealicense.com/licenses/mit/)


A brief description of what this project does and who it's for. 

Link to paper + full citation

> Hameed IA, Bochtis D, Sørensen CA. An Optimized Field Coverage Planning Approach for Navigation of Agricultural Robots in Fields Involving Obstacle Areas. International Journal of Advanced Robotic Systems. 2013;10(5). doi:10.5772/56248

## Installation

Install `covplan` with pip

```shell
pip install covplan
```
    
## Getting started

The 30 seconds tutorial.

```py
import antigravity
```

## Documentation

[Documentation](https://linktodocumentation)

## Contributing

Contributions are always welcome!

See `contributing.md` for ways to get started.

Please adhere to this project's `code of conduct`.

@Gonzalo-Mier
Copy link

Hi @Batalex,

My comment was more related with correct info related to the project than giving reasons to dismiss the CovPlan. I would love to see it progress. Answering your comments:

Though we do try to avoid duplication of efforts (hence our question on similar packages), we do not position ourselves as an authority on which package should be the reference.

Nor my intention either. More, better!

As we already decided that CovPlan was in scope, we most likely will proceed with the review.

Of course, it is certainly a nice addition to the open-source ecosystem and @sanjeevrs2000 is doing an awesome job.

If anything, I would love for this GH issue to be the starting point of a collaborative effort that would benefit everyone.
If you are interested and available, please let me know!

I don't have too much free time, but I can help if needed. Please, contact me for any collaboration :)

@sanjeevrs2000
Copy link
Author

Hi @Gonzalo-Mier, thanks again for your support. I am not a software developer myself so I have limited time as well. Will be happy to collaborate if required.

I don't have too much free time, but I can help if needed. Please, contact me for any collaboration :)

@Batalex, if it is decided that it is under scope for a review, we shall try to meet these requirements as soon as possible.

Some are really trivial (like adding a CONTRIBUTING.md or restructuring the readme using the suggestion below), others require additional work

@Batalex Batalex self-assigned this May 20, 2024
@sanjeevrs2000
Copy link
Author

Hi @Batalex,
I've added tests and updated the documentation as per the recommendations. Hopefully, this is enough to get started with the review now. Let me know if you find any other areas for improvement.

@Batalex
Copy link
Contributor

Batalex commented May 25, 2024

Hi @sanjeevrs2000,
Thank you for your work on the package. There are still some things missing before I can give the go for the review.

Documentation

Since you are using mkdocs, I advise you to take a look at https://mkdocstrings.github.io/. It is a plugin that automatically picks up the docstrings to embed them in your documentation. The reason why I ask you to do that is because it will help you keep your code base and your documentation in sync.
Right now, the API reference looks like it's been written manually, and it is a problem. See, the code base is already out of sync with the documentation, and this issue will only continue to grow with the code base and the number of contributors to the project.

I also noticed a lack of consistency in the docstrings formats: some use Numpy/Google convention, others use the classic Python one I linked in my previous post. The function linked above uses neither.

You might want to explicitly list the development dependencies one needs to work on the project. It happens that I am quite familiar with mkdocs so I already know how to build the documentations, but that most likely not the case for everyone.
To do so, you may:

  • add mkdocs (and mkdocstrings 👼 ) to the pyproject.toml file using the optional deps field (since you are using the setuptools build backend).
  • document somewhere how to build the docs (contributing.md)

Tests and automation

I am glad to see that you added tests, but we need to go one step further. Because tests are only as useful as their consistent runs, we need to integrate them into GitHub.
Even before that, same as the previous section, it is a good idea to include a mention of how to run the tests in your contributing.md file. Same as above, you will need to explicitly state your test dependencies if you have any.

Back to GitHub, the aim of the continuous integration (CI), is to make sure that you do not introduce any regression to the code base, using the tests you wrote. By making GitHub run your tests on every pull request (and I advise you to use this workflow from now on even if you are the sole contributor), you can merge new additions to the code base more confidently.

We wrote a guide for that, this is a great starting point.

They are a few more things we could work on, but I don't want to move the goal posts further with every interaction, so I'll leave it there for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: on-hold-or-maintainer-unresponsive
Development

No branches or pull requests

5 participants