{"id":15665089,"url":"https://github.com/cansik/sweep-processing","last_synced_at":"2025-05-06T19:42:05.332Z","repository":{"id":79718024,"uuid":"98173246","full_name":"cansik/sweep-processing","owner":"cansik","description":"Sweep Library for Processing","archived":false,"fork":false,"pushed_at":"2018-01-25T11:56:52.000Z","size":6095,"stargazers_count":6,"open_issues_count":1,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-31T02:12:56.272Z","etag":null,"topics":["hardware","library","lidar","processing","sensor","sweep"],"latest_commit_sha":null,"homepage":null,"language":"Java","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/cansik.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}},"created_at":"2017-07-24T09:26:03.000Z","updated_at":"2024-12-27T23:18:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"fb1aba51-0503-4f25-9008-93fadb4bc4cf","html_url":"https://github.com/cansik/sweep-processing","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cansik%2Fsweep-processing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cansik%2Fsweep-processing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cansik%2Fsweep-processing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cansik%2Fsweep-processing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cansik","download_url":"https://codeload.github.com/cansik/sweep-processing/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252755495,"owners_count":21799326,"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":["hardware","library","lidar","processing","sensor","sweep"],"created_at":"2024-10-03T13:44:57.119Z","updated_at":"2025-05-06T19:42:05.306Z","avatar_url":"https://github.com/cansik.png","language":"Java","funding_links":[],"categories":["Libraries"],"sub_categories":["Contributions"],"readme":"# Sweep for Processing [![Build Status](https://travis-ci.org/cansik/sweep-processing.svg?branch=master)](https://travis-ci.org/cansik/sweep-processing) [![Build status](https://ci.appveyor.com/api/projects/status/2w9xm1dbafbi7xc0?svg=true)](https://ci.appveyor.com/project/cansik/sweep-processing) [![codebeat badge](https://codebeat.co/badges/3d8634b7-84eb-410c-b92b-24bf6875d8ef)](https://codebeat.co/projects/github-com-cansik-sweep-processing-master)\nUse the Scanse Sweep LIDAR with processing.\n\n## Introduction\n\n**Sweep for Processing** is a port of the **[Scanse](http://scanse.io/) [Sweep LIDAR](https://github.com/scanse/sweep-sdk)** library for processing. It gives you full access to the C API and adds some processing specfic methods to it.\n\nCurrently it is still under development and **ONLY** tested on MacOS.\n\n![LIDAR Example](readme/lidar-example.png)\n\n*Example of the LIDAR with FX2D*\n\n## Example\n### Basic\nTo get sample data from the LIDAR sensor, you have to create a new `SweepSensor` and call the `start` method. The start method needs the path to the Sweep COM port.\n\n```java\nimport ch.bildspur.sweep.*;\n\nSweepSensor sweep;\n\nvoid setup()\n{\n  size(600, 300, FX2D);\n\n  sweep = new SweepSensor(this);\n  sweep.start(\"/dev/tty.usbserial-DO004HM4\");\n}\n```\n\nIn draw you then just have to read the new samples from the device.\n\n```java\nvoid draw()\n{\n\t// do your stuff\n\t\n\t// read samples\n\tList\u003cSensorSample\u003e samples = sweep.getSamples()\n\t\n\t// do drawing\n}\n```\n\nIt is recommended to save the reference to the list of samples in a own variable and only use `getSamples()` once in a draw loop. Otherwise it is not guaranteed, that the samples are from the same scan (Concurrency). \n\n*Based on [BasicExample](examples/BasicExample/BasicExample.pde)*\n\n### Asynchronous\nWith version `0.3` it is possible to start the device asynchronous and set the set the **motor speed** and **sample rate** through the constructor (thanks to [@felixerdy](https://github.com/felixerdy)).\n\n\n```java\nimport ch.bildspur.sweep.*;\n\nSweepSensor sweep;\n\nvoid setup()\n{\n  size(600, 300, FX2D);\n\n  sweep = new SweepSensor(this);\n  sweep.startAsync(\"/dev/tty.usbserial-DO004HM4\", 5, 500);\n}\n```\n\nIt is recommended to use this method if the processing main thread should not be blocked by the start of the sweep device.\n\n*Based on [AsyncExample](examples/AsyncExample/AsyncExample.pde)*\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcansik%2Fsweep-processing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcansik%2Fsweep-processing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcansik%2Fsweep-processing/lists"}