Skip to content

Commit 9f72a51

Browse files
author
Barış Zeren
committed
feat: add instance segmentation msg
Signed-off-by: Barış Zeren <baris@leodrive.ai>
1 parent e4eedc6 commit 9f72a51

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

autoware_perception_msgs/CMakeLists.txt

+2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ rosidl_generate_interfaces(${PROJECT_NAME}
1313
"msg/PredictedObjectKinematics.msg"
1414
"msg/PredictedObjects.msg"
1515
"msg/PredictedPath.msg"
16+
"msg/SegmentationMask.msg"
1617
"msg/Shape.msg"
1718
"msg/TrackedObject.msg"
1819
"msg/TrackedObjectKinematics.msg"
@@ -27,6 +28,7 @@ rosidl_generate_interfaces(${PROJECT_NAME}
2728

2829
DEPENDENCIES
2930
std_msgs
31+
sensor_msgs
3032
geometry_msgs
3133
builtin_interfaces
3234
unique_identifier_msgs
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
std_msgs/Header header
2+
3+
# It represent map between instance segmentation mask and labels
4+
# The pixel intensities in mask's starts with 1 (pixel value 0 represent pixel is not belong any object)
5+
# `classification[0]` returns the `label_id` for pixels with an intensity value of `1` in the mask.
6+
# `classification[1]` returns the `label_id` for pixels with an intensity value of `2` in the mask.
7+
# ...
8+
# The relationship between pixels and label IDs continues in this way.
9+
ObjectClassification[] classification
10+
11+
sensor_msgs/Image image # Mask image

autoware_perception_msgs/package.xml

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
<depend>builtin_interfaces</depend>
1515
<depend>geometry_msgs</depend>
1616
<depend>std_msgs</depend>
17+
<depend>sensor_msgs</depend>
1718
<depend>unique_identifier_msgs</depend>
1819

1920
<exec_depend>rosidl_default_runtime</exec_depend>

0 commit comments

Comments
 (0)