{"id":35162056,"url":"https://github.com/serboba/occupancy-editor","last_synced_at":"2026-04-29T07:32:09.674Z","repository":{"id":329666684,"uuid":"1120349090","full_name":"serboba/occupancy-editor","owner":"serboba","description":"A web-based occupancy grid editor for robotics. Create, edit, and export occupancy maps with support for ROS, CSV, JSON, and PNG formats. Features include start/goal placement, relative coordinate systems, and grid generation tools.","archived":false,"fork":false,"pushed_at":"2025-12-22T23:28:35.000Z","size":20965,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-22T23:29:07.919Z","etag":null,"topics":["canvas","grid-map","map-editor","occupancy-grid","occupancy-map","path-planning","robotics"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/serboba.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-12-21T02:40:28.000Z","updated_at":"2025-12-22T23:28:39.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/serboba/occupancy-editor","commit_stats":null,"previous_names":["serboba/occupancy-editor"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/serboba/occupancy-editor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serboba%2Foccupancy-editor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serboba%2Foccupancy-editor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serboba%2Foccupancy-editor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serboba%2Foccupancy-editor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/serboba","download_url":"https://codeload.github.com/serboba/occupancy-editor/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serboba%2Foccupancy-editor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32416145,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T06:29:02.080Z","status":"ssl_error","status_checked_at":"2026-04-29T06:29:00.631Z","response_time":110,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["canvas","grid-map","map-editor","occupancy-grid","occupancy-map","path-planning","robotics"],"created_at":"2025-12-28T18:39:38.826Z","updated_at":"2026-04-29T07:32:09.668Z","avatar_url":"https://github.com/serboba.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Occupancy Editor\n\n**https://serboba.github.io/occupancy-editor/**\n\nA modern web-based occupancy grid editor for robotics. Create, edit, and export occupancy maps with support for ROS, CSV, JSON, and PNG formats. Features include start/goal placement, relative coordinate systems, and grid generation tools.\n\n![Occupancy Editor Screenshot](screenshot.png)\n\n## Features\n\n### 🛠️ Editor Tools\n- **Drawing Tools**: Pencil, Rectangle, and Eraser for precise map creation\n- **Start/Goal Points**: Set navigation start and goal positions with visual markers\n- **Interactive Resizing**: Dynamically expand or crop your map in any direction\n- **Recenter View**: Center the viewport on the start point\n- **Relative Coordinates**: Display coordinates relative to the start point (0,0 at start)\n\n### 🎲 Procedural Generation\nBuilt-in tools to generate test environments:\n- **Maze Generator**: Recursive Backtracker algorithm for perfect mazes\n- **Bugtrap Generator**: Creates U-shaped local minima traps for testing\n- **Random Obstacles**: Scatter geometric shapes with rejection sampling\n\n### 📤 Export Formats\n- **ROS**: Standard `.pgm` and `.yaml` files for `nav2_map_server`\n- **CSV**: Grid data with start/goal metadata\n- **JSON**: Complete grid state with metadata\n- **PNG**: Visual representation of the occupancy grid\n- **Start at (0,0)**: Option to export with origin shifted to start point\n\n### ⚡ Technical Highlights\n- **Stack**: React, TypeScript, Vite\n- **Performance**: Canvas-based rendering optimized for large grids\n- **Zero-Install**: Runs entirely in the browser\n- **No Backend**: Fully client-side application\n\n## Getting Started\n\n### Prerequisites\n- Node.js (v18 or higher)\n\n### Installation\n1. Clone the repository:\n   ```bash\n   git clone git@github.com:serboba/occupancy-editor.git\n   cd occupancy-editor\n   ```\n\n2. Install dependencies:\n   ```bash\n   npm install\n   ```\n\n### Running Locally\nStart the development server:\n```bash\nnpm run dev\n```\nOpen [http://localhost:5173](http://localhost:5173) to view the editor.\n\n### Building for Production\n   ```bash\n   npm run build\n   ```\nThe `dist/` directory contains the static files ready for deployment.\n\n## Usage\n\n1. **Draw Your Map**: Use the pencil, rectangle, or eraser tools to create obstacles\n2. **Set Start/Goal**: Click the start/goal buttons and place points on the map\n3. **Adjust View**: Pan (right-click drag), zoom (mouse wheel), or use \"Center on Start\"\n4. **Toggle Coordinates**: Enable \"Use (0,0) at Start\" to see relative coordinates\n5. **Export**: Choose your format (ROS, CSV, JSON, or PNG) and download\n\n## Demo\n\n### Drawing and Editing\n![Drawing Demo](1.gif)\n\n### Export and Features\n![Export Demo](2.gif)\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n\n1. Fork the Project\n2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)\n3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)\n4. Push to the Branch (`git push origin feature/AmazingFeature`)\n5. Open a Pull Request\n\n## License\n\nDistributed under the MIT License. See `LICENSE` for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fserboba%2Foccupancy-editor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fserboba%2Foccupancy-editor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fserboba%2Foccupancy-editor/lists"}