Skip to content

Commit

Permalink
aligned lanelet maps, add crossing map
Browse files Browse the repository at this point in the history
Signed-off-by: Mamoru Sobue <mamoru.sobue@tier4.jp>
  • Loading branch information
soblin committed Mar 5, 2025
1 parent c5bfb49 commit 25d9d5a
Show file tree
Hide file tree
Showing 7 changed files with 16,321 additions and 720 deletions.
1 change: 1 addition & 0 deletions common/autoware_lanelet2_utility/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,6 @@ ament_auto_package(INSTALL_TO_SHARE

install(PROGRAMS
scripts/lanelet_anonymizer.py
scripts/lanelet_id_aligner.py
DESTINATION lib/${PROJECT_NAME}
)
18 changes: 16 additions & 2 deletions common/autoware_lanelet2_utility/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,12 +156,26 @@ std::vector<T> forEachMatchInMultiMap(const MapT& map, const KeyT& key, Func&& f
}
```
## How to craft test map
## Test maps
| Map name | Origin point id | Image |
| --------------------------- | --------------- | ----- |
| `road_shoulder/highway.osm` | `1` | |
| `road_shoulder/pudo.osm` | `140` | |

Check warning on line 164 in common/autoware_lanelet2_utility/README.md

View workflow job for this annotation

GitHub Actions / spell-check-differential

Unknown word (pudo)
| `intersection/crossing.osm` | `1867` | |
### How to craft test map
On the VMB, create the map in local projector(or convert it to local projector from MGRS projector) and save the file as `<input_map.osm>`. Next, select the point to use as (0.0, 0.0) and pass its `<ID>` and run
```bash
ros2 run autoware_lanelet2_utility lanelet_anonymizer.py <input_map.osm> <output_map.osm> <ID>
```

Then the coordinate of the specified point is (0, 0) on the loaded map
Then the coordinate of the specified point is (0, 0) on the loaded map.

By applying `lanelet_id_aligner.py`, the primitive ids are aligned to start from 1 and increase one-by-one.

```bash
ros2 run autoware_lanelet2_utility lanelet_id_aligner.py <input_map.osm>
```
Loading

0 comments on commit 25d9d5a

Please sign in to comment.