Skip to content

Commit

Permalink
feat: update synthetic data mapping (#28)
Browse files Browse the repository at this point in the history
* feat: update mapping

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* fix: use motorcycle instead of motorbike

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Yusuke Muramatsu <[email protected]>
  • Loading branch information
3 people authored Oct 17, 2023
1 parent 7a6b0c4 commit a4dae58
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions perception_dataset/rosbag2/autoware_msgs.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ def semantic_type_to_class_name(semantic_type: int) -> str:
2: "truck",
3: "bus",
4: "bicycle",
5: "motorbike",
5: "motorcycle",
6: "pedestrian",
7: "animal",
11: "bicycle_without_rider",
12: "motorbike_without_rider",
12: "motorcycle_without_rider",
21: "street_asset",
}

Expand All @@ -47,6 +47,12 @@ def object_classification_to_category_name(object_classification) -> str:
5: "motorcycle",
6: "bicycle",
7: "pedestrian",
11: "bicycle_without_rider",
12: "motorcycle_without_rider",
13: "personal_mobility_vehicle",
14: "pedestrian", # on wheelchair
15: "pedestrian", # with umbrella
21: "street_asset",
}

return cls_to_cat.get(object_classification, "unknown")
Expand Down

0 comments on commit a4dae58

Please sign in to comment.