{"id":28602893,"url":"https://github.com/lucaspar/fuzzy_bot_sim","last_synced_at":"2026-04-29T19:34:34.788Z","repository":{"id":85235231,"uuid":"93442022","full_name":"lucaspar/fuzzy_bot_sim","owner":"lucaspar","description":"Fuzzy Logic Robot Simulator","archived":false,"fork":false,"pushed_at":"2018-10-05T20:20:45.000Z","size":1472,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-11T16:28:20.769Z","etag":null,"topics":["fuzzy-logic","robot","simulation","threejs","webgl"],"latest_commit_sha":null,"homepage":"https://lucaspar.com/fuzzy_bot.html","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lucaspar.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2017-06-05T20:06:20.000Z","updated_at":"2023-11-03T00:36:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"d2b4481a-7095-4d35-a976-1c49b30418e0","html_url":"https://github.com/lucaspar/fuzzy_bot_sim","commit_stats":{"total_commits":15,"total_committers":1,"mean_commits":15.0,"dds":0.0,"last_synced_commit":"c7bf99bae812c2e69d997a4768189894882852a9"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lucaspar/fuzzy_bot_sim","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucaspar%2Ffuzzy_bot_sim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucaspar%2Ffuzzy_bot_sim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucaspar%2Ffuzzy_bot_sim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucaspar%2Ffuzzy_bot_sim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lucaspar","download_url":"https://codeload.github.com/lucaspar/fuzzy_bot_sim/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucaspar%2Ffuzzy_bot_sim/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32441332,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T18:12:22.909Z","status":"ssl_error","status_checked_at":"2026-04-29T18:11:33.322Z","response_time":110,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["fuzzy-logic","robot","simulation","threejs","webgl"],"created_at":"2025-06-11T16:12:35.995Z","updated_at":"2026-04-29T19:34:34.771Z","avatar_url":"https://github.com/lucaspar.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Fuzzy logic controlled robot simulation\n\n### [Demo](https://lucaspar.com/fuzzy_bot.html)\n\n\u003e This is a simulation of a robot controlled by **fuzzy logic**.\nIt is built in JavaScript and runs in modern browsers, ideally in a machine with a graphics accelerator.\n\n\n### Project dependencies\n\n* [**jQuery**](https://jquery.com/) - HTML manipulation and event handling\n* [**Three.js**](https://threejs.org/) - JavaScript 3D library\n* [**Physijs**](https://chandlerprall.github.io/Physijs/) - Physics plugin for Three.js\n* [**Stats.js**](https://github.com/mrdoob/stats.js/) - JavaScript performance monitor\n* [**Simplex-noise**](http://staffwww.itn.liu.se/~stegu/simplexnoise/simplexnoise.pdf) - Noise generation algorithm\n\n\n### Running local demo\n\n##### Serve src/ directory\n```bash\nnpm i -g static-server\nstatic-server -p 1234 src/\n# open localhost:1234\n```\n\n\n### Overview\n\n* #### Scene components `scene.js`\n\n    Method              | Description\n    --------------------|-------------------------------------------------------\n    setRenderer()       | Sets scene renderer\n    setScene()          | Sets overall scene and gravity\n    setLights()         | Creates lighting components\n    setCameras()        | Creates cameras from `views.json` description\n    createGround()      | Creates a solid floor and texture\n    createObstacles()   | Creates map and obstacles of random sizes and positions\n    createBot()         | Creates a robot with body, wheels, physics, and controls\n    createSensors()     | Creates and initializes sensors and visualization\n\n* #### Dynamics and system evolution `dynamics.js`\n\n    Method              | Description\n    --------------------|-------------------------------------------------------\n    update()            | Simulation update loop\n    updateSensors()     | Simulates sensors' operations and their projections\n    updateControl()     | Bridge between controller and bot actuators\n    updateText()        | UI texts update loop\n    updateWindowSize()  | Updates canvas on window resize\n\n* #### Bot controls `controls.js`, `fuzzy.js`\n\n    Method              | Description\n    --------------------|-------------------------------------------------------\n    autoDrive()         | Drives the bot based on fuzzy rules and speed\n    fuzzy()             | Applies the set of fuzzy rules from sensor readings\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucaspar%2Ffuzzy_bot_sim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flucaspar%2Ffuzzy_bot_sim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucaspar%2Ffuzzy_bot_sim/lists"}