ROS Map Editor
A GUI tool for editing ROS map files in PGM format. This tool allows you to view and modify occupancy grid maps used in ROS (Robot Operating System) navigation.
.. image:: ./images/ui_advanced.PNG
Acknowledgements
Features
- Load and display PGM map files used in ROS
- Edit map cells (occupied, free, unknown)
- Zoom in/out for detailed editing
- Minimap for navigation in large maps
- Automatically saves changes on exit
TODO
- ☒ BOX Select
.. figure:: images/usage.gif :alt: ROS Map Editor
ROS Map Editor
- ☒ Line Select
.. figure:: images/usage_line_select.gif :alt: ROS Map Editor
ROS Map Editor
- ☐ Polygon Select
- ☐ Rapidly Loading and Editing
Installation
From PyPI
.. code:: bash
pip install ros-map-editor
From Source
.. code:: bash
git clone https://github.com/sujit-168/ros_map_editor.git -b main cd ros_map_editor pip install -e .
Usage
Command Line
.. code:: bash
ros-map-editor path/to/your/map
or simply:
.. code:: bash
python3 ros_map_editor/main.py path/to/your/map
The tool will automatically look for the corresponding YAML file
(map.yaml) in the same directory.
Interface
~~~~~~~~~
- **Zoom**: Select zoom level from the dropdown menu
- **Color**: Choose what to draw:
- **Occupied**: Mark cells as obstacles (black)
- **Free**: Mark cells as free space (white)
- **Unknown**: Mark cells as unknown (gray)
- **Alternate**: Cycle through states with each click
- **Minimap**: Shows your current position in the map with a red
rectangle
- **Drawing**: Click or drag to modify cells
Map File Format
---------------
The tool works with standard ROS map files:
- A PGM image file containing the occupancy grid
- A YAML file with metadata (resolution, origin, thresholds)
Example YAML file:
.. code:: yaml
image: map.pgm
resolution: 0.050000
origin: [-10.000000, -10.000000, 0.000000]
negate: 0
occupied_thresh: 0.65
free_thresh: 0.196
Requirements
------------
- Python 3.6+
- PyQt5
- Pillow (PIL)
- PyYAML
License
-------
Public domain
Contributing
------------
Contributions are welcome! Please feel free to submit a Pull Request.
Metadata
Release files for ros-map-editor 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ros_map_editor-0.1.2.tar.gz | 11.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ros_map_editor-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 22.6 kB
Release files / ros_map_editor-0.1.2.tar.gz
| Download URL | ros_map_editor-0.1.2.tar.gz |
|---|---|
| Size | 11.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
54098195b0917f00b717038bf445a95d8ec1cf904ef21385fae8166678562160
|
|
BLAKE2b-256 checksum How to use checksums |
1b56ba4c9db0f62fdf26a1146e51ce30bb01b72dc74a2eaa399a5826c607ac7b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 14, 2025.
Transparency logRelease files / ros_map_editor-0.1.2-py3-none-any.whl
| Download URL | ros_map_editor-0.1.2-py3-none-any.whl |
|---|---|
| Size | 11.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2f915ba27a2654b20c825327286f2605c73c841b7866188e167b5c1051496685
|
|
BLAKE2b-256 checksum How to use checksums |
05c26f2fbad2cf99a88447d74949426518197f8eb92b8c23a9ac2f13ac8ab5dd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 14, 2025.
Transparency log