{"id":15671586,"url":"https://github.com/winstxnhdw/waypointgenerator","last_synced_at":"2025-05-06T20:27:10.276Z","repository":{"id":108153451,"uuid":"353441917","full_name":"winstxnhdw/WaypointGenerator","owner":"winstxnhdw","description":"Python script to export user-selected or randomly generated waypoints into CSV format.","archived":false,"fork":false,"pushed_at":"2023-07-04T19:13:46.000Z","size":3446,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-31T02:41:10.238Z","etag":null,"topics":["circle","circular","generator","interactive","random","random-generation","user-interface","waypoints","waypoints-creator","waypoints-generator"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/winstxnhdw.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-03-31T17:44:58.000Z","updated_at":"2023-11-21T01:38:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"f369fd56-d2e9-418d-a977-c71dcfc555eb","html_url":"https://github.com/winstxnhdw/WaypointGenerator","commit_stats":{"total_commits":65,"total_committers":2,"mean_commits":32.5,"dds":0.4461538461538461,"last_synced_commit":"f7c6e2248594de6150e04e2c1614e0a5eceb8b19"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/winstxnhdw%2FWaypointGenerator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/winstxnhdw%2FWaypointGenerator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/winstxnhdw%2FWaypointGenerator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/winstxnhdw%2FWaypointGenerator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/winstxnhdw","download_url":"https://codeload.github.com/winstxnhdw/WaypointGenerator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252763369,"owners_count":21800475,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["circle","circular","generator","interactive","random","random-generation","user-interface","waypoints","waypoints-creator","waypoints-generator"],"created_at":"2024-10-03T15:03:43.017Z","updated_at":"2025-05-06T20:27:10.258Z","avatar_url":"https://github.com/winstxnhdw.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Waypoint Generator\n\nA simple python script to export generated waypoints into a CSV file. Waypoints can either be user-selected or randomly selected.\n\n## Table of Contents\n\n- [Installation](#Installation)\n- [Usage](#Usage)\n- [User Selected Waypoints](#User-Selected-Waypoints)\n- [Randomly Generated Waypoints](#Randomly-Generated-Waypoints)\n- [Circular Generated Waypoints](#Circular-Generated-Waypoints)\n- [Additional Information](#Additional-Information)\n\n## Installation\n\nInstall dependencies\n\n```bash\npip install matplotlib\n```\n\nOptional install for circular waypoint generation\n\n```bash\npip install numpy\n```\n\n## Usage\n\n```bash\n# Run the script\n$ python main.py \u003cflag\u003e \u003cvalue\u003e\n```\n\n```yaml\nOptional arguments:\n  -h, --help                  show this help message and exit\n  -r, --random                generates a user-selected amount of random waypoints\n  -c, --click                 generates user-selected waypoint positions   \n  -z, --three-dimensional     allows user to change the z-axis of a created waypoint\n  -s, --scroll-sensitivity    sets the scroll sensitivity of the mouse when setting the z-axis\n```\n\n\u003ePress `Z` to undo a selected waypoint or revert to a previously generated set of waypoints.\n\u003e\n\u003ePress `X` to clear selected waypoints or to generate a new set of randomly generated waypoints.\n\u003e\n\u003ePress `C` to connect the last and first waypoints.\n\u003e\n\u003eScroll `⇧` to increase the z-axis of the waypoint if the `--three-dimensional` flag is used.\n\u003e\n\u003eScroll `⇩` to decrease the z-axis of the waypoint if the `--three-dimensional` flag is used.\n\u003e\n\u003eGenerated waypoints are **only exported at exit**.\n\n## User Selected Waypoints\n\n\n```bash\n$ python main.py -c\n```\n\n\u003cdiv align=\"center\"\u003e\n    \u003cimg src=\"resources/clickgen.gif\" /\u003e\n\u003c/div\u003e\n\n```bash\n$ python main.py -c -z --scroll-sensitivity 1\n```\n\n\u003cdiv align=\"center\"\u003e\n    \u003cimg src=\"resources/clickgen-3d.gif\" /\u003e\n\u003c/div\u003e\n\n## Randomly Generated Waypoints\n\n\u003eThe generated waypoints are passed piecewise through an algorithm that ensures that each line segment never intersects with each other.\n\u003e\n```bash\n$ python main.py -r \u003cnumber-of-waypoints\u003e\n```\n\n\u003cdiv align=\"center\"\u003e\n    \u003cimg src=\"resources/randgen.gif\" /\u003e\n\u003c/div\u003e\n\n## Circular Generated Waypoints\n\n`circle_wp_gen.py` is a CLI script for generating waypoints of a certain radius and smoothness. The user can choose to define smoothness with point density or the angle between every point.\n\n```bash\n$ cd circle\n$ python circle_wp_gen.py -a \u003cx-radius\u003e -b \u003cy-radius\u003e\n```\n\n```yaml\nOptional arguments:\n  -h, --help       show this help message and exit\n  -a, --xradius    radius of an ellipse on the x-axis\n  -b, --yradius    radius of an ellipse on the y-axis \n```\n\n\u003e The `numpy` library is required to run this script.\n\n\u003cdiv align=\"center\"\u003e\n    \u003cimg src=\"resources/circlegen.gif\" /\u003e\n\u003c/div\u003e\n\n## Additional Information\n\nExported waypoints can be imported using the `pandas` or `csv` module.\n\n`pandas` module example\n\n```python\nfrom pandas import read_csv\n\ndf = read_csv('waypoints.csv')\nx = df['X-axis'].values\ny = df['Y-axis'].values\n```\n\n`csv` module example\n\n```python\nimport csv\n\nwith open('waypoints.csv', newline='') as f:\n    rows = list(csv.reader(f, delimiter=','))\n    x, y = [[float(i) for i in row] for row in zip(*rows[1:])]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwinstxnhdw%2Fwaypointgenerator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwinstxnhdw%2Fwaypointgenerator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwinstxnhdw%2Fwaypointgenerator/lists"}